ManagementPolicyInner Class

public final class ManagementPolicyInner
extends ProxyResource

The Get Storage Account ManagementPolicies operation response.

Constructor Summary

Constructor Description
ManagementPolicyInner()

Creates an instance of ManagementPolicyInner class.

Method Summary

Modifier and Type Method and Description
static ManagementPolicyInner fromJson(JsonReader jsonReader)

Reads an instance of ManagementPolicyInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

OffsetDateTime lastModifiedTime()

Get the lastModifiedTime property: Returns the date and time the ManagementPolicies was last modified.

String name()

Get the name property: The name of the resource.

ManagementPolicySchema policy()

Get the policy property: The Storage Account ManagementPolicy, in JSON format.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

ManagementPolicyInner withPolicy(ManagementPolicySchema policy)

Set the policy property: The Storage Account ManagementPolicy, in JSON format.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

ManagementPolicyInner

public ManagementPolicyInner()

Creates an instance of ManagementPolicyInner class.

Method Details

fromJson

public static ManagementPolicyInner fromJson(JsonReader jsonReader)

Reads an instance of ManagementPolicyInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ManagementPolicyInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

ManagementPolicyInner.id()

Returns:

the id value.

lastModifiedTime

public OffsetDateTime lastModifiedTime()

Get the lastModifiedTime property: Returns the date and time the ManagementPolicies was last modified.

Returns:

the lastModifiedTime value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

ManagementPolicyInner.name()

Returns:

the name value.

policy

public ManagementPolicySchema policy()

Get the policy property: The Storage Account ManagementPolicy, in JSON format. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.

Returns:

the policy value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

ManagementPolicyInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

ManagementPolicyInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withPolicy

public ManagementPolicyInner withPolicy(ManagementPolicySchema policy)

Set the policy property: The Storage Account ManagementPolicy, in JSON format. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.

Parameters:

policy - the policy value to set.

Returns:

the ManagementPolicyInner object itself.

Applies to