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

import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import javax.annotation.Nullable;

@CustomType
public final class FlowSourceFlowConfigSourceConnectorPropertiesCustomConnector {
    /**
     * @return Custom properties that are specific to the connector when it&#39;s used as a destination in the flow. Maximum of 50 items.
     * 
     */
    private @Nullable Map<String,String> customProperties;
    /**
     * @return Entity specified in the custom connector as a destination in the flow.
     * 
     */
    private String entityName;

    private FlowSourceFlowConfigSourceConnectorPropertiesCustomConnector() {}
    /**
     * @return Custom properties that are specific to the connector when it&#39;s used as a destination in the flow. Maximum of 50 items.
     * 
     */
    public Map<String,String> customProperties() {
        return this.customProperties == null ? Map.of() : this.customProperties;
    }
    /**
     * @return Entity specified in the custom connector as a destination in the flow.
     * 
     */
    public String entityName() {
        return this.entityName;
    }

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

    public static Builder builder(FlowSourceFlowConfigSourceConnectorPropertiesCustomConnector defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Map<String,String> customProperties;
        private String entityName;
        public Builder() {}
        public Builder(FlowSourceFlowConfigSourceConnectorPropertiesCustomConnector defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.customProperties = defaults.customProperties;
    	      this.entityName = defaults.entityName;
        }

        @CustomType.Setter
        public Builder customProperties(@Nullable Map<String,String> customProperties) {
            this.customProperties = customProperties;
            return this;
        }
        @CustomType.Setter
        public Builder entityName(String entityName) {
            this.entityName = Objects.requireNonNull(entityName);
            return this;
        }
        public FlowSourceFlowConfigSourceConnectorPropertiesCustomConnector build() {
            final var o = new FlowSourceFlowConfigSourceConnectorPropertiesCustomConnector();
            o.customProperties = customProperties;
            o.entityName = entityName;
            return o;
        }
    }
}
