Class BlobInventoryPolicySchema
- java.lang.Object
-
- com.azure.resourcemanager.storage.models.BlobInventoryPolicySchema
-
public final class BlobInventoryPolicySchema extends Object
The storage account blob inventory policy rules.
-
-
Constructor Summary
Constructors Constructor Description BlobInventoryPolicySchema()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanenabled()Get the enabled property: Policy is enabled if set to true.List<BlobInventoryPolicyRule>rules()Get the rules property: The storage account blob inventory policy rules.InventoryRuleTypetype()Get the type property: The valid value is Inventory.voidvalidate()Validates the instance.BlobInventoryPolicySchemawithEnabled(boolean enabled)Set the enabled property: Policy is enabled if set to true.BlobInventoryPolicySchemawithRules(List<BlobInventoryPolicyRule> rules)Set the rules property: The storage account blob inventory policy rules.BlobInventoryPolicySchemawithType(InventoryRuleType type)Set the type property: The valid value is Inventory.
-
-
-
Method Detail
-
enabled
public boolean enabled()
Get the enabled property: Policy is enabled if set to true.- Returns:
- the enabled value.
-
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.
-
type
public InventoryRuleType type()
Get the type property: The valid value is Inventory.- Returns:
- the type value.
-
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.
-
rules
public List<BlobInventoryPolicyRule> rules()
Get the rules property: The storage account blob inventory policy rules. The rule is applied when it is enabled.- Returns:
- the rules value.
-
withRules
public BlobInventoryPolicySchema withRules(List<BlobInventoryPolicyRule> 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.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-