Sdílet prostřednictvím


OnErrorDeployment Class

  • java.lang.Object
    • com.azure.resourcemanager.resources.models.OnErrorDeployment

Implements

public final class OnErrorDeployment
implements JsonSerializable<OnErrorDeployment>

Deployment on error behavior.

Constructor Summary

Constructor Description
OnErrorDeployment()

Creates an instance of OnErrorDeployment class.

Method Summary

Modifier and Type Method and Description
String deploymentName()

Get the deploymentName property: The deployment to be used on error case.

static OnErrorDeployment fromJson(JsonReader jsonReader)

Reads an instance of OnErrorDeployment from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
OnErrorDeploymentType type()

Get the type property: The deployment on error behavior type.

void validate()

Validates the instance.

OnErrorDeployment withDeploymentName(String deploymentName)

Set the deploymentName property: The deployment to be used on error case.

OnErrorDeployment withType(OnErrorDeploymentType type)

Set the type property: The deployment on error behavior type.

Methods inherited from java.lang.Object

Constructor Details

OnErrorDeployment

public OnErrorDeployment()

Creates an instance of OnErrorDeployment class.

Method Details

deploymentName

public String deploymentName()

Get the deploymentName property: The deployment to be used on error case.

Returns:

the deploymentName value.

fromJson

public static OnErrorDeployment fromJson(JsonReader jsonReader)

Reads an instance of OnErrorDeployment from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of OnErrorDeployment 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 OnErrorDeployment.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public OnErrorDeploymentType type()

Get the type property: The deployment on error behavior type. Possible values are LastSuccessful and SpecificDeployment.

Returns:

the type value.

validate

public void validate()

Validates the instance.

withDeploymentName

public OnErrorDeployment withDeploymentName(String deploymentName)

Set the deploymentName property: The deployment to be used on error case.

Parameters:

deploymentName - the deploymentName value to set.

Returns:

the OnErrorDeployment object itself.

withType

public OnErrorDeployment withType(OnErrorDeploymentType type)

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.

Applies to