BlobInventoryPolicyInner Class

public final class BlobInventoryPolicyInner
extends ProxyResource

The storage account blob inventory policy.

Constructor Summary

Constructor Description
BlobInventoryPolicyInner()

Creates an instance of BlobInventoryPolicyInner class.

Method Summary

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

Reads an instance of BlobInventoryPolicyInner from the JsonReader.

String id()

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

OffsetDateTime lastModifiedTime()

Get the lastModifiedTime property: Returns the last modified date and time of the blob inventory policy.

String name()

Get the name property: The name of the resource.

BlobInventoryPolicySchema policy()

Get the policy property: The storage account blob inventory policy object.

SystemData systemData()

Get the systemData property: Metadata pertaining to creation and last modification of the resource.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

BlobInventoryPolicyInner withPolicy(BlobInventoryPolicySchema policy)

Set the policy property: The storage account blob inventory policy object.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

BlobInventoryPolicyInner

public BlobInventoryPolicyInner()

Creates an instance of BlobInventoryPolicyInner class.

Method Details

fromJson

public static BlobInventoryPolicyInner fromJson(JsonReader jsonReader)

Reads an instance of BlobInventoryPolicyInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of BlobInventoryPolicyInner 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:

BlobInventoryPolicyInner.id()

Returns:

the id value.

lastModifiedTime

public OffsetDateTime lastModifiedTime()

Get the lastModifiedTime property: Returns the last modified date and time of the blob inventory policy.

Returns:

the lastModifiedTime value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

BlobInventoryPolicyInner.name()

Returns:

the name value.

policy

public BlobInventoryPolicySchema policy()

Get the policy property: The storage account blob inventory policy object. It is composed of policy rules.

Returns:

the policy value.

systemData

public SystemData systemData()

Get the systemData property: Metadata pertaining to creation and last modification of the resource.

Returns:

the systemData value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

BlobInventoryPolicyInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

BlobInventoryPolicyInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withPolicy

public BlobInventoryPolicyInner withPolicy(BlobInventoryPolicySchema policy)

Set the policy property: The storage account blob inventory policy object. It is composed of policy rules.

Parameters:

policy - the policy value to set.

Returns:

the BlobInventoryPolicyInner object itself.

Applies to