RunCommandParameterDefinition Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. RunCommandParameterDefinition
- com.
Implements
public final class RunCommandParameterDefinition
implements JsonSerializable<RunCommandParameterDefinition>
Describes the properties of a run command parameter.
Constructor Summary
Constructor | Description |
---|---|
RunCommandParameterDefinition() |
Creates an instance of Run |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
defaultValue()
Get the default |
static
Run |
fromJson(JsonReader jsonReader)
Reads an instance of Run |
String |
name()
Get the name property: The run command parameter name. |
Boolean |
required()
Get the required property: The run command parameter required. |
Json |
toJson(JsonWriter jsonWriter) |
String |
type()
Get the type property: The run command parameter type. |
void |
validate()
Validates the instance. |
Run |
withDefaultValue(String defaultValue)
Set the default |
Run |
withName(String name)
Set the name property: The run command parameter name. |
Run |
withRequired(Boolean required)
Set the required property: The run command parameter required. |
Run |
withType(String type)
Set the type property: The run command parameter type. |
Methods inherited from java.lang.Object
Constructor Details
RunCommandParameterDefinition
public RunCommandParameterDefinition()
Creates an instance of RunCommandParameterDefinition class.
Method Details
defaultValue
public String defaultValue()
Get the defaultValue property: The run command parameter default value.
Returns:
fromJson
public static RunCommandParameterDefinition fromJson(JsonReader jsonReader)
Reads an instance of RunCommandParameterDefinition from the JsonReader.
Parameters:
Returns:
Throws:
name
public String name()
Get the name property: The run command parameter name.
Returns:
required
public Boolean required()
Get the required property: The run command parameter required.
Returns:
toJson
type
public String type()
Get the type property: The run command parameter type.
Returns:
validate
public void validate()
Validates the instance.
withDefaultValue
public RunCommandParameterDefinition withDefaultValue(String defaultValue)
Set the defaultValue property: The run command parameter default value.
Parameters:
Returns:
withName
public RunCommandParameterDefinition withName(String name)
Set the name property: The run command parameter name.
Parameters:
Returns:
withRequired
public RunCommandParameterDefinition withRequired(Boolean required)
Set the required property: The run command parameter required.
Parameters:
Returns:
withType
public RunCommandParameterDefinition withType(String type)
Set the type property: The run command parameter type.
Parameters:
Returns:
Applies to
Azure SDK for Java