com.pulumi.azurenative.storage.inputs.BlobInventoryPolicySchemaArgs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** 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.inputs;
import com.pulumi.azurenative.storage.enums.InventoryRuleType;
import com.pulumi.azurenative.storage.inputs.BlobInventoryPolicyRuleArgs;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Objects;
/**
* The storage account blob inventory policy rules.
*
*/
public final class BlobInventoryPolicySchemaArgs extends com.pulumi.resources.ResourceArgs {
public static final BlobInventoryPolicySchemaArgs Empty = new BlobInventoryPolicySchemaArgs();
/**
* Policy is enabled if set to true.
*
*/
@Import(name="enabled", required=true)
private Output enabled;
/**
* @return Policy is enabled if set to true.
*
*/
public Output enabled() {
return this.enabled;
}
/**
* The storage account blob inventory policy rules. The rule is applied when it is enabled.
*
*/
@Import(name="rules", required=true)
private Output> rules;
/**
* @return The storage account blob inventory policy rules. The rule is applied when it is enabled.
*
*/
public Output> rules() {
return this.rules;
}
/**
* The valid value is Inventory
*
*/
@Import(name="type", required=true)
private Output> type;
/**
* @return The valid value is Inventory
*
*/
public Output> type() {
return this.type;
}
private BlobInventoryPolicySchemaArgs() {}
private BlobInventoryPolicySchemaArgs(BlobInventoryPolicySchemaArgs $) {
this.enabled = $.enabled;
this.rules = $.rules;
this.type = $.type;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(BlobInventoryPolicySchemaArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private BlobInventoryPolicySchemaArgs $;
public Builder() {
$ = new BlobInventoryPolicySchemaArgs();
}
public Builder(BlobInventoryPolicySchemaArgs defaults) {
$ = new BlobInventoryPolicySchemaArgs(Objects.requireNonNull(defaults));
}
/**
* @param enabled Policy is enabled if set to true.
*
* @return builder
*
*/
public Builder enabled(Output enabled) {
$.enabled = enabled;
return this;
}
/**
* @param enabled Policy is enabled if set to true.
*
* @return builder
*
*/
public Builder enabled(Boolean enabled) {
return enabled(Output.of(enabled));
}
/**
* @param rules The storage account blob inventory policy rules. The rule is applied when it is enabled.
*
* @return builder
*
*/
public Builder rules(Output> rules) {
$.rules = rules;
return this;
}
/**
* @param rules The storage account blob inventory policy rules. The rule is applied when it is enabled.
*
* @return builder
*
*/
public Builder rules(List rules) {
return rules(Output.of(rules));
}
/**
* @param rules The storage account blob inventory policy rules. The rule is applied when it is enabled.
*
* @return builder
*
*/
public Builder rules(BlobInventoryPolicyRuleArgs... rules) {
return rules(List.of(rules));
}
/**
* @param type The valid value is Inventory
*
* @return builder
*
*/
public Builder type(Output> type) {
$.type = type;
return this;
}
/**
* @param type The valid value is Inventory
*
* @return builder
*
*/
public Builder type(Either type) {
return type(Output.of(type));
}
/**
* @param type The valid value is Inventory
*
* @return builder
*
*/
public Builder type(String type) {
return type(Either.ofLeft(type));
}
/**
* @param type The valid value is Inventory
*
* @return builder
*
*/
public Builder type(InventoryRuleType type) {
return type(Either.ofRight(type));
}
public BlobInventoryPolicySchemaArgs build() {
if ($.enabled == null) {
throw new MissingRequiredPropertyException("BlobInventoryPolicySchemaArgs", "enabled");
}
if ($.rules == null) {
throw new MissingRequiredPropertyException("BlobInventoryPolicySchemaArgs", "rules");
}
if ($.type == null) {
throw new MissingRequiredPropertyException("BlobInventoryPolicySchemaArgs", "type");
}
return $;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy