Class RunCommandParameterDefinition
java.lang.Object
com.azure.resourcemanager.compute.models.RunCommandParameterDefinition
Describes the properties of a run command parameter.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the defaultValue property: The run command parameter default value.name()Get the name property: The run command parameter name.required()Get the required property: The run command parameter required.type()Get the type property: The run command parameter type.voidvalidate()Validates the instance.withDefaultValue(String defaultValue) Set the defaultValue property: The run command parameter default value.Set the name property: The run command parameter name.withRequired(Boolean required) Set the required property: The run command parameter required.Set the type property: The run command parameter type.
-
Constructor Details
-
RunCommandParameterDefinition
public RunCommandParameterDefinition()
-
-
Method Details
-
name
Get the name property: The run command parameter name.- Returns:
- the name value.
-
withName
Set the name property: The run command parameter name.- Parameters:
name- the name value to set.- Returns:
- the RunCommandParameterDefinition object itself.
-
type
Get the type property: The run command parameter type.- Returns:
- the type value.
-
withType
Set the type property: The run command parameter type.- Parameters:
type- the type value to set.- Returns:
- the RunCommandParameterDefinition object itself.
-
defaultValue
Get the defaultValue property: The run command parameter default value.- Returns:
- the defaultValue value.
-
withDefaultValue
Set the defaultValue property: The run command parameter default value.- Parameters:
defaultValue- the defaultValue value to set.- Returns:
- the RunCommandParameterDefinition object itself.
-
required
Get the required property: The run command parameter required.- Returns:
- the required value.
-
withRequired
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.
-