ManagementPolicyVersion Class
- java.
lang. Object - com.
azure. resourcemanager. storage. models. ManagementPolicyVersion
- com.
Implements
public final class ManagementPolicyVersion
implements JsonSerializable<ManagementPolicyVersion>
Management policy action for blob version.
Constructor Summary
Constructor | Description |
---|---|
ManagementPolicyVersion() |
Creates an instance of Management |
Method Summary
Modifier and Type | Method and Description |
---|---|
Date |
delete()
Get the delete property: The function to delete the blob version. |
static
Management |
fromJson(JsonReader jsonReader)
Reads an instance of Management |
Date |
tierToArchive()
Get the tier |
Date |
tierToCold()
Get the tier |
Date |
tierToCool()
Get the tier |
Date |
tierToHot()
Get the tier |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Management |
withDelete(DateAfterCreation delete)
Set the delete property: The function to delete the blob version. |
Management |
withTierToArchive(DateAfterCreation tierToArchive)
Set the tier |
Management |
withTierToCold(DateAfterCreation tierToCold)
Set the tier |
Management |
withTierToCool(DateAfterCreation tierToCool)
Set the tier |
Management |
withTierToHot(DateAfterCreation tierToHot)
Set the tier |
Methods inherited from java.lang.Object
Constructor Details
ManagementPolicyVersion
public ManagementPolicyVersion()
Creates an instance of ManagementPolicyVersion class.
Method Details
delete
public DateAfterCreation delete()
Get the delete property: The function to delete the blob version.
Returns:
fromJson
public static ManagementPolicyVersion fromJson(JsonReader jsonReader)
Reads an instance of ManagementPolicyVersion from the JsonReader.
Parameters:
Returns:
Throws:
tierToArchive
public DateAfterCreation tierToArchive()
Get the tierToArchive property: The function to tier blob version to archive storage.
Returns:
tierToCold
public DateAfterCreation tierToCold()
Get the tierToCold property: The function to tier blobs to cold storage.
Returns:
tierToCool
public DateAfterCreation tierToCool()
Get the tierToCool property: The function to tier blob version to cool storage.
Returns:
tierToHot
public DateAfterCreation tierToHot()
Get the tierToHot property: The function to tier blobs to hot storage. This action can only be used with Premium Block Blob Storage Accounts.
Returns:
toJson
validate
public void validate()
Validates the instance.
withDelete
public ManagementPolicyVersion withDelete(DateAfterCreation delete)
Set the delete property: The function to delete the blob version.
Parameters:
Returns:
withTierToArchive
public ManagementPolicyVersion withTierToArchive(DateAfterCreation tierToArchive)
Set the tierToArchive property: The function to tier blob version to archive storage.
Parameters:
Returns:
withTierToCold
public ManagementPolicyVersion withTierToCold(DateAfterCreation tierToCold)
Set the tierToCold property: The function to tier blobs to cold storage.
Parameters:
Returns:
withTierToCool
public ManagementPolicyVersion withTierToCool(DateAfterCreation tierToCool)
Set the tierToCool property: The function to tier blob version to cool storage.
Parameters:
Returns:
withTierToHot
public ManagementPolicyVersion withTierToHot(DateAfterCreation tierToHot)
Set the tierToHot property: The function to tier blobs to hot storage. This action can only be used with Premium Block Blob Storage Accounts.
Parameters:
Returns:
Applies to
Azure SDK for Java