BlobInventoryPolicyRule Class
- java.
lang. Object - com.
azure. resourcemanager. storage. models. BlobInventoryPolicyRule
- com.
Implements
public final class BlobInventoryPolicyRule
implements JsonSerializable<BlobInventoryPolicyRule>
An object that wraps the blob inventory rule. Each rule is uniquely defined by name.
Constructor Summary
Constructor | Description |
---|---|
BlobInventoryPolicyRule() |
Creates an instance of Blob |
Method Summary
Modifier and Type | Method and Description |
---|---|
Blob |
definition()
Get the definition property: An object that defines the blob inventory policy rule. |
String |
destination()
Get the destination property: Container name where blob inventory files are stored. |
boolean |
enabled()
Get the enabled property: Rule is enabled when set to true. |
static
Blob |
fromJson(JsonReader jsonReader)
Reads an instance of Blob |
String |
name()
Get the name property: A rule name can contain any combination of alpha numeric characters. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Blob |
withDefinition(BlobInventoryPolicyDefinition definition)
Set the definition property: An object that defines the blob inventory policy rule. |
Blob |
withDestination(String destination)
Set the destination property: Container name where blob inventory files are stored. |
Blob |
withEnabled(boolean enabled)
Set the enabled property: Rule is enabled when set to true. |
Blob |
withName(String name)
Set the name property: A rule name can contain any combination of alpha numeric characters. |
Methods inherited from java.lang.Object
Constructor Details
BlobInventoryPolicyRule
public BlobInventoryPolicyRule()
Creates an instance of BlobInventoryPolicyRule class.
Method Details
definition
public BlobInventoryPolicyDefinition definition()
Get the definition property: An object that defines the blob inventory policy rule.
Returns:
destination
public String destination()
Get the destination property: Container name where blob inventory files are stored. Must be pre-created.
Returns:
enabled
public boolean enabled()
Get the enabled property: Rule is enabled when set to true.
Returns:
fromJson
public static BlobInventoryPolicyRule fromJson(JsonReader jsonReader)
Reads an instance of BlobInventoryPolicyRule from the JsonReader.
Parameters:
Returns:
Throws:
name
public String 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:
toJson
validate
public void validate()
Validates the instance.
withDefinition
public BlobInventoryPolicyRule withDefinition(BlobInventoryPolicyDefinition definition)
Set the definition property: An object that defines the blob inventory policy rule.
Parameters:
Returns:
withDestination
public BlobInventoryPolicyRule withDestination(String destination)
Set the destination property: Container name where blob inventory files are stored. Must be pre-created.
Parameters:
Returns:
withEnabled
public BlobInventoryPolicyRule withEnabled(boolean enabled)
Set the enabled property: Rule is enabled when set to true.
Parameters:
Returns:
withName
public BlobInventoryPolicyRule withName(String name)
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:
Returns:
Applies to
Azure SDK for Java