Class RunCommandParameterDefinition
- java.lang.Object
-
- com.azure.resourcemanager.compute.models.RunCommandParameterDefinition
-
public final class RunCommandParameterDefinition extends Object
Describes the properties of a run command parameter.
-
-
Constructor Summary
Constructors Constructor Description RunCommandParameterDefinition()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringdefaultValue()Get the defaultValue property: The run command parameter default value.Stringname()Get the name property: The run command parameter name.Booleanrequired()Get the required property: The run command parameter required.Stringtype()Get the type property: The run command parameter type.voidvalidate()Validates the instance.RunCommandParameterDefinitionwithDefaultValue(String defaultValue)Set the defaultValue property: The run command parameter default value.RunCommandParameterDefinitionwithName(String name)Set the name property: The run command parameter name.RunCommandParameterDefinitionwithRequired(Boolean required)Set the required property: The run command parameter required.RunCommandParameterDefinitionwithType(String type)Set the type property: The run command parameter type.
-
-
-
Method Detail
-
name
public String name()
Get the name property: The run command parameter name.- Returns:
- the name value.
-
withName
public RunCommandParameterDefinition withName(String name)
Set the name property: The run command parameter name.- Parameters:
name- the name value to set.- Returns:
- the RunCommandParameterDefinition object itself.
-
type
public String type()
Get the type property: The run command parameter type.- Returns:
- the type value.
-
withType
public RunCommandParameterDefinition withType(String type)
Set the type property: The run command parameter type.- Parameters:
type- the type value to set.- Returns:
- the RunCommandParameterDefinition object itself.
-
defaultValue
public String defaultValue()
Get the defaultValue property: The run command parameter default value.- Returns:
- the defaultValue value.
-
withDefaultValue
public RunCommandParameterDefinition withDefaultValue(String defaultValue)
Set the defaultValue property: The run command parameter default value.- Parameters:
defaultValue- the defaultValue value to set.- Returns:
- the RunCommandParameterDefinition object itself.
-
required
public Boolean required()
Get the required property: The run command parameter required.- Returns:
- the required value.
-
withRequired
public RunCommandParameterDefinition withRequired(Boolean required)
Set the required property: The run command parameter required.- Parameters:
required- the required value to set.- Returns:
- the RunCommandParameterDefinition object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-