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

com.pulumi.digitalocean.inputs.SpacesBucketLifecycleRuleNoncurrentVersionExpirationArgs Maven / Gradle / Ivy

There is a newer version: 4.35.0
Show newest version
// *** 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.digitalocean.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 SpacesBucketLifecycleRuleNoncurrentVersionExpirationArgs extends com.pulumi.resources.ResourceArgs {

    public static final SpacesBucketLifecycleRuleNoncurrentVersionExpirationArgs Empty = new SpacesBucketLifecycleRuleNoncurrentVersionExpirationArgs();

    /**
     * Specifies the number of days after which an object's non-current versions expire.
     * 
     */
    @Import(name="days")
    private @Nullable Output days;

    /**
     * @return Specifies the number of days after which an object's non-current versions expire.
     * 
     */
    public Optional> days() {
        return Optional.ofNullable(this.days);
    }

    private SpacesBucketLifecycleRuleNoncurrentVersionExpirationArgs() {}

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

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

    public static final class Builder {
        private SpacesBucketLifecycleRuleNoncurrentVersionExpirationArgs $;

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

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

        /**
         * @param days Specifies the number of days after which an object's non-current versions expire.
         * 
         * @return builder
         * 
         */
        public Builder days(@Nullable Output days) {
            $.days = days;
            return this;
        }

        /**
         * @param days Specifies the number of days after which an object's non-current versions expire.
         * 
         * @return builder
         * 
         */
        public Builder days(Integer days) {
            return days(Output.of(days));
        }

        public SpacesBucketLifecycleRuleNoncurrentVersionExpirationArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy