Class ManagementPolicyBaseBlob
java.lang.Object
com.azure.resourcemanager.storage.models.ManagementPolicyBaseBlob
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ManagementPolicyBaseBlob>
public final class ManagementPolicyBaseBlob
extends Object
implements com.azure.json.JsonSerializable<ManagementPolicyBaseBlob>
Management policy action for base blob.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ManagementPolicyBaseBlob class. -
Method Summary
Modifier and TypeMethodDescriptiondelete()Get the delete property: The function to delete the blob.Get the enableAutoTierToHotFromCool property: This property enables auto tiering of a blob from cool to hot on a blob access.static ManagementPolicyBaseBlobfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ManagementPolicyBaseBlob from the JsonReader.Get the tierToArchive property: The function to tier blobs to archive storage.Get the tierToCold property: The function to tier blobs to cold storage.Get the tierToCool property: The function to tier blobs to cool storage.Get the tierToHot property: The function to tier blobs to hot storage.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withDelete(DateAfterModification delete) Set the delete property: The function to delete the blob.withEnableAutoTierToHotFromCool(Boolean enableAutoTierToHotFromCool) Set the enableAutoTierToHotFromCool property: This property enables auto tiering of a blob from cool to hot on a blob access.withTierToArchive(DateAfterModification tierToArchive) Set the tierToArchive property: The function to tier blobs to archive storage.withTierToCold(DateAfterModification tierToCold) Set the tierToCold property: The function to tier blobs to cold storage.withTierToCool(DateAfterModification tierToCool) Set the tierToCool property: The function to tier blobs to cool storage.withTierToHot(DateAfterModification tierToHot) Set the tierToHot property: The function to tier blobs to hot storage.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ManagementPolicyBaseBlob
public ManagementPolicyBaseBlob()Creates an instance of ManagementPolicyBaseBlob class.
-
-
Method Details
-
tierToCool
Get the tierToCool property: The function to tier blobs to cool storage.- Returns:
- the tierToCool value.
-
withTierToCool
Set the tierToCool property: The function to tier blobs to cool storage.- Parameters:
tierToCool- the tierToCool value to set.- Returns:
- the ManagementPolicyBaseBlob object itself.
-
tierToArchive
Get the tierToArchive property: The function to tier blobs to archive storage.- Returns:
- the tierToArchive value.
-
withTierToArchive
Set the tierToArchive property: The function to tier blobs to archive storage.- Parameters:
tierToArchive- the tierToArchive value to set.- Returns:
- the ManagementPolicyBaseBlob object itself.
-
tierToCold
Get the tierToCold property: The function to tier blobs to cold storage.- Returns:
- the tierToCold value.
-
withTierToCold
Set the tierToCold property: The function to tier blobs to cold storage.- Parameters:
tierToCold- the tierToCold value to set.- Returns:
- the ManagementPolicyBaseBlob object itself.
-
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:
- the tierToHot value.
-
withTierToHot
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:
tierToHot- the tierToHot value to set.- Returns:
- the ManagementPolicyBaseBlob object itself.
-
delete
Get the delete property: The function to delete the blob.- Returns:
- the delete value.
-
withDelete
Set the delete property: The function to delete the blob.- Parameters:
delete- the delete value to set.- Returns:
- the ManagementPolicyBaseBlob object itself.
-
enableAutoTierToHotFromCool
Get the enableAutoTierToHotFromCool property: This property enables auto tiering of a blob from cool to hot on a blob access. This property requires tierToCool.daysAfterLastAccessTimeGreaterThan.- Returns:
- the enableAutoTierToHotFromCool value.
-
withEnableAutoTierToHotFromCool
public ManagementPolicyBaseBlob withEnableAutoTierToHotFromCool(Boolean enableAutoTierToHotFromCool) Set the enableAutoTierToHotFromCool property: This property enables auto tiering of a blob from cool to hot on a blob access. This property requires tierToCool.daysAfterLastAccessTimeGreaterThan.- Parameters:
enableAutoTierToHotFromCool- the enableAutoTierToHotFromCool value to set.- Returns:
- the ManagementPolicyBaseBlob object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ManagementPolicyBaseBlob>- Throws:
IOException
-
fromJson
public static ManagementPolicyBaseBlob fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ManagementPolicyBaseBlob from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ManagementPolicyBaseBlob 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 ManagementPolicyBaseBlob.
-