All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.aws.s3.BucketIntelligentTieringConfigurationArgs 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.aws.s3;

import com.pulumi.aws.s3.inputs.BucketIntelligentTieringConfigurationFilterArgs;
import com.pulumi.aws.s3.inputs.BucketIntelligentTieringConfigurationTieringArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class BucketIntelligentTieringConfigurationArgs extends com.pulumi.resources.ResourceArgs {

    public static final BucketIntelligentTieringConfigurationArgs Empty = new BucketIntelligentTieringConfigurationArgs();

    /**
     * Name of the bucket this intelligent tiering configuration is associated with.
     * 
     */
    @Import(name="bucket", required=true)
    private Output bucket;

    /**
     * @return Name of the bucket this intelligent tiering configuration is associated with.
     * 
     */
    public Output bucket() {
        return this.bucket;
    }

    /**
     * Bucket filter. The configuration only includes objects that meet the filter's criteria (documented below).
     * 
     */
    @Import(name="filter")
    private @Nullable Output filter;

    /**
     * @return Bucket filter. The configuration only includes objects that meet the filter's criteria (documented below).
     * 
     */
    public Optional> filter() {
        return Optional.ofNullable(this.filter);
    }

    /**
     * Unique name used to identify the S3 Intelligent-Tiering configuration for the bucket.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Unique name used to identify the S3 Intelligent-Tiering configuration for the bucket.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * Specifies the status of the configuration. Valid values: `Enabled`, `Disabled`.
     * 
     */
    @Import(name="status")
    private @Nullable Output status;

    /**
     * @return Specifies the status of the configuration. Valid values: `Enabled`, `Disabled`.
     * 
     */
    public Optional> status() {
        return Optional.ofNullable(this.status);
    }

    /**
     * S3 Intelligent-Tiering storage class tiers of the configuration (documented below).
     * 
     */
    @Import(name="tierings", required=true)
    private Output> tierings;

    /**
     * @return S3 Intelligent-Tiering storage class tiers of the configuration (documented below).
     * 
     */
    public Output> tierings() {
        return this.tierings;
    }

    private BucketIntelligentTieringConfigurationArgs() {}

    private BucketIntelligentTieringConfigurationArgs(BucketIntelligentTieringConfigurationArgs $) {
        this.bucket = $.bucket;
        this.filter = $.filter;
        this.name = $.name;
        this.status = $.status;
        this.tierings = $.tierings;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(BucketIntelligentTieringConfigurationArgs defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private BucketIntelligentTieringConfigurationArgs $;

        public Builder() {
            $ = new BucketIntelligentTieringConfigurationArgs();
        }

        public Builder(BucketIntelligentTieringConfigurationArgs defaults) {
            $ = new BucketIntelligentTieringConfigurationArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param bucket Name of the bucket this intelligent tiering configuration is associated with.
         * 
         * @return builder
         * 
         */
        public Builder bucket(Output bucket) {
            $.bucket = bucket;
            return this;
        }

        /**
         * @param bucket Name of the bucket this intelligent tiering configuration is associated with.
         * 
         * @return builder
         * 
         */
        public Builder bucket(String bucket) {
            return bucket(Output.of(bucket));
        }

        /**
         * @param filter Bucket filter. The configuration only includes objects that meet the filter's criteria (documented below).
         * 
         * @return builder
         * 
         */
        public Builder filter(@Nullable Output filter) {
            $.filter = filter;
            return this;
        }

        /**
         * @param filter Bucket filter. The configuration only includes objects that meet the filter's criteria (documented below).
         * 
         * @return builder
         * 
         */
        public Builder filter(BucketIntelligentTieringConfigurationFilterArgs filter) {
            return filter(Output.of(filter));
        }

        /**
         * @param name Unique name used to identify the S3 Intelligent-Tiering configuration for the bucket.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Unique name used to identify the S3 Intelligent-Tiering configuration for the bucket.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param status Specifies the status of the configuration. Valid values: `Enabled`, `Disabled`.
         * 
         * @return builder
         * 
         */
        public Builder status(@Nullable Output status) {
            $.status = status;
            return this;
        }

        /**
         * @param status Specifies the status of the configuration. Valid values: `Enabled`, `Disabled`.
         * 
         * @return builder
         * 
         */
        public Builder status(String status) {
            return status(Output.of(status));
        }

        /**
         * @param tierings S3 Intelligent-Tiering storage class tiers of the configuration (documented below).
         * 
         * @return builder
         * 
         */
        public Builder tierings(Output> tierings) {
            $.tierings = tierings;
            return this;
        }

        /**
         * @param tierings S3 Intelligent-Tiering storage class tiers of the configuration (documented below).
         * 
         * @return builder
         * 
         */
        public Builder tierings(List tierings) {
            return tierings(Output.of(tierings));
        }

        /**
         * @param tierings S3 Intelligent-Tiering storage class tiers of the configuration (documented below).
         * 
         * @return builder
         * 
         */
        public Builder tierings(BucketIntelligentTieringConfigurationTieringArgs... tierings) {
            return tierings(List.of(tierings));
        }

        public BucketIntelligentTieringConfigurationArgs build() {
            if ($.bucket == null) {
                throw new MissingRequiredPropertyException("BucketIntelligentTieringConfigurationArgs", "bucket");
            }
            if ($.tierings == null) {
                throw new MissingRequiredPropertyException("BucketIntelligentTieringConfigurationArgs", "tierings");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy