// *** 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 java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final BucketLifecycleConfigurationV2RuleNoncurrentVersionExpirationArgs Empty = new BucketLifecycleConfigurationV2RuleNoncurrentVersionExpirationArgs();

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

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

    /**
     * Number of days an object is noncurrent before Amazon S3 can perform the associated action. Must be a positive integer.
     * 
     */
    @Import(name="noncurrentDays")
    private @Nullable Output<Integer> noncurrentDays;

    /**
     * @return Number of days an object is noncurrent before Amazon S3 can perform the associated action. Must be a positive integer.
     * 
     */
    public Optional<Output<Integer>> noncurrentDays() {
        return Optional.ofNullable(this.noncurrentDays);
    }

    private BucketLifecycleConfigurationV2RuleNoncurrentVersionExpirationArgs() {}

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

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

    public static final class Builder {
        private BucketLifecycleConfigurationV2RuleNoncurrentVersionExpirationArgs $;

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

        public Builder(BucketLifecycleConfigurationV2RuleNoncurrentVersionExpirationArgs defaults) {
            $ = new BucketLifecycleConfigurationV2RuleNoncurrentVersionExpirationArgs(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<String> 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. Must be a positive integer.
         * 
         * @return builder
         * 
         */
        public Builder noncurrentDays(@Nullable Output<Integer> noncurrentDays) {
            $.noncurrentDays = noncurrentDays;
            return this;
        }

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

        public BucketLifecycleConfigurationV2RuleNoncurrentVersionExpirationArgs build() {
            return $;
        }
    }

}
