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

import com.pulumi.aws.timestreamwrite.outputs.TableMagneticStoreWritePropertiesMagneticStoreRejectedDataLocationS3Configuration;
import com.pulumi.core.annotations.CustomType;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class TableMagneticStoreWritePropertiesMagneticStoreRejectedDataLocation {
    /**
     * @return Configuration of an S3 location to write error reports for records rejected, asynchronously, during magnetic store writes. See S3 Configuration below for more details.
     * 
     */
    private @Nullable TableMagneticStoreWritePropertiesMagneticStoreRejectedDataLocationS3Configuration s3Configuration;

    private TableMagneticStoreWritePropertiesMagneticStoreRejectedDataLocation() {}
    /**
     * @return Configuration of an S3 location to write error reports for records rejected, asynchronously, during magnetic store writes. See S3 Configuration below for more details.
     * 
     */
    public Optional<TableMagneticStoreWritePropertiesMagneticStoreRejectedDataLocationS3Configuration> s3Configuration() {
        return Optional.ofNullable(this.s3Configuration);
    }

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

    public static Builder builder(TableMagneticStoreWritePropertiesMagneticStoreRejectedDataLocation defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable TableMagneticStoreWritePropertiesMagneticStoreRejectedDataLocationS3Configuration s3Configuration;
        public Builder() {}
        public Builder(TableMagneticStoreWritePropertiesMagneticStoreRejectedDataLocation defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.s3Configuration = defaults.s3Configuration;
        }

        @CustomType.Setter
        public Builder s3Configuration(@Nullable TableMagneticStoreWritePropertiesMagneticStoreRejectedDataLocationS3Configuration s3Configuration) {
            this.s3Configuration = s3Configuration;
            return this;
        }
        public TableMagneticStoreWritePropertiesMagneticStoreRejectedDataLocation build() {
            final var o = new TableMagneticStoreWritePropertiesMagneticStoreRejectedDataLocation();
            o.s3Configuration = s3Configuration;
            return o;
        }
    }
}
