BlobInventoryPolicySchema Class
- java.
lang. Object - com.
azure. resourcemanager. storage. models. BlobInventoryPolicySchema
- com.
Implements
public final class BlobInventoryPolicySchema
implements JsonSerializable<BlobInventoryPolicySchema>
The storage account blob inventory policy rules.
Constructor Summary
Constructor | Description |
---|---|
BlobInventoryPolicySchema() |
Creates an instance of Blob |
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. |
boolean |
enabled()
Get the enabled property: Policy is enabled if set to true. |
static
Blob |
fromJson(JsonReader jsonReader)
Reads an instance of Blob |
List<Blob |
rules()
Get the rules property: The storage account blob inventory policy rules. |
Json |
toJson(JsonWriter jsonWriter) |
Inventory |
type()
Get the type property: The valid value is Inventory. |
void |
validate()
Validates the instance. |
Blob |
withEnabled(boolean enabled)
Set the enabled property: Policy is enabled if set to true. |
Blob |
withRules(List<BlobInventoryPolicyRule> rules)
Set the rules property: The storage account blob inventory policy rules. |
Blob |
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:
enabled
public boolean enabled()
Get the enabled property: Policy is enabled if set to true.
Returns:
fromJson
public static BlobInventoryPolicySchema fromJson(JsonReader jsonReader)
Reads an instance of BlobInventoryPolicySchema from the JsonReader.
Parameters:
Returns:
Throws:
rules
public List
Get the rules property: The storage account blob inventory policy rules. The rule is applied when it is enabled.
Returns:
toJson
type
public InventoryRuleType type()
Get the type property: The valid value is Inventory.
Returns:
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:
Returns:
withRules
public BlobInventoryPolicySchema withRules(List
Set the rules property: The storage account blob inventory policy rules. The rule is applied when it is enabled.
Parameters:
Returns:
withType
public BlobInventoryPolicySchema withType(InventoryRuleType type)
Set the type property: The valid value is Inventory.
Parameters:
Returns:
Applies to
Azure SDK for Java