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

com.pulumi.aws.appflow.inputs.FlowSourceFlowConfigSourceConnectorPropertiesS3Args Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

There is a newer version: 6.66.3
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.aws.appflow.inputs;

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


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

    public static final FlowSourceFlowConfigSourceConnectorPropertiesS3Args Empty = new FlowSourceFlowConfigSourceConnectorPropertiesS3Args();

    @Import(name="bucketName", required=true)
    private Output bucketName;

    public Output bucketName() {
        return this.bucketName;
    }

    @Import(name="bucketPrefix", required=true)
    private Output bucketPrefix;

    public Output bucketPrefix() {
        return this.bucketPrefix;
    }

    /**
     * When you use Amazon S3 as the source, the configuration format that you provide the flow input data. See S3 Input Format Config for details.
     * 
     */
    @Import(name="s3InputFormatConfig")
    private @Nullable Output s3InputFormatConfig;

    /**
     * @return When you use Amazon S3 as the source, the configuration format that you provide the flow input data. See S3 Input Format Config for details.
     * 
     */
    public Optional> s3InputFormatConfig() {
        return Optional.ofNullable(this.s3InputFormatConfig);
    }

    private FlowSourceFlowConfigSourceConnectorPropertiesS3Args() {}

    private FlowSourceFlowConfigSourceConnectorPropertiesS3Args(FlowSourceFlowConfigSourceConnectorPropertiesS3Args $) {
        this.bucketName = $.bucketName;
        this.bucketPrefix = $.bucketPrefix;
        this.s3InputFormatConfig = $.s3InputFormatConfig;
    }

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

    public static final class Builder {
        private FlowSourceFlowConfigSourceConnectorPropertiesS3Args $;

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

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

        public Builder bucketName(Output bucketName) {
            $.bucketName = bucketName;
            return this;
        }

        public Builder bucketName(String bucketName) {
            return bucketName(Output.of(bucketName));
        }

        public Builder bucketPrefix(Output bucketPrefix) {
            $.bucketPrefix = bucketPrefix;
            return this;
        }

        public Builder bucketPrefix(String bucketPrefix) {
            return bucketPrefix(Output.of(bucketPrefix));
        }

        /**
         * @param s3InputFormatConfig When you use Amazon S3 as the source, the configuration format that you provide the flow input data. See S3 Input Format Config for details.
         * 
         * @return builder
         * 
         */
        public Builder s3InputFormatConfig(@Nullable Output s3InputFormatConfig) {
            $.s3InputFormatConfig = s3InputFormatConfig;
            return this;
        }

        /**
         * @param s3InputFormatConfig When you use Amazon S3 as the source, the configuration format that you provide the flow input data. See S3 Input Format Config for details.
         * 
         * @return builder
         * 
         */
        public Builder s3InputFormatConfig(FlowSourceFlowConfigSourceConnectorPropertiesS3S3InputFormatConfigArgs s3InputFormatConfig) {
            return s3InputFormatConfig(Output.of(s3InputFormatConfig));
        }

        public FlowSourceFlowConfigSourceConnectorPropertiesS3Args build() {
            if ($.bucketName == null) {
                throw new MissingRequiredPropertyException("FlowSourceFlowConfigSourceConnectorPropertiesS3Args", "bucketName");
            }
            if ($.bucketPrefix == null) {
                throw new MissingRequiredPropertyException("FlowSourceFlowConfigSourceConnectorPropertiesS3Args", "bucketPrefix");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy