Class ScriptParameter
java.lang.Object
com.azure.resourcemanager.avs.models.ScriptParameter
An parameter that the script will accept.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the description property: User friendly description of the parameter.name()
Get the name property: The parameter name that the script will expect a parameter value for.optional()
Get the optional property: Is this parameter required or optional.type()
Get the type property: The type of parameter the script is expecting.void
validate()
Validates the instance.Get the visibility property: Should this parameter be visible to arm and passed in the parameters argument when executing.Set the name property: The parameter name that the script will expect a parameter value for.
-
Constructor Details
-
ScriptParameter
public ScriptParameter()Creates an instance of ScriptParameter class.
-
-
Method Details
-
type
Get the type property: The type of parameter the script is expecting. psCredential is a PSCredentialObject.- Returns:
- the type value.
-
name
Get the name property: The parameter name that the script will expect a parameter value for.- Returns:
- the name value.
-
withName
Set the name property: The parameter name that the script will expect a parameter value for.- Parameters:
name
- the name value to set.- Returns:
- the ScriptParameter object itself.
-
description
Get the description property: User friendly description of the parameter.- Returns:
- the description value.
-
visibility
Get the visibility property: Should this parameter be visible to arm and passed in the parameters argument when executing.- Returns:
- the visibility value.
-
optional
Get the optional property: Is this parameter required or optional.- Returns:
- the optional value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-