
com.pulumi.azurenative.storage.outputs.BlobInventoryPolicySchemaResponse Maven / Gradle / Ivy
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.azurenative.storage.outputs;
import com.pulumi.azurenative.storage.outputs.BlobInventoryPolicyRuleResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Objects;
@CustomType
public final class BlobInventoryPolicySchemaResponse {
/**
* @return Deprecated Property from API version 2021-04-01 onwards, the required destination container name must be specified at the rule level 'policy.rule.destination'
*
*/
private String destination;
/**
* @return Policy is enabled if set to true.
*
*/
private Boolean enabled;
/**
* @return The storage account blob inventory policy rules. The rule is applied when it is enabled.
*
*/
private List rules;
/**
* @return The valid value is Inventory
*
*/
private String type;
private BlobInventoryPolicySchemaResponse() {}
/**
* @return Deprecated Property from API version 2021-04-01 onwards, the required destination container name must be specified at the rule level 'policy.rule.destination'
*
*/
public String destination() {
return this.destination;
}
/**
* @return Policy is enabled if set to true.
*
*/
public Boolean enabled() {
return this.enabled;
}
/**
* @return The storage account blob inventory policy rules. The rule is applied when it is enabled.
*
*/
public List rules() {
return this.rules;
}
/**
* @return The valid value is Inventory
*
*/
public String type() {
return this.type;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(BlobInventoryPolicySchemaResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String destination;
private Boolean enabled;
private List rules;
private String type;
public Builder() {}
public Builder(BlobInventoryPolicySchemaResponse defaults) {
Objects.requireNonNull(defaults);
this.destination = defaults.destination;
this.enabled = defaults.enabled;
this.rules = defaults.rules;
this.type = defaults.type;
}
@CustomType.Setter
public Builder destination(String destination) {
if (destination == null) {
throw new MissingRequiredPropertyException("BlobInventoryPolicySchemaResponse", "destination");
}
this.destination = destination;
return this;
}
@CustomType.Setter
public Builder enabled(Boolean enabled) {
if (enabled == null) {
throw new MissingRequiredPropertyException("BlobInventoryPolicySchemaResponse", "enabled");
}
this.enabled = enabled;
return this;
}
@CustomType.Setter
public Builder rules(List rules) {
if (rules == null) {
throw new MissingRequiredPropertyException("BlobInventoryPolicySchemaResponse", "rules");
}
this.rules = rules;
return this;
}
public Builder rules(BlobInventoryPolicyRuleResponse... rules) {
return rules(List.of(rules));
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("BlobInventoryPolicySchemaResponse", "type");
}
this.type = type;
return this;
}
public BlobInventoryPolicySchemaResponse build() {
final var _resultValue = new BlobInventoryPolicySchemaResponse();
_resultValue.destination = destination;
_resultValue.enabled = enabled;
_resultValue.rules = rules;
_resultValue.type = type;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy