Class OnErrorDeployment
java.lang.Object
com.azure.resourcemanager.resources.models.OnErrorDeployment
Deployment on error behavior.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the deploymentName property: The deployment to be used on error case.type()Get the type property: The deployment on error behavior type.voidvalidate()Validates the instance.withDeploymentName(String deploymentName) Set the deploymentName property: The deployment to be used on error case.Set the type property: The deployment on error behavior type.
-
Constructor Details
-
OnErrorDeployment
public OnErrorDeployment()Creates an instance of OnErrorDeployment class.
-
-
Method Details
-
type
Get the type property: The deployment on error behavior type. Possible values are LastSuccessful and SpecificDeployment.- Returns:
- the type value.
-
withType
Set the type property: The deployment on error behavior type. Possible values are LastSuccessful and SpecificDeployment.- Parameters:
type- the type value to set.- Returns:
- the OnErrorDeployment object itself.
-
deploymentName
Get the deploymentName property: The deployment to be used on error case.- Returns:
- the deploymentName value.
-
withDeploymentName
Set the deploymentName property: The deployment to be used on error case.- Parameters:
deploymentName- the deploymentName value to set.- Returns:
- the OnErrorDeployment object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-