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

com.pulumi.aws.s3control.StorageLensConfigurationArgs 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.s3control;

import com.pulumi.aws.s3control.inputs.StorageLensConfigurationStorageLensConfigurationArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final StorageLensConfigurationArgs Empty = new StorageLensConfigurationArgs();

    /**
     * The AWS account ID for the S3 Storage Lens configuration. Defaults to automatically determined account ID of the AWS provider.
     * 
     */
    @Import(name="accountId")
    private @Nullable Output accountId;

    /**
     * @return The AWS account ID for the S3 Storage Lens configuration. Defaults to automatically determined account ID of the AWS provider.
     * 
     */
    public Optional> accountId() {
        return Optional.ofNullable(this.accountId);
    }

    /**
     * The ID of the S3 Storage Lens configuration.
     * 
     */
    @Import(name="configId", required=true)
    private Output configId;

    /**
     * @return The ID of the S3 Storage Lens configuration.
     * 
     */
    public Output configId() {
        return this.configId;
    }

    /**
     * The S3 Storage Lens configuration. See Storage Lens Configuration below for more details.
     * 
     */
    @Import(name="storageLensConfiguration", required=true)
    private Output storageLensConfiguration;

    /**
     * @return The S3 Storage Lens configuration. See Storage Lens Configuration below for more details.
     * 
     */
    public Output storageLensConfiguration() {
        return this.storageLensConfiguration;
    }

    /**
     * Key-value map of resource tags. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return Key-value map of resource tags. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    private StorageLensConfigurationArgs() {}

    private StorageLensConfigurationArgs(StorageLensConfigurationArgs $) {
        this.accountId = $.accountId;
        this.configId = $.configId;
        this.storageLensConfiguration = $.storageLensConfiguration;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private StorageLensConfigurationArgs $;

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

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

        /**
         * @param accountId The AWS account ID for the S3 Storage Lens configuration. Defaults to automatically determined account ID of the AWS provider.
         * 
         * @return builder
         * 
         */
        public Builder accountId(@Nullable Output accountId) {
            $.accountId = accountId;
            return this;
        }

        /**
         * @param accountId The AWS account ID for the S3 Storage Lens configuration. Defaults to automatically determined account ID of the AWS provider.
         * 
         * @return builder
         * 
         */
        public Builder accountId(String accountId) {
            return accountId(Output.of(accountId));
        }

        /**
         * @param configId The ID of the S3 Storage Lens configuration.
         * 
         * @return builder
         * 
         */
        public Builder configId(Output configId) {
            $.configId = configId;
            return this;
        }

        /**
         * @param configId The ID of the S3 Storage Lens configuration.
         * 
         * @return builder
         * 
         */
        public Builder configId(String configId) {
            return configId(Output.of(configId));
        }

        /**
         * @param storageLensConfiguration The S3 Storage Lens configuration. See Storage Lens Configuration below for more details.
         * 
         * @return builder
         * 
         */
        public Builder storageLensConfiguration(Output storageLensConfiguration) {
            $.storageLensConfiguration = storageLensConfiguration;
            return this;
        }

        /**
         * @param storageLensConfiguration The S3 Storage Lens configuration. See Storage Lens Configuration below for more details.
         * 
         * @return builder
         * 
         */
        public Builder storageLensConfiguration(StorageLensConfigurationStorageLensConfigurationArgs storageLensConfiguration) {
            return storageLensConfiguration(Output.of(storageLensConfiguration));
        }

        /**
         * @param tags Key-value map of resource tags. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags Key-value map of resource tags. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        public StorageLensConfigurationArgs build() {
            if ($.configId == null) {
                throw new MissingRequiredPropertyException("StorageLensConfigurationArgs", "configId");
            }
            if ($.storageLensConfiguration == null) {
                throw new MissingRequiredPropertyException("StorageLensConfigurationArgs", "storageLensConfiguration");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy