ManagementPolicySnapShot Class

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

Implements

public final class ManagementPolicySnapShot
implements JsonSerializable<ManagementPolicySnapShot>

Management policy action for snapshot.

Constructor Summary

Constructor Description
ManagementPolicySnapShot()

Creates an instance of ManagementPolicySnapShot class.

Method Summary

Modifier and Type Method and Description
DateAfterCreation delete()

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

static ManagementPolicySnapShot fromJson(JsonReader jsonReader)

Reads an instance of ManagementPolicySnapShot from the JsonReader.

DateAfterCreation tierToArchive()

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

DateAfterCreation tierToCold()

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

DateAfterCreation tierToCool()

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

DateAfterCreation tierToHot()

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

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ManagementPolicySnapShot withDelete(DateAfterCreation delete)

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

ManagementPolicySnapShot withTierToArchive(DateAfterCreation tierToArchive)

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

ManagementPolicySnapShot withTierToCold(DateAfterCreation tierToCold)

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

ManagementPolicySnapShot withTierToCool(DateAfterCreation tierToCool)

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

ManagementPolicySnapShot withTierToHot(DateAfterCreation tierToHot)

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

Methods inherited from java.lang.Object

Constructor Details

ManagementPolicySnapShot

public ManagementPolicySnapShot()

Creates an instance of ManagementPolicySnapShot class.

Method Details

delete

public DateAfterCreation delete()

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

Returns:

the delete value.

fromJson

public static ManagementPolicySnapShot fromJson(JsonReader jsonReader)

Reads an instance of ManagementPolicySnapShot from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

tierToArchive

public DateAfterCreation tierToArchive()

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

Returns:

the tierToArchive value.

tierToCold

public DateAfterCreation tierToCold()

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

Returns:

the tierToCold value.

tierToCool

public DateAfterCreation tierToCool()

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

Returns:

the tierToCool value.

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:

the tierToHot value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDelete

public ManagementPolicySnapShot withDelete(DateAfterCreation delete)

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

Parameters:

delete - the delete value to set.

Returns:

the ManagementPolicySnapShot object itself.

withTierToArchive

public ManagementPolicySnapShot withTierToArchive(DateAfterCreation tierToArchive)

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

Parameters:

tierToArchive - the tierToArchive value to set.

Returns:

the ManagementPolicySnapShot object itself.

withTierToCold

public ManagementPolicySnapShot withTierToCold(DateAfterCreation tierToCold)

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

Parameters:

tierToCold - the tierToCold value to set.

Returns:

the ManagementPolicySnapShot object itself.

withTierToCool

public ManagementPolicySnapShot withTierToCool(DateAfterCreation tierToCool)

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

Parameters:

tierToCool - the tierToCool value to set.

Returns:

the ManagementPolicySnapShot object itself.

withTierToHot

public ManagementPolicySnapShot 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:

tierToHot - the tierToHot value to set.

Returns:

the ManagementPolicySnapShot object itself.

Applies to