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

com.pulumi.aws.s3.inputs.BucketV2LifecycleRuleTransitionArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

There is a newer version: 6.60.0-alpha.1731982519
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.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 BucketV2LifecycleRuleTransitionArgs extends com.pulumi.resources.ResourceArgs {

    public static final BucketV2LifecycleRuleTransitionArgs Empty = new BucketV2LifecycleRuleTransitionArgs();

    /**
     * Specifies the date after which you want the corresponding action to take effect.
     * 
     */
    @Import(name="date")
    private @Nullable Output date;

    /**
     * @return Specifies the date after which you want the corresponding action to take effect.
     * 
     */
    public Optional> date() {
        return Optional.ofNullable(this.date);
    }

    /**
     * Specifies the number of days after object creation when the specific rule action takes effect.
     * 
     */
    @Import(name="days")
    private @Nullable Output days;

    /**
     * @return Specifies the number of days after object creation when the specific rule action takes effect.
     * 
     */
    public Optional> days() {
        return Optional.ofNullable(this.days);
    }

    /**
     * Specifies the Amazon S3 [storage class](https://docs.aws.amazon.com/AmazonS3/latest/API/API_Transition.html#AmazonS3-Type-Transition-StorageClass) to which you want the object to transition.
     * 
     */
    @Import(name="storageClass", required=true)
    private Output storageClass;

    /**
     * @return Specifies the Amazon S3 [storage class](https://docs.aws.amazon.com/AmazonS3/latest/API/API_Transition.html#AmazonS3-Type-Transition-StorageClass) to which you want the object to transition.
     * 
     */
    public Output storageClass() {
        return this.storageClass;
    }

    private BucketV2LifecycleRuleTransitionArgs() {}

    private BucketV2LifecycleRuleTransitionArgs(BucketV2LifecycleRuleTransitionArgs $) {
        this.date = $.date;
        this.days = $.days;
        this.storageClass = $.storageClass;
    }

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

    public static final class Builder {
        private BucketV2LifecycleRuleTransitionArgs $;

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

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

        /**
         * @param date Specifies the date after which you want the corresponding action to take effect.
         * 
         * @return builder
         * 
         */
        public Builder date(@Nullable Output date) {
            $.date = date;
            return this;
        }

        /**
         * @param date Specifies the date after which you want the corresponding action to take effect.
         * 
         * @return builder
         * 
         */
        public Builder date(String date) {
            return date(Output.of(date));
        }

        /**
         * @param days Specifies the number of days after object creation when the specific rule action takes effect.
         * 
         * @return builder
         * 
         */
        public Builder days(@Nullable Output days) {
            $.days = days;
            return this;
        }

        /**
         * @param days Specifies the number of days after object creation when the specific rule action takes effect.
         * 
         * @return builder
         * 
         */
        public Builder days(Integer days) {
            return days(Output.of(days));
        }

        /**
         * @param storageClass Specifies the Amazon S3 [storage class](https://docs.aws.amazon.com/AmazonS3/latest/API/API_Transition.html#AmazonS3-Type-Transition-StorageClass) to which you want the object to transition.
         * 
         * @return builder
         * 
         */
        public Builder storageClass(Output storageClass) {
            $.storageClass = storageClass;
            return this;
        }

        /**
         * @param storageClass Specifies the Amazon S3 [storage class](https://docs.aws.amazon.com/AmazonS3/latest/API/API_Transition.html#AmazonS3-Type-Transition-StorageClass) to which you want the object to transition.
         * 
         * @return builder
         * 
         */
        public Builder storageClass(String storageClass) {
            return storageClass(Output.of(storageClass));
        }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy