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

com.pulumi.azurenative.awsconnector.inputs.LifecycleConfigurationArgs Maven / Gradle / Ivy

There is a newer version: 2.72.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.azurenative.awsconnector.inputs;

import com.pulumi.azurenative.awsconnector.inputs.RuleArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Definition of LifecycleConfiguration
 * 
 */
public final class LifecycleConfigurationArgs extends com.pulumi.resources.ResourceArgs {

    public static final LifecycleConfigurationArgs Empty = new LifecycleConfigurationArgs();

    /**
     * A lifecycle rule for individual objects in an Amazon S3 bucket.
     * 
     */
    @Import(name="rules")
    private @Nullable Output> rules;

    /**
     * @return A lifecycle rule for individual objects in an Amazon S3 bucket.
     * 
     */
    public Optional>> rules() {
        return Optional.ofNullable(this.rules);
    }

    private LifecycleConfigurationArgs() {}

    private LifecycleConfigurationArgs(LifecycleConfigurationArgs $) {
        this.rules = $.rules;
    }

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

    public static final class Builder {
        private LifecycleConfigurationArgs $;

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

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

        /**
         * @param rules A lifecycle rule for individual objects in an Amazon S3 bucket.
         * 
         * @return builder
         * 
         */
        public Builder rules(@Nullable Output> rules) {
            $.rules = rules;
            return this;
        }

        /**
         * @param rules A lifecycle rule for individual objects in an Amazon S3 bucket.
         * 
         * @return builder
         * 
         */
        public Builder rules(List rules) {
            return rules(Output.of(rules));
        }

        /**
         * @param rules A lifecycle rule for individual objects in an Amazon S3 bucket.
         * 
         * @return builder
         * 
         */
        public Builder rules(RuleArgs... rules) {
            return rules(List.of(rules));
        }

        public LifecycleConfigurationArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy