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

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

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final BucketLifecycleConfigurationV2RuleNoncurrentVersionTransitionArgs Empty = new BucketLifecycleConfigurationV2RuleNoncurrentVersionTransitionArgs();

    /**
     * Number of noncurrent versions Amazon S3 will retain. Must be a non-zero positive integer.
     * 
     */
    @Import(name="newerNoncurrentVersions")
    private @Nullable Output newerNoncurrentVersions;

    /**
     * @return Number of noncurrent versions Amazon S3 will retain. Must be a non-zero positive integer.
     * 
     */
    public Optional> newerNoncurrentVersions() {
        return Optional.ofNullable(this.newerNoncurrentVersions);
    }

    /**
     * Number of days an object is noncurrent before Amazon S3 can perform the associated action.
     * 
     */
    @Import(name="noncurrentDays")
    private @Nullable Output noncurrentDays;

    /**
     * @return Number of days an object is noncurrent before Amazon S3 can perform the associated action.
     * 
     */
    public Optional> noncurrentDays() {
        return Optional.ofNullable(this.noncurrentDays);
    }

    /**
     * Class of storage used to store the object. Valid Values: `GLACIER`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `DEEP_ARCHIVE`, `GLACIER_IR`.
     * 
     */
    @Import(name="storageClass", required=true)
    private Output storageClass;

    /**
     * @return Class of storage used to store the object. Valid Values: `GLACIER`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `DEEP_ARCHIVE`, `GLACIER_IR`.
     * 
     */
    public Output storageClass() {
        return this.storageClass;
    }

    private BucketLifecycleConfigurationV2RuleNoncurrentVersionTransitionArgs() {}

    private BucketLifecycleConfigurationV2RuleNoncurrentVersionTransitionArgs(BucketLifecycleConfigurationV2RuleNoncurrentVersionTransitionArgs $) {
        this.newerNoncurrentVersions = $.newerNoncurrentVersions;
        this.noncurrentDays = $.noncurrentDays;
        this.storageClass = $.storageClass;
    }

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

    public static final class Builder {
        private BucketLifecycleConfigurationV2RuleNoncurrentVersionTransitionArgs $;

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

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

        /**
         * @param newerNoncurrentVersions Number of noncurrent versions Amazon S3 will retain. Must be a non-zero positive integer.
         * 
         * @return builder
         * 
         */
        public Builder newerNoncurrentVersions(@Nullable Output newerNoncurrentVersions) {
            $.newerNoncurrentVersions = newerNoncurrentVersions;
            return this;
        }

        /**
         * @param newerNoncurrentVersions Number of noncurrent versions Amazon S3 will retain. Must be a non-zero positive integer.
         * 
         * @return builder
         * 
         */
        public Builder newerNoncurrentVersions(String newerNoncurrentVersions) {
            return newerNoncurrentVersions(Output.of(newerNoncurrentVersions));
        }

        /**
         * @param noncurrentDays Number of days an object is noncurrent before Amazon S3 can perform the associated action.
         * 
         * @return builder
         * 
         */
        public Builder noncurrentDays(@Nullable Output noncurrentDays) {
            $.noncurrentDays = noncurrentDays;
            return this;
        }

        /**
         * @param noncurrentDays Number of days an object is noncurrent before Amazon S3 can perform the associated action.
         * 
         * @return builder
         * 
         */
        public Builder noncurrentDays(Integer noncurrentDays) {
            return noncurrentDays(Output.of(noncurrentDays));
        }

        /**
         * @param storageClass Class of storage used to store the object. Valid Values: `GLACIER`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `DEEP_ARCHIVE`, `GLACIER_IR`.
         * 
         * @return builder
         * 
         */
        public Builder storageClass(Output storageClass) {
            $.storageClass = storageClass;
            return this;
        }

        /**
         * @param storageClass Class of storage used to store the object. Valid Values: `GLACIER`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `DEEP_ARCHIVE`, `GLACIER_IR`.
         * 
         * @return builder
         * 
         */
        public Builder storageClass(String storageClass) {
            return storageClass(Output.of(storageClass));
        }

        public BucketLifecycleConfigurationV2RuleNoncurrentVersionTransitionArgs build() {
            if ($.storageClass == null) {
                throw new MissingRequiredPropertyException("BucketLifecycleConfigurationV2RuleNoncurrentVersionTransitionArgs", "storageClass");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy