// *** 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.inputs;

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


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

    public static final StorageLensConfigurationStorageLensConfigurationDataExportS3BucketDestinationArgs Empty = new StorageLensConfigurationStorageLensConfigurationDataExportS3BucketDestinationArgs();

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

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

    /**
     * The Amazon Resource Name (ARN) of the Amazon Web Services organization.
     * 
     */
    @Import(name="arn", required=true)
    private Output<String> arn;

    /**
     * @return The Amazon Resource Name (ARN) of the Amazon Web Services organization.
     * 
     */
    public Output<String> arn() {
        return this.arn;
    }

    /**
     * Encryption of the metrics exports in this bucket. See Encryption below for more details.
     * 
     */
    @Import(name="encryption")
    private @Nullable Output<StorageLensConfigurationStorageLensConfigurationDataExportS3BucketDestinationEncryptionArgs> encryption;

    /**
     * @return Encryption of the metrics exports in this bucket. See Encryption below for more details.
     * 
     */
    public Optional<Output<StorageLensConfigurationStorageLensConfigurationDataExportS3BucketDestinationEncryptionArgs>> encryption() {
        return Optional.ofNullable(this.encryption);
    }

    /**
     * The export format. Valid values: `CSV`, `Parquet`.
     * 
     */
    @Import(name="format", required=true)
    private Output<String> format;

    /**
     * @return The export format. Valid values: `CSV`, `Parquet`.
     * 
     */
    public Output<String> format() {
        return this.format;
    }

    /**
     * The schema version of the export file. Valid values: `V_1`.
     * 
     */
    @Import(name="outputSchemaVersion", required=true)
    private Output<String> outputSchemaVersion;

    /**
     * @return The schema version of the export file. Valid values: `V_1`.
     * 
     */
    public Output<String> outputSchemaVersion() {
        return this.outputSchemaVersion;
    }

    /**
     * The prefix of the destination bucket where the metrics export will be delivered.
     * 
     */
    @Import(name="prefix")
    private @Nullable Output<String> prefix;

    /**
     * @return The prefix of the destination bucket where the metrics export will be delivered.
     * 
     */
    public Optional<Output<String>> prefix() {
        return Optional.ofNullable(this.prefix);
    }

    private StorageLensConfigurationStorageLensConfigurationDataExportS3BucketDestinationArgs() {}

    private StorageLensConfigurationStorageLensConfigurationDataExportS3BucketDestinationArgs(StorageLensConfigurationStorageLensConfigurationDataExportS3BucketDestinationArgs $) {
        this.accountId = $.accountId;
        this.arn = $.arn;
        this.encryption = $.encryption;
        this.format = $.format;
        this.outputSchemaVersion = $.outputSchemaVersion;
        this.prefix = $.prefix;
    }

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

    public static final class Builder {
        private StorageLensConfigurationStorageLensConfigurationDataExportS3BucketDestinationArgs $;

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

        public Builder(StorageLensConfigurationStorageLensConfigurationDataExportS3BucketDestinationArgs defaults) {
            $ = new StorageLensConfigurationStorageLensConfigurationDataExportS3BucketDestinationArgs(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(Output<String> 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 arn The Amazon Resource Name (ARN) of the Amazon Web Services organization.
         * 
         * @return builder
         * 
         */
        public Builder arn(Output<String> arn) {
            $.arn = arn;
            return this;
        }

        /**
         * @param arn The Amazon Resource Name (ARN) of the Amazon Web Services organization.
         * 
         * @return builder
         * 
         */
        public Builder arn(String arn) {
            return arn(Output.of(arn));
        }

        /**
         * @param encryption Encryption of the metrics exports in this bucket. See Encryption below for more details.
         * 
         * @return builder
         * 
         */
        public Builder encryption(@Nullable Output<StorageLensConfigurationStorageLensConfigurationDataExportS3BucketDestinationEncryptionArgs> encryption) {
            $.encryption = encryption;
            return this;
        }

        /**
         * @param encryption Encryption of the metrics exports in this bucket. See Encryption below for more details.
         * 
         * @return builder
         * 
         */
        public Builder encryption(StorageLensConfigurationStorageLensConfigurationDataExportS3BucketDestinationEncryptionArgs encryption) {
            return encryption(Output.of(encryption));
        }

        /**
         * @param format The export format. Valid values: `CSV`, `Parquet`.
         * 
         * @return builder
         * 
         */
        public Builder format(Output<String> format) {
            $.format = format;
            return this;
        }

        /**
         * @param format The export format. Valid values: `CSV`, `Parquet`.
         * 
         * @return builder
         * 
         */
        public Builder format(String format) {
            return format(Output.of(format));
        }

        /**
         * @param outputSchemaVersion The schema version of the export file. Valid values: `V_1`.
         * 
         * @return builder
         * 
         */
        public Builder outputSchemaVersion(Output<String> outputSchemaVersion) {
            $.outputSchemaVersion = outputSchemaVersion;
            return this;
        }

        /**
         * @param outputSchemaVersion The schema version of the export file. Valid values: `V_1`.
         * 
         * @return builder
         * 
         */
        public Builder outputSchemaVersion(String outputSchemaVersion) {
            return outputSchemaVersion(Output.of(outputSchemaVersion));
        }

        /**
         * @param prefix The prefix of the destination bucket where the metrics export will be delivered.
         * 
         * @return builder
         * 
         */
        public Builder prefix(@Nullable Output<String> prefix) {
            $.prefix = prefix;
            return this;
        }

        /**
         * @param prefix The prefix of the destination bucket where the metrics export will be delivered.
         * 
         * @return builder
         * 
         */
        public Builder prefix(String prefix) {
            return prefix(Output.of(prefix));
        }

        public StorageLensConfigurationStorageLensConfigurationDataExportS3BucketDestinationArgs build() {
            $.accountId = Objects.requireNonNull($.accountId, "expected parameter 'accountId' to be non-null");
            $.arn = Objects.requireNonNull($.arn, "expected parameter 'arn' to be non-null");
            $.format = Objects.requireNonNull($.format, "expected parameter 'format' to be non-null");
            $.outputSchemaVersion = Objects.requireNonNull($.outputSchemaVersion, "expected parameter 'outputSchemaVersion' to be non-null");
            return $;
        }
    }

}
