ManagementPolicyBaseBlob Class

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

Implements

public final class ManagementPolicyBaseBlob
implements JsonSerializable<ManagementPolicyBaseBlob>

Management policy action for base blob.

Constructor Summary

Constructor Description
ManagementPolicyBaseBlob()

Creates an instance of ManagementPolicyBaseBlob class.

Method Summary

Modifier and Type Method and Description
DateAfterModification delete()

Get the delete property: The function to delete the blob.

Boolean enableAutoTierToHotFromCool()

Get the enableAutoTierToHotFromCool property: This property enables auto tiering of a blob from cool to hot on a blob access.

static ManagementPolicyBaseBlob fromJson(JsonReader jsonReader)

Reads an instance of ManagementPolicyBaseBlob from the JsonReader.

DateAfterModification tierToArchive()

Get the tierToArchive property: The function to tier blobs to archive storage.

DateAfterModification tierToCold()

Get the tierToCold property: The function to tier blobs to cold storage.

DateAfterModification tierToCool()

Get the tierToCool property: The function to tier blobs to cool storage.

DateAfterModification tierToHot()

Get the tierToHot property: The function to tier blobs to hot storage.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ManagementPolicyBaseBlob withDelete(DateAfterModification delete)

Set the delete property: The function to delete the blob.

ManagementPolicyBaseBlob withEnableAutoTierToHotFromCool(Boolean enableAutoTierToHotFromCool)

Set the enableAutoTierToHotFromCool property: This property enables auto tiering of a blob from cool to hot on a blob access.

ManagementPolicyBaseBlob withTierToArchive(DateAfterModification tierToArchive)

Set the tierToArchive property: The function to tier blobs to archive storage.

ManagementPolicyBaseBlob withTierToCold(DateAfterModification tierToCold)

Set the tierToCold property: The function to tier blobs to cold storage.

ManagementPolicyBaseBlob withTierToCool(DateAfterModification tierToCool)

Set the tierToCool property: The function to tier blobs to cool storage.

ManagementPolicyBaseBlob withTierToHot(DateAfterModification tierToHot)

Set the tierToHot property: The function to tier blobs to hot storage.

Methods inherited from java.lang.Object

Constructor Details

ManagementPolicyBaseBlob

public ManagementPolicyBaseBlob()

Creates an instance of ManagementPolicyBaseBlob class.

Method Details

delete

public DateAfterModification delete()

Get the delete property: The function to delete the blob.

Returns:

the delete value.

enableAutoTierToHotFromCool

public Boolean 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.

fromJson

public static ManagementPolicyBaseBlob fromJson(JsonReader jsonReader)

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.

tierToArchive

public DateAfterModification tierToArchive()

Get the tierToArchive property: The function to tier blobs to archive storage.

Returns:

the tierToArchive value.

tierToCold

public DateAfterModification tierToCold()

Get the tierToCold property: The function to tier blobs to cold storage.

Returns:

the tierToCold value.

tierToCool

public DateAfterModification tierToCool()

Get the tierToCool property: The function to tier blobs to cool storage.

Returns:

the tierToCool value.

tierToHot

public DateAfterModification 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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDelete

public ManagementPolicyBaseBlob withDelete(DateAfterModification delete)

Set the delete property: The function to delete the blob.

Parameters:

delete - the delete value to set.

Returns:

the ManagementPolicyBaseBlob object itself.

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.

withTierToArchive

public ManagementPolicyBaseBlob withTierToArchive(DateAfterModification tierToArchive)

Set the tierToArchive property: The function to tier blobs to archive storage.

Parameters:

tierToArchive - the tierToArchive value to set.

Returns:

the ManagementPolicyBaseBlob object itself.

withTierToCold

public ManagementPolicyBaseBlob withTierToCold(DateAfterModification tierToCold)

Set the tierToCold property: The function to tier blobs to cold storage.

Parameters:

tierToCold - the tierToCold value to set.

Returns:

the ManagementPolicyBaseBlob object itself.

withTierToCool

public ManagementPolicyBaseBlob withTierToCool(DateAfterModification tierToCool)

Set the tierToCool property: The function to tier blobs to cool storage.

Parameters:

tierToCool - the tierToCool value to set.

Returns:

the ManagementPolicyBaseBlob object itself.

withTierToHot

public ManagementPolicyBaseBlob withTierToHot(DateAfterModification 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:

tierToHot - the tierToHot value to set.

Returns:

the ManagementPolicyBaseBlob object itself.

Applies to