ManagementPolicyAction Class
- java.
lang. Object - com.
azure. resourcemanager. storage. models. ManagementPolicyAction
- com.
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 Management |
Method Summary
Modifier and Type | Method and Description |
---|---|
Management |
baseBlob()
Get the base |
static
Management |
fromJson(JsonReader jsonReader)
Reads an instance of Management |
Management |
snapshot()
Get the snapshot property: The management policy action for snapshot. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Management |
version()
Get the version property: The management policy action for version. |
Management |
withBaseBlob(ManagementPolicyBaseBlob baseBlob)
Set the base |
Management |
withSnapshot(ManagementPolicySnapShot snapshot)
Set the snapshot property: The management policy action for snapshot. |
Management |
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:
fromJson
public static ManagementPolicyAction fromJson(JsonReader jsonReader)
Reads an instance of ManagementPolicyAction from the JsonReader.
Parameters:
Returns:
Throws:
snapshot
public ManagementPolicySnapShot snapshot()
Get the snapshot property: The management policy action for snapshot.
Returns:
toJson
validate
public void validate()
Validates the instance.
version
public ManagementPolicyVersion version()
Get the version property: The management policy action for version.
Returns:
withBaseBlob
public ManagementPolicyAction withBaseBlob(ManagementPolicyBaseBlob baseBlob)
Set the baseBlob property: The management policy action for base blob.
Parameters:
Returns:
withSnapshot
public ManagementPolicyAction withSnapshot(ManagementPolicySnapShot snapshot)
Set the snapshot property: The management policy action for snapshot.
Parameters:
Returns:
withVersion
public ManagementPolicyAction withVersion(ManagementPolicyVersion version)
Set the version property: The management policy action for version.
Parameters:
Returns:
Applies to
Azure SDK for Java