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

com.pulumi.azurenative.apimanagement.ApiGatewayConfigConnectionArgs Maven / Gradle / Ivy

The 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.apimanagement;

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


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

    public static final ApiGatewayConfigConnectionArgs Empty = new ApiGatewayConfigConnectionArgs();

    /**
     * The name of the API Management gateway config connection.
     * 
     */
    @Import(name="configConnectionName")
    private @Nullable Output configConnectionName;

    /**
     * @return The name of the API Management gateway config connection.
     * 
     */
    public Optional> configConnectionName() {
        return Optional.ofNullable(this.configConnectionName);
    }

    /**
     * The name of the API Management gateway.
     * 
     */
    @Import(name="gatewayName", required=true)
    private Output gatewayName;

    /**
     * @return The name of the API Management gateway.
     * 
     */
    public Output gatewayName() {
        return this.gatewayName;
    }

    /**
     * The hostnames of the data-plane gateway to which requests can be sent.
     * 
     */
    @Import(name="hostnames")
    private @Nullable Output> hostnames;

    /**
     * @return The hostnames of the data-plane gateway to which requests can be sent.
     * 
     */
    public Optional>> hostnames() {
        return Optional.ofNullable(this.hostnames);
    }

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

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

    /**
     * The link to the API Management service workspace.
     * 
     */
    @Import(name="sourceId")
    private @Nullable Output sourceId;

    /**
     * @return The link to the API Management service workspace.
     * 
     */
    public Optional> sourceId() {
        return Optional.ofNullable(this.sourceId);
    }

    private ApiGatewayConfigConnectionArgs() {}

    private ApiGatewayConfigConnectionArgs(ApiGatewayConfigConnectionArgs $) {
        this.configConnectionName = $.configConnectionName;
        this.gatewayName = $.gatewayName;
        this.hostnames = $.hostnames;
        this.resourceGroupName = $.resourceGroupName;
        this.sourceId = $.sourceId;
    }

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

    public static final class Builder {
        private ApiGatewayConfigConnectionArgs $;

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

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

        /**
         * @param configConnectionName The name of the API Management gateway config connection.
         * 
         * @return builder
         * 
         */
        public Builder configConnectionName(@Nullable Output configConnectionName) {
            $.configConnectionName = configConnectionName;
            return this;
        }

        /**
         * @param configConnectionName The name of the API Management gateway config connection.
         * 
         * @return builder
         * 
         */
        public Builder configConnectionName(String configConnectionName) {
            return configConnectionName(Output.of(configConnectionName));
        }

        /**
         * @param gatewayName The name of the API Management gateway.
         * 
         * @return builder
         * 
         */
        public Builder gatewayName(Output gatewayName) {
            $.gatewayName = gatewayName;
            return this;
        }

        /**
         * @param gatewayName The name of the API Management gateway.
         * 
         * @return builder
         * 
         */
        public Builder gatewayName(String gatewayName) {
            return gatewayName(Output.of(gatewayName));
        }

        /**
         * @param hostnames The hostnames of the data-plane gateway to which requests can be sent.
         * 
         * @return builder
         * 
         */
        public Builder hostnames(@Nullable Output> hostnames) {
            $.hostnames = hostnames;
            return this;
        }

        /**
         * @param hostnames The hostnames of the data-plane gateway to which requests can be sent.
         * 
         * @return builder
         * 
         */
        public Builder hostnames(List hostnames) {
            return hostnames(Output.of(hostnames));
        }

        /**
         * @param hostnames The hostnames of the data-plane gateway to which requests can be sent.
         * 
         * @return builder
         * 
         */
        public Builder hostnames(String... hostnames) {
            return hostnames(List.of(hostnames));
        }

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

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

        /**
         * @param sourceId The link to the API Management service workspace.
         * 
         * @return builder
         * 
         */
        public Builder sourceId(@Nullable Output sourceId) {
            $.sourceId = sourceId;
            return this;
        }

        /**
         * @param sourceId The link to the API Management service workspace.
         * 
         * @return builder
         * 
         */
        public Builder sourceId(String sourceId) {
            return sourceId(Output.of(sourceId));
        }

        public ApiGatewayConfigConnectionArgs build() {
            if ($.gatewayName == null) {
                throw new MissingRequiredPropertyException("ApiGatewayConfigConnectionArgs", "gatewayName");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("ApiGatewayConfigConnectionArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy