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

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 ResourceDataSyncS3DestinationArgs extends com.pulumi.resources.ResourceArgs {

    public static final ResourceDataSyncS3DestinationArgs Empty = new ResourceDataSyncS3DestinationArgs();

    /**
     * Name of S3 bucket where the aggregated data is stored.
     * 
     */
    @Import(name="bucketName", required=true)
    private Output<String> bucketName;

    /**
     * @return Name of S3 bucket where the aggregated data is stored.
     * 
     */
    public Output<String> bucketName() {
        return this.bucketName;
    }

    /**
     * ARN of an encryption key for a destination in Amazon S3.
     * 
     */
    @Import(name="kmsKeyArn")
    private @Nullable Output<String> kmsKeyArn;

    /**
     * @return ARN of an encryption key for a destination in Amazon S3.
     * 
     */
    public Optional<Output<String>> kmsKeyArn() {
        return Optional.ofNullable(this.kmsKeyArn);
    }

    /**
     * Prefix for the bucket.
     * 
     */
    @Import(name="prefix")
    private @Nullable Output<String> prefix;

    /**
     * @return Prefix for the bucket.
     * 
     */
    public Optional<Output<String>> prefix() {
        return Optional.ofNullable(this.prefix);
    }

    /**
     * Region with the bucket targeted by the Resource Data Sync.
     * 
     */
    @Import(name="region", required=true)
    private Output<String> region;

    /**
     * @return Region with the bucket targeted by the Resource Data Sync.
     * 
     */
    public Output<String> region() {
        return this.region;
    }

    /**
     * A supported sync format. Only JsonSerDe is currently supported. Defaults to JsonSerDe.
     * 
     */
    @Import(name="syncFormat")
    private @Nullable Output<String> syncFormat;

    /**
     * @return A supported sync format. Only JsonSerDe is currently supported. Defaults to JsonSerDe.
     * 
     */
    public Optional<Output<String>> syncFormat() {
        return Optional.ofNullable(this.syncFormat);
    }

    private ResourceDataSyncS3DestinationArgs() {}

    private ResourceDataSyncS3DestinationArgs(ResourceDataSyncS3DestinationArgs $) {
        this.bucketName = $.bucketName;
        this.kmsKeyArn = $.kmsKeyArn;
        this.prefix = $.prefix;
        this.region = $.region;
        this.syncFormat = $.syncFormat;
    }

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

    public static final class Builder {
        private ResourceDataSyncS3DestinationArgs $;

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

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

        /**
         * @param bucketName Name of S3 bucket where the aggregated data is stored.
         * 
         * @return builder
         * 
         */
        public Builder bucketName(Output<String> bucketName) {
            $.bucketName = bucketName;
            return this;
        }

        /**
         * @param bucketName Name of S3 bucket where the aggregated data is stored.
         * 
         * @return builder
         * 
         */
        public Builder bucketName(String bucketName) {
            return bucketName(Output.of(bucketName));
        }

        /**
         * @param kmsKeyArn ARN of an encryption key for a destination in Amazon S3.
         * 
         * @return builder
         * 
         */
        public Builder kmsKeyArn(@Nullable Output<String> kmsKeyArn) {
            $.kmsKeyArn = kmsKeyArn;
            return this;
        }

        /**
         * @param kmsKeyArn ARN of an encryption key for a destination in Amazon S3.
         * 
         * @return builder
         * 
         */
        public Builder kmsKeyArn(String kmsKeyArn) {
            return kmsKeyArn(Output.of(kmsKeyArn));
        }

        /**
         * @param prefix Prefix for the bucket.
         * 
         * @return builder
         * 
         */
        public Builder prefix(@Nullable Output<String> prefix) {
            $.prefix = prefix;
            return this;
        }

        /**
         * @param prefix Prefix for the bucket.
         * 
         * @return builder
         * 
         */
        public Builder prefix(String prefix) {
            return prefix(Output.of(prefix));
        }

        /**
         * @param region Region with the bucket targeted by the Resource Data Sync.
         * 
         * @return builder
         * 
         */
        public Builder region(Output<String> region) {
            $.region = region;
            return this;
        }

        /**
         * @param region Region with the bucket targeted by the Resource Data Sync.
         * 
         * @return builder
         * 
         */
        public Builder region(String region) {
            return region(Output.of(region));
        }

        /**
         * @param syncFormat A supported sync format. Only JsonSerDe is currently supported. Defaults to JsonSerDe.
         * 
         * @return builder
         * 
         */
        public Builder syncFormat(@Nullable Output<String> syncFormat) {
            $.syncFormat = syncFormat;
            return this;
        }

        /**
         * @param syncFormat A supported sync format. Only JsonSerDe is currently supported. Defaults to JsonSerDe.
         * 
         * @return builder
         * 
         */
        public Builder syncFormat(String syncFormat) {
            return syncFormat(Output.of(syncFormat));
        }

        public ResourceDataSyncS3DestinationArgs build() {
            $.bucketName = Objects.requireNonNull($.bucketName, "expected parameter 'bucketName' to be non-null");
            $.region = Objects.requireNonNull($.region, "expected parameter 'region' to be non-null");
            return $;
        }
    }

}
