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

com.pulumi.azurenative.apimanagement.ApiGatewayArgs 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.apimanagement;

import com.pulumi.azurenative.apimanagement.enums.VirtualNetworkType;
import com.pulumi.azurenative.apimanagement.inputs.ApiManagementGatewaySkuPropertiesArgs;
import com.pulumi.azurenative.apimanagement.inputs.BackendConfigurationArgs;
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.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final ApiGatewayArgs Empty = new ApiGatewayArgs();

    /**
     * Information regarding how the gateway should integrate with backend systems.
     * 
     */
    @Import(name="backend")
    private @Nullable Output backend;

    /**
     * @return Information regarding how the gateway should integrate with backend systems.
     * 
     */
    public Optional> backend() {
        return Optional.ofNullable(this.backend);
    }

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

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

    /**
     * Resource location.
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return Resource location.
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

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

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

    /**
     * @return SKU properties of the API Management gateway.
     * 
     */
    public Output sku() {
        return this.sku;
    }

    /**
     * Resource tags.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return Resource tags.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    /**
     * The type of VPN in which API Management gateway needs to be configured in.
     * 
     */
    @Import(name="virtualNetworkType")
    private @Nullable Output> virtualNetworkType;

    /**
     * @return The type of VPN in which API Management gateway needs to be configured in.
     * 
     */
    public Optional>> virtualNetworkType() {
        return Optional.ofNullable(this.virtualNetworkType);
    }

    private ApiGatewayArgs() {}

    private ApiGatewayArgs(ApiGatewayArgs $) {
        this.backend = $.backend;
        this.gatewayName = $.gatewayName;
        this.location = $.location;
        this.resourceGroupName = $.resourceGroupName;
        this.sku = $.sku;
        this.tags = $.tags;
        this.virtualNetworkType = $.virtualNetworkType;
    }

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

    public static final class Builder {
        private ApiGatewayArgs $;

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

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

        /**
         * @param backend Information regarding how the gateway should integrate with backend systems.
         * 
         * @return builder
         * 
         */
        public Builder backend(@Nullable Output backend) {
            $.backend = backend;
            return this;
        }

        /**
         * @param backend Information regarding how the gateway should integrate with backend systems.
         * 
         * @return builder
         * 
         */
        public Builder backend(BackendConfigurationArgs backend) {
            return backend(Output.of(backend));
        }

        /**
         * @param gatewayName The name of the API Management gateway.
         * 
         * @return builder
         * 
         */
        public Builder gatewayName(@Nullable 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 location Resource location.
         * 
         * @return builder
         * 
         */
        public Builder location(@Nullable Output location) {
            $.location = location;
            return this;
        }

        /**
         * @param location Resource location.
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

        /**
         * @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 sku SKU properties of the API Management gateway.
         * 
         * @return builder
         * 
         */
        public Builder sku(Output sku) {
            $.sku = sku;
            return this;
        }

        /**
         * @param sku SKU properties of the API Management gateway.
         * 
         * @return builder
         * 
         */
        public Builder sku(ApiManagementGatewaySkuPropertiesArgs sku) {
            return sku(Output.of(sku));
        }

        /**
         * @param tags Resource tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags Resource tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        /**
         * @param virtualNetworkType The type of VPN in which API Management gateway needs to be configured in.
         * 
         * @return builder
         * 
         */
        public Builder virtualNetworkType(@Nullable Output> virtualNetworkType) {
            $.virtualNetworkType = virtualNetworkType;
            return this;
        }

        /**
         * @param virtualNetworkType The type of VPN in which API Management gateway needs to be configured in.
         * 
         * @return builder
         * 
         */
        public Builder virtualNetworkType(Either virtualNetworkType) {
            return virtualNetworkType(Output.of(virtualNetworkType));
        }

        /**
         * @param virtualNetworkType The type of VPN in which API Management gateway needs to be configured in.
         * 
         * @return builder
         * 
         */
        public Builder virtualNetworkType(String virtualNetworkType) {
            return virtualNetworkType(Either.ofLeft(virtualNetworkType));
        }

        /**
         * @param virtualNetworkType The type of VPN in which API Management gateway needs to be configured in.
         * 
         * @return builder
         * 
         */
        public Builder virtualNetworkType(VirtualNetworkType virtualNetworkType) {
            return virtualNetworkType(Either.ofRight(virtualNetworkType));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy