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

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

There is a newer version: 2.78.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.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.Object;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final ConnectorArgs Empty = new ConnectorArgs();

    /**
     * Name of the connector.
     * 
     */
    @Import(name="connectorName")
    private @Nullable Output connectorName;

    /**
     * @return Name of the connector.
     * 
     */
    public Optional> connectorName() {
        return Optional.ofNullable(this.connectorName);
    }

    /**
     * The connector properties.
     * 
     */
    @Import(name="connectorProperties", required=true)
    private Output> connectorProperties;

    /**
     * @return The connector properties.
     * 
     */
    public Output> connectorProperties() {
        return this.connectorProperties;
    }

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

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

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

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

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

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

    /**
     * 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;
    }

    /**
     * If this is an internal connector.
     * 
     */
    @Import(name="isInternal")
    private @Nullable Output isInternal;

    /**
     * @return If this is an internal connector.
     * 
     */
    public Optional> isInternal() {
        return Optional.ofNullable(this.isInternal);
    }

    /**
     * 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 ConnectorArgs() {}

    private ConnectorArgs(ConnectorArgs $) {
        this.connectorName = $.connectorName;
        this.connectorProperties = $.connectorProperties;
        this.connectorType = $.connectorType;
        this.description = $.description;
        this.displayName = $.displayName;
        this.hubName = $.hubName;
        this.isInternal = $.isInternal;
        this.resourceGroupName = $.resourceGroupName;
    }

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

    public static final class Builder {
        private ConnectorArgs $;

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

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

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

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

        /**
         * @param connectorProperties The connector properties.
         * 
         * @return builder
         * 
         */
        public Builder connectorProperties(Output> connectorProperties) {
            $.connectorProperties = connectorProperties;
            return this;
        }

        /**
         * @param connectorProperties The connector properties.
         * 
         * @return builder
         * 
         */
        public Builder connectorProperties(Map connectorProperties) {
            return connectorProperties(Output.of(connectorProperties));
        }

        /**
         * @param connectorType Type of connector.
         * 
         * @return builder
         * 
         */
        public Builder connectorType(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 Description of the connector.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

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

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

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

        /**
         * @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 isInternal If this is an internal connector.
         * 
         * @return builder
         * 
         */
        public Builder isInternal(@Nullable Output isInternal) {
            $.isInternal = isInternal;
            return this;
        }

        /**
         * @param isInternal If this is an internal connector.
         * 
         * @return builder
         * 
         */
        public Builder isInternal(Boolean isInternal) {
            return isInternal(Output.of(isInternal));
        }

        /**
         * @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 ConnectorArgs build() {
            if ($.connectorProperties == null) {
                throw new MissingRequiredPropertyException("ConnectorArgs", "connectorProperties");
            }
            if ($.connectorType == null) {
                throw new MissingRequiredPropertyException("ConnectorArgs", "connectorType");
            }
            if ($.hubName == null) {
                throw new MissingRequiredPropertyException("ConnectorArgs", "hubName");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("ConnectorArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy