Class OnErrorDeploymentExtended
java.lang.Object
com.azure.resourcemanager.resources.models.OnErrorDeploymentExtended
- All Implemented Interfaces:
com.azure.json.JsonSerializable<OnErrorDeploymentExtended>
public final class OnErrorDeploymentExtended
extends Object
implements com.azure.json.JsonSerializable<OnErrorDeploymentExtended>
Deployment on error behavior with additional details.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of OnErrorDeploymentExtended class. -
Method Summary
Modifier and TypeMethodDescriptionGet the deploymentName property: The deployment to be used on error case.static OnErrorDeploymentExtendedfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of OnErrorDeploymentExtended from the JsonReader.Get the provisioningState property: The state of the provisioning for the on error deployment.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) 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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
OnErrorDeploymentExtended
public OnErrorDeploymentExtended()Creates an instance of OnErrorDeploymentExtended class.
-
-
Method Details
-
provisioningState
Get the provisioningState property: The state of the provisioning for the on error deployment.- Returns:
- the provisioningState value.
-
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 OnErrorDeploymentExtended 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 OnErrorDeploymentExtended object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<OnErrorDeploymentExtended>- Throws:
IOException
-
fromJson
public static OnErrorDeploymentExtended fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of OnErrorDeploymentExtended from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of OnErrorDeploymentExtended if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the OnErrorDeploymentExtended.
-