Class BlobInventoryPolicyRule
java.lang.Object
com.azure.resourcemanager.storage.models.BlobInventoryPolicyRule
An object that wraps the blob inventory rule. Each rule is uniquely defined by name.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of BlobInventoryPolicyRule class. -
Method Summary
Modifier and TypeMethodDescriptionGet the definition property: An object that defines the blob inventory policy rule.Get the destination property: Container name where blob inventory files are stored.booleanenabled()Get the enabled property: Rule is enabled when set to true.name()Get the name property: A rule name can contain any combination of alpha numeric characters.voidvalidate()Validates the instance.withDefinition(BlobInventoryPolicyDefinition definition) Set the definition property: An object that defines the blob inventory policy rule.withDestination(String destination) Set the destination property: Container name where blob inventory files are stored.withEnabled(boolean enabled) Set the enabled property: Rule is enabled when set to true.Set the name property: A rule name can contain any combination of alpha numeric characters.
-
Constructor Details
-
BlobInventoryPolicyRule
public BlobInventoryPolicyRule()Creates an instance of BlobInventoryPolicyRule class.
-
-
Method Details
-
enabled
public boolean enabled()Get the enabled property: Rule is enabled when set to true.- Returns:
- the enabled value.
-
withEnabled
Set the enabled property: Rule is enabled when set to true.- Parameters:
enabled- the enabled value to set.- Returns:
- the BlobInventoryPolicyRule object itself.
-
name
Get the name property: A rule name can contain any combination of alpha numeric characters. Rule name is case-sensitive. It must be unique within a policy.- Returns:
- the name value.
-
withName
Set the name property: A rule name can contain any combination of alpha numeric characters. Rule name is case-sensitive. It must be unique within a policy.- Parameters:
name- the name value to set.- Returns:
- the BlobInventoryPolicyRule object itself.
-
destination
Get the destination property: Container name where blob inventory files are stored. Must be pre-created.- Returns:
- the destination value.
-
withDestination
Set the destination property: Container name where blob inventory files are stored. Must be pre-created.- Parameters:
destination- the destination value to set.- Returns:
- the BlobInventoryPolicyRule object itself.
-
definition
Get the definition property: An object that defines the blob inventory policy rule.- Returns:
- the definition value.
-
withDefinition
Set the definition property: An object that defines the blob inventory policy rule.- Parameters:
definition- the definition value to set.- Returns:
- the BlobInventoryPolicyRule object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-