ManagementPolicyAction Class

  • java.lang.Object
    • com.azure.resourcemanager.storage.models.ManagementPolicyAction

Implements

public final class ManagementPolicyAction
implements JsonSerializable<ManagementPolicyAction>

Actions are applied to the filtered blobs when the execution condition is met.

Constructor Summary

Constructor Description
ManagementPolicyAction()

Creates an instance of ManagementPolicyAction class.

Method Summary

Modifier and Type Method and Description
ManagementPolicyBaseBlob baseBlob()

Get the baseBlob property: The management policy action for base blob.

static ManagementPolicyAction fromJson(JsonReader jsonReader)

Reads an instance of ManagementPolicyAction from the JsonReader.

ManagementPolicySnapShot snapshot()

Get the snapshot property: The management policy action for snapshot.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ManagementPolicyVersion version()

Get the version property: The management policy action for version.

ManagementPolicyAction withBaseBlob(ManagementPolicyBaseBlob baseBlob)

Set the baseBlob property: The management policy action for base blob.

ManagementPolicyAction withSnapshot(ManagementPolicySnapShot snapshot)

Set the snapshot property: The management policy action for snapshot.

ManagementPolicyAction withVersion(ManagementPolicyVersion version)

Set the version property: The management policy action for version.

Methods inherited from java.lang.Object

Constructor Details

ManagementPolicyAction

public ManagementPolicyAction()

Creates an instance of ManagementPolicyAction class.

Method Details

baseBlob

public ManagementPolicyBaseBlob baseBlob()

Get the baseBlob property: The management policy action for base blob.

Returns:

the baseBlob value.

fromJson

public static ManagementPolicyAction fromJson(JsonReader jsonReader)

Reads an instance of ManagementPolicyAction from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

snapshot

public ManagementPolicySnapShot snapshot()

Get the snapshot property: The management policy action for snapshot.

Returns:

the snapshot value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

version

public ManagementPolicyVersion version()

Get the version property: The management policy action for version.

Returns:

the version value.

withBaseBlob

public ManagementPolicyAction withBaseBlob(ManagementPolicyBaseBlob baseBlob)

Set the baseBlob property: The management policy action for base blob.

Parameters:

baseBlob - the baseBlob value to set.

Returns:

the ManagementPolicyAction object itself.

withSnapshot

public ManagementPolicyAction withSnapshot(ManagementPolicySnapShot snapshot)

Set the snapshot property: The management policy action for snapshot.

Parameters:

snapshot - the snapshot value to set.

Returns:

the ManagementPolicyAction object itself.

withVersion

public ManagementPolicyAction withVersion(ManagementPolicyVersion version)

Set the version property: The management policy action for version.

Parameters:

version - the version value to set.

Returns:

the ManagementPolicyAction object itself.

Applies to