Compartilhar via


ActionOnUnmanage Class

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

Implements

public final class ActionOnUnmanage
implements JsonSerializable<ActionOnUnmanage>

Defines the behavior of resources that are no longer managed after the stack is updated or deleted.

Constructor Summary

Constructor Description
ActionOnUnmanage()

Creates an instance of ActionOnUnmanage class.

Method Summary

Modifier and Type Method and Description
static ActionOnUnmanage fromJson(JsonReader jsonReader)

Reads an instance of ActionOnUnmanage from the JsonReader.

DeploymentStacksDeleteDetachEnum managementGroups()

Get the managementGroups property: Specifies an action for a newly unmanaged resource.

DeploymentStacksDeleteDetachEnum resourceGroups()

Get the resourceGroups property: Specifies an action for a newly unmanaged resource.

DeploymentStacksDeleteDetachEnum resources()

Get the resources property: Specifies an action for a newly unmanaged resource.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ActionOnUnmanage withManagementGroups(DeploymentStacksDeleteDetachEnum managementGroups)

Set the managementGroups property: Specifies an action for a newly unmanaged resource.

ActionOnUnmanage withResourceGroups(DeploymentStacksDeleteDetachEnum resourceGroups)

Set the resourceGroups property: Specifies an action for a newly unmanaged resource.

ActionOnUnmanage withResources(DeploymentStacksDeleteDetachEnum resources)

Set the resources property: Specifies an action for a newly unmanaged resource.

Methods inherited from java.lang.Object

Constructor Details

ActionOnUnmanage

public ActionOnUnmanage()

Creates an instance of ActionOnUnmanage class.

Method Details

fromJson

public static ActionOnUnmanage fromJson(JsonReader jsonReader)

Reads an instance of ActionOnUnmanage from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ActionOnUnmanage if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

managementGroups

public DeploymentStacksDeleteDetachEnum managementGroups()

Get the managementGroups property: Specifies an action for a newly unmanaged resource. Delete will attempt to delete the resource from Azure. Detach will leave the resource in it's current state.

Returns:

the managementGroups value.

resourceGroups

public DeploymentStacksDeleteDetachEnum resourceGroups()

Get the resourceGroups property: Specifies an action for a newly unmanaged resource. Delete will attempt to delete the resource from Azure. Detach will leave the resource in it's current state.

Returns:

the resourceGroups value.

resources

public DeploymentStacksDeleteDetachEnum resources()

Get the resources property: Specifies an action for a newly unmanaged resource. Delete will attempt to delete the resource from Azure. Detach will leave the resource in it's current state.

Returns:

the resources value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withManagementGroups

public ActionOnUnmanage withManagementGroups(DeploymentStacksDeleteDetachEnum managementGroups)

Set the managementGroups property: Specifies an action for a newly unmanaged resource. Delete will attempt to delete the resource from Azure. Detach will leave the resource in it's current state.

Parameters:

managementGroups - the managementGroups value to set.

Returns:

the ActionOnUnmanage object itself.

withResourceGroups

public ActionOnUnmanage withResourceGroups(DeploymentStacksDeleteDetachEnum resourceGroups)

Set the resourceGroups property: Specifies an action for a newly unmanaged resource. Delete will attempt to delete the resource from Azure. Detach will leave the resource in it's current state.

Parameters:

resourceGroups - the resourceGroups value to set.

Returns:

the ActionOnUnmanage object itself.

withResources

public ActionOnUnmanage withResources(DeploymentStacksDeleteDetachEnum resources)

Set the resources property: Specifies an action for a newly unmanaged resource. Delete will attempt to delete the resource from Azure. Detach will leave the resource in it's current state.

Parameters:

resources - the resources value to set.

Returns:

the ActionOnUnmanage object itself.

Applies to