BlobInventoryPolicySchema Class

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

Implements

public final class BlobInventoryPolicySchema
implements JsonSerializable<BlobInventoryPolicySchema>

The storage account blob inventory policy rules.

Constructor Summary

Constructor Description
BlobInventoryPolicySchema()

Creates an instance of BlobInventoryPolicySchema class.

Method Summary

Modifier and Type Method and Description
String destination()

Get the destination property: Deprecated Property from API version 2021-04-01 onwards, the required destination container name must be specified at the rule level 'policy.rule.destination'.

boolean enabled()

Get the enabled property: Policy is enabled if set to true.

static BlobInventoryPolicySchema fromJson(JsonReader jsonReader)

Reads an instance of BlobInventoryPolicySchema from the JsonReader.

List<BlobInventoryPolicyRule> rules()

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

JsonWriter toJson(JsonWriter jsonWriter)
InventoryRuleType type()

Get the type property: The valid value is Inventory.

void validate()

Validates the instance.

BlobInventoryPolicySchema withEnabled(boolean enabled)

Set the enabled property: Policy is enabled if set to true.

BlobInventoryPolicySchema withRules(List<BlobInventoryPolicyRule> rules)

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

BlobInventoryPolicySchema withType(InventoryRuleType type)

Set the type property: The valid value is Inventory.

Methods inherited from java.lang.Object

Constructor Details

BlobInventoryPolicySchema

public BlobInventoryPolicySchema()

Creates an instance of BlobInventoryPolicySchema class.

Method Details

destination

public String destination()

Get the destination property: Deprecated Property from API version 2021-04-01 onwards, the required destination container name must be specified at the rule level 'policy.rule.destination'.

Returns:

the destination value.

enabled

public boolean enabled()

Get the enabled property: Policy is enabled if set to true.

Returns:

the enabled value.

fromJson

public static BlobInventoryPolicySchema fromJson(JsonReader jsonReader)

Reads an instance of BlobInventoryPolicySchema from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

rules

public List rules()

Get the rules property: The storage account blob inventory policy rules. The rule is applied when it is enabled.

Returns:

the rules value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public InventoryRuleType type()

Get the type property: The valid value is Inventory.

Returns:

the type value.

validate

public void validate()

Validates the instance.

withEnabled

public BlobInventoryPolicySchema withEnabled(boolean enabled)

Set the enabled property: Policy is enabled if set to true.

Parameters:

enabled - the enabled value to set.

Returns:

the BlobInventoryPolicySchema object itself.

withRules

public BlobInventoryPolicySchema withRules(List rules)

Set the rules property: The storage account blob inventory policy rules. The rule is applied when it is enabled.

Parameters:

rules - the rules value to set.

Returns:

the BlobInventoryPolicySchema object itself.

withType

public BlobInventoryPolicySchema withType(InventoryRuleType type)

Set the type property: The valid value is Inventory.

Parameters:

type - the type value to set.

Returns:

the BlobInventoryPolicySchema object itself.

Applies to