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

com.pulumi.azurenative.customerinsights.ConnectorMappingArgs Maven / Gradle / Ivy

There is a newer version: 2.72.0
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.azurenative.customerinsights;

import com.pulumi.azurenative.customerinsights.enums.ConnectorTypes;
import com.pulumi.azurenative.customerinsights.enums.EntityTypes;
import com.pulumi.azurenative.customerinsights.inputs.ConnectorMappingPropertiesArgs;
import com.pulumi.core.Either;
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 ConnectorMappingArgs extends com.pulumi.resources.ResourceArgs {

    public static final ConnectorMappingArgs Empty = new ConnectorMappingArgs();

    /**
     * The name of the connector.
     * 
     */
    @Import(name="connectorName", required=true)
    private Output connectorName;

    /**
     * @return The name of the connector.
     * 
     */
    public Output connectorName() {
        return this.connectorName;
    }

    /**
     * Type of connector.
     * 
     */
    @Import(name="connectorType")
    private @Nullable Output> connectorType;

    /**
     * @return Type of connector.
     * 
     */
    public Optional>> connectorType() {
        return Optional.ofNullable(this.connectorType);
    }

    /**
     * The description of the connector mapping.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return The description of the connector mapping.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * Display name for the connector mapping.
     * 
     */
    @Import(name="displayName")
    private @Nullable Output displayName;

    /**
     * @return Display name for the connector mapping.
     * 
     */
    public Optional> displayName() {
        return Optional.ofNullable(this.displayName);
    }

    /**
     * Defines which entity type the file should map to.
     * 
     */
    @Import(name="entityType", required=true)
    private Output entityType;

    /**
     * @return Defines which entity type the file should map to.
     * 
     */
    public Output entityType() {
        return this.entityType;
    }

    /**
     * The mapping entity name.
     * 
     */
    @Import(name="entityTypeName", required=true)
    private Output entityTypeName;

    /**
     * @return The mapping entity name.
     * 
     */
    public Output entityTypeName() {
        return this.entityTypeName;
    }

    /**
     * The name of the hub.
     * 
     */
    @Import(name="hubName", required=true)
    private Output hubName;

    /**
     * @return The name of the hub.
     * 
     */
    public Output hubName() {
        return this.hubName;
    }

    /**
     * The name of the connector mapping.
     * 
     */
    @Import(name="mappingName")
    private @Nullable Output mappingName;

    /**
     * @return The name of the connector mapping.
     * 
     */
    public Optional> mappingName() {
        return Optional.ofNullable(this.mappingName);
    }

    /**
     * The properties of the mapping.
     * 
     */
    @Import(name="mappingProperties", required=true)
    private Output mappingProperties;

    /**
     * @return The properties of the mapping.
     * 
     */
    public Output mappingProperties() {
        return this.mappingProperties;
    }

    /**
     * The name of the resource group.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the resource group.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    private ConnectorMappingArgs() {}

    private ConnectorMappingArgs(ConnectorMappingArgs $) {
        this.connectorName = $.connectorName;
        this.connectorType = $.connectorType;
        this.description = $.description;
        this.displayName = $.displayName;
        this.entityType = $.entityType;
        this.entityTypeName = $.entityTypeName;
        this.hubName = $.hubName;
        this.mappingName = $.mappingName;
        this.mappingProperties = $.mappingProperties;
        this.resourceGroupName = $.resourceGroupName;
    }

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

    public static final class Builder {
        private ConnectorMappingArgs $;

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

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

        /**
         * @param connectorName The name of the connector.
         * 
         * @return builder
         * 
         */
        public Builder connectorName(Output connectorName) {
            $.connectorName = connectorName;
            return this;
        }

        /**
         * @param connectorName The name of the connector.
         * 
         * @return builder
         * 
         */
        public Builder connectorName(String connectorName) {
            return connectorName(Output.of(connectorName));
        }

        /**
         * @param connectorType Type of connector.
         * 
         * @return builder
         * 
         */
        public Builder connectorType(@Nullable Output> connectorType) {
            $.connectorType = connectorType;
            return this;
        }

        /**
         * @param connectorType Type of connector.
         * 
         * @return builder
         * 
         */
        public Builder connectorType(Either connectorType) {
            return connectorType(Output.of(connectorType));
        }

        /**
         * @param connectorType Type of connector.
         * 
         * @return builder
         * 
         */
        public Builder connectorType(String connectorType) {
            return connectorType(Either.ofLeft(connectorType));
        }

        /**
         * @param connectorType Type of connector.
         * 
         * @return builder
         * 
         */
        public Builder connectorType(ConnectorTypes connectorType) {
            return connectorType(Either.ofRight(connectorType));
        }

        /**
         * @param description The description of the connector mapping.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description The description of the connector mapping.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param displayName Display name for the connector mapping.
         * 
         * @return builder
         * 
         */
        public Builder displayName(@Nullable Output displayName) {
            $.displayName = displayName;
            return this;
        }

        /**
         * @param displayName Display name for the connector mapping.
         * 
         * @return builder
         * 
         */
        public Builder displayName(String displayName) {
            return displayName(Output.of(displayName));
        }

        /**
         * @param entityType Defines which entity type the file should map to.
         * 
         * @return builder
         * 
         */
        public Builder entityType(Output entityType) {
            $.entityType = entityType;
            return this;
        }

        /**
         * @param entityType Defines which entity type the file should map to.
         * 
         * @return builder
         * 
         */
        public Builder entityType(EntityTypes entityType) {
            return entityType(Output.of(entityType));
        }

        /**
         * @param entityTypeName The mapping entity name.
         * 
         * @return builder
         * 
         */
        public Builder entityTypeName(Output entityTypeName) {
            $.entityTypeName = entityTypeName;
            return this;
        }

        /**
         * @param entityTypeName The mapping entity name.
         * 
         * @return builder
         * 
         */
        public Builder entityTypeName(String entityTypeName) {
            return entityTypeName(Output.of(entityTypeName));
        }

        /**
         * @param hubName The name of the hub.
         * 
         * @return builder
         * 
         */
        public Builder hubName(Output hubName) {
            $.hubName = hubName;
            return this;
        }

        /**
         * @param hubName The name of the hub.
         * 
         * @return builder
         * 
         */
        public Builder hubName(String hubName) {
            return hubName(Output.of(hubName));
        }

        /**
         * @param mappingName The name of the connector mapping.
         * 
         * @return builder
         * 
         */
        public Builder mappingName(@Nullable Output mappingName) {
            $.mappingName = mappingName;
            return this;
        }

        /**
         * @param mappingName The name of the connector mapping.
         * 
         * @return builder
         * 
         */
        public Builder mappingName(String mappingName) {
            return mappingName(Output.of(mappingName));
        }

        /**
         * @param mappingProperties The properties of the mapping.
         * 
         * @return builder
         * 
         */
        public Builder mappingProperties(Output mappingProperties) {
            $.mappingProperties = mappingProperties;
            return this;
        }

        /**
         * @param mappingProperties The properties of the mapping.
         * 
         * @return builder
         * 
         */
        public Builder mappingProperties(ConnectorMappingPropertiesArgs mappingProperties) {
            return mappingProperties(Output.of(mappingProperties));
        }

        /**
         * @param resourceGroupName The name of the resource group.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the resource group.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        public ConnectorMappingArgs build() {
            if ($.connectorName == null) {
                throw new MissingRequiredPropertyException("ConnectorMappingArgs", "connectorName");
            }
            if ($.entityType == null) {
                throw new MissingRequiredPropertyException("ConnectorMappingArgs", "entityType");
            }
            if ($.entityTypeName == null) {
                throw new MissingRequiredPropertyException("ConnectorMappingArgs", "entityTypeName");
            }
            if ($.hubName == null) {
                throw new MissingRequiredPropertyException("ConnectorMappingArgs", "hubName");
            }
            if ($.mappingProperties == null) {
                throw new MissingRequiredPropertyException("ConnectorMappingArgs", "mappingProperties");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("ConnectorMappingArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy