ResourceGuard Class

  • java.lang.Object
    • com.azure.resourcemanager.dataprotection.models.ResourceGuard

Implements

public final class ResourceGuard
implements JsonSerializable<ResourceGuard>

The ResourceGuard model.

Constructor Summary

Constructor Description
ResourceGuard()

Creates an instance of ResourceGuard class.

Method Summary

Modifier and Type Method and Description
Boolean allowAutoApprovals()

Get the allowAutoApprovals property: This flag indicates whether auto approval is allowed or not.

String description()

Get the description property: Description about the pre-req steps to perform all the critical operations.

static ResourceGuard fromJson(JsonReader jsonReader)

Reads an instance of ResourceGuard from the JsonReader.

ProvisioningState provisioningState()

Get the provisioningState property: Provisioning state of the BackupVault resource.

List<ResourceGuardOperation> resourceGuardOperations()

Get the resourceGuardOperations property: {readonly} List of operation details those are protected by the ResourceGuard resource.

JsonWriter toJson(JsonWriter jsonWriter)
List<String> vaultCriticalOperationExclusionList()

Get the vaultCriticalOperationExclusionList property: List of critical operations which are not protected by this resourceGuard.

ResourceGuard withVaultCriticalOperationExclusionList(List<String> vaultCriticalOperationExclusionList)

Set the vaultCriticalOperationExclusionList property: List of critical operations which are not protected by this resourceGuard.

Methods inherited from java.lang.Object

Constructor Details

ResourceGuard

public ResourceGuard()

Creates an instance of ResourceGuard class.

Method Details

allowAutoApprovals

public Boolean allowAutoApprovals()

Get the allowAutoApprovals property: This flag indicates whether auto approval is allowed or not.

Returns:

the allowAutoApprovals value.

description

public String description()

Get the description property: Description about the pre-req steps to perform all the critical operations.

Returns:

the description value.

fromJson

public static ResourceGuard fromJson(JsonReader jsonReader)

Reads an instance of ResourceGuard from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

provisioningState

public ProvisioningState provisioningState()

Get the provisioningState property: Provisioning state of the BackupVault resource.

Returns:

the provisioningState value.

resourceGuardOperations

public List<ResourceGuardOperation> resourceGuardOperations()

Get the resourceGuardOperations property: {readonly} List of operation details those are protected by the ResourceGuard resource.

Returns:

the resourceGuardOperations value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

vaultCriticalOperationExclusionList

public List<String> vaultCriticalOperationExclusionList()

Get the vaultCriticalOperationExclusionList property: List of critical operations which are not protected by this resourceGuard.

Returns:

the vaultCriticalOperationExclusionList value.

withVaultCriticalOperationExclusionList

public ResourceGuard withVaultCriticalOperationExclusionList(List<String> vaultCriticalOperationExclusionList)

Set the vaultCriticalOperationExclusionList property: List of critical operations which are not protected by this resourceGuard.

Parameters:

vaultCriticalOperationExclusionList - the vaultCriticalOperationExclusionList value to set.

Returns:

the ResourceGuard object itself.

Applies to