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

com.pulumi.aws.s3.inputs.BucketLifecycleRuleNoncurrentVersionExpirationArgs 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 java.lang.Integer;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final BucketLifecycleRuleNoncurrentVersionExpirationArgs Empty = new BucketLifecycleRuleNoncurrentVersionExpirationArgs();

    /**
     * Specifies the number of days noncurrent object versions expire.
     * 
     */
    @Import(name="days")
    private @Nullable Output days;

    /**
     * @return Specifies the number of days noncurrent object versions expire.
     * 
     */
    public Optional> days() {
        return Optional.ofNullable(this.days);
    }

    private BucketLifecycleRuleNoncurrentVersionExpirationArgs() {}

    private BucketLifecycleRuleNoncurrentVersionExpirationArgs(BucketLifecycleRuleNoncurrentVersionExpirationArgs $) {
        this.days = $.days;
    }

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

    public static final class Builder {
        private BucketLifecycleRuleNoncurrentVersionExpirationArgs $;

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

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

        /**
         * @param days Specifies the number of days noncurrent object versions expire.
         * 
         * @return builder
         * 
         */
        public Builder days(@Nullable Output days) {
            $.days = days;
            return this;
        }

        /**
         * @param days Specifies the number of days noncurrent object versions expire.
         * 
         * @return builder
         * 
         */
        public Builder days(Integer days) {
            return days(Output.of(days));
        }

        public BucketLifecycleRuleNoncurrentVersionExpirationArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy