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

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

import com.pulumi.azurenative.apimanagement.enums.BackendProtocol;
import com.pulumi.azurenative.apimanagement.enums.BackendType;
import com.pulumi.azurenative.apimanagement.inputs.BackendBaseParametersPoolArgs;
import com.pulumi.azurenative.apimanagement.inputs.BackendCircuitBreakerArgs;
import com.pulumi.azurenative.apimanagement.inputs.BackendCredentialsContractArgs;
import com.pulumi.azurenative.apimanagement.inputs.BackendPropertiesArgs;
import com.pulumi.azurenative.apimanagement.inputs.BackendProxyContractArgs;
import com.pulumi.azurenative.apimanagement.inputs.BackendTlsPropertiesArgs;
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 WorkspaceBackendArgs extends com.pulumi.resources.ResourceArgs {

    public static final WorkspaceBackendArgs Empty = new WorkspaceBackendArgs();

    /**
     * Identifier of the Backend entity. Must be unique in the current API Management service instance.
     * 
     */
    @Import(name="backendId")
    private @Nullable Output backendId;

    /**
     * @return Identifier of the Backend entity. Must be unique in the current API Management service instance.
     * 
     */
    public Optional> backendId() {
        return Optional.ofNullable(this.backendId);
    }

    /**
     * Backend Circuit Breaker Configuration
     * 
     */
    @Import(name="circuitBreaker")
    private @Nullable Output circuitBreaker;

    /**
     * @return Backend Circuit Breaker Configuration
     * 
     */
    public Optional> circuitBreaker() {
        return Optional.ofNullable(this.circuitBreaker);
    }

    /**
     * Backend Credentials Contract Properties
     * 
     */
    @Import(name="credentials")
    private @Nullable Output credentials;

    /**
     * @return Backend Credentials Contract Properties
     * 
     */
    public Optional> credentials() {
        return Optional.ofNullable(this.credentials);
    }

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

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

    @Import(name="pool")
    private @Nullable Output pool;

    public Optional> pool() {
        return Optional.ofNullable(this.pool);
    }

    /**
     * Backend Properties contract
     * 
     */
    @Import(name="properties")
    private @Nullable Output properties;

    /**
     * @return Backend Properties contract
     * 
     */
    public Optional> properties() {
        return Optional.ofNullable(this.properties);
    }

    /**
     * Backend communication protocol.
     * 
     */
    @Import(name="protocol", required=true)
    private Output> protocol;

    /**
     * @return Backend communication protocol.
     * 
     */
    public Output> protocol() {
        return this.protocol;
    }

    /**
     * Backend gateway Contract Properties
     * 
     */
    @Import(name="proxy")
    private @Nullable Output proxy;

    /**
     * @return Backend gateway Contract Properties
     * 
     */
    public Optional> proxy() {
        return Optional.ofNullable(this.proxy);
    }

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

    /**
     * Management Uri of the Resource in External System. This URL can be the Arm Resource Id of Logic Apps, Function Apps or API Apps.
     * 
     */
    @Import(name="resourceId")
    private @Nullable Output resourceId;

    /**
     * @return Management Uri of the Resource in External System. This URL can be the Arm Resource Id of Logic Apps, Function Apps or API Apps.
     * 
     */
    public Optional> resourceId() {
        return Optional.ofNullable(this.resourceId);
    }

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

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

    /**
     * Backend Title.
     * 
     */
    @Import(name="title")
    private @Nullable Output title;

    /**
     * @return Backend Title.
     * 
     */
    public Optional> title() {
        return Optional.ofNullable(this.title);
    }

    /**
     * Backend TLS Properties
     * 
     */
    @Import(name="tls")
    private @Nullable Output tls;

    /**
     * @return Backend TLS Properties
     * 
     */
    public Optional> tls() {
        return Optional.ofNullable(this.tls);
    }

    /**
     * Type of the backend. A backend can be either Single or Pool.
     * 
     */
    @Import(name="type")
    private @Nullable Output> type;

    /**
     * @return Type of the backend. A backend can be either Single or Pool.
     * 
     */
    public Optional>> type() {
        return Optional.ofNullable(this.type);
    }

    /**
     * Runtime Url of the Backend.
     * 
     */
    @Import(name="url", required=true)
    private Output url;

    /**
     * @return Runtime Url of the Backend.
     * 
     */
    public Output url() {
        return this.url;
    }

    /**
     * Workspace identifier. Must be unique in the current API Management service instance.
     * 
     */
    @Import(name="workspaceId", required=true)
    private Output workspaceId;

    /**
     * @return Workspace identifier. Must be unique in the current API Management service instance.
     * 
     */
    public Output workspaceId() {
        return this.workspaceId;
    }

    private WorkspaceBackendArgs() {}

    private WorkspaceBackendArgs(WorkspaceBackendArgs $) {
        this.backendId = $.backendId;
        this.circuitBreaker = $.circuitBreaker;
        this.credentials = $.credentials;
        this.description = $.description;
        this.pool = $.pool;
        this.properties = $.properties;
        this.protocol = $.protocol;
        this.proxy = $.proxy;
        this.resourceGroupName = $.resourceGroupName;
        this.resourceId = $.resourceId;
        this.serviceName = $.serviceName;
        this.title = $.title;
        this.tls = $.tls;
        this.type = $.type;
        this.url = $.url;
        this.workspaceId = $.workspaceId;
    }

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

    public static final class Builder {
        private WorkspaceBackendArgs $;

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

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

        /**
         * @param backendId Identifier of the Backend entity. Must be unique in the current API Management service instance.
         * 
         * @return builder
         * 
         */
        public Builder backendId(@Nullable Output backendId) {
            $.backendId = backendId;
            return this;
        }

        /**
         * @param backendId Identifier of the Backend entity. Must be unique in the current API Management service instance.
         * 
         * @return builder
         * 
         */
        public Builder backendId(String backendId) {
            return backendId(Output.of(backendId));
        }

        /**
         * @param circuitBreaker Backend Circuit Breaker Configuration
         * 
         * @return builder
         * 
         */
        public Builder circuitBreaker(@Nullable Output circuitBreaker) {
            $.circuitBreaker = circuitBreaker;
            return this;
        }

        /**
         * @param circuitBreaker Backend Circuit Breaker Configuration
         * 
         * @return builder
         * 
         */
        public Builder circuitBreaker(BackendCircuitBreakerArgs circuitBreaker) {
            return circuitBreaker(Output.of(circuitBreaker));
        }

        /**
         * @param credentials Backend Credentials Contract Properties
         * 
         * @return builder
         * 
         */
        public Builder credentials(@Nullable Output credentials) {
            $.credentials = credentials;
            return this;
        }

        /**
         * @param credentials Backend Credentials Contract Properties
         * 
         * @return builder
         * 
         */
        public Builder credentials(BackendCredentialsContractArgs credentials) {
            return credentials(Output.of(credentials));
        }

        /**
         * @param description Backend Description.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

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

        public Builder pool(@Nullable Output pool) {
            $.pool = pool;
            return this;
        }

        public Builder pool(BackendBaseParametersPoolArgs pool) {
            return pool(Output.of(pool));
        }

        /**
         * @param properties Backend Properties contract
         * 
         * @return builder
         * 
         */
        public Builder properties(@Nullable Output properties) {
            $.properties = properties;
            return this;
        }

        /**
         * @param properties Backend Properties contract
         * 
         * @return builder
         * 
         */
        public Builder properties(BackendPropertiesArgs properties) {
            return properties(Output.of(properties));
        }

        /**
         * @param protocol Backend communication protocol.
         * 
         * @return builder
         * 
         */
        public Builder protocol(Output> protocol) {
            $.protocol = protocol;
            return this;
        }

        /**
         * @param protocol Backend communication protocol.
         * 
         * @return builder
         * 
         */
        public Builder protocol(Either protocol) {
            return protocol(Output.of(protocol));
        }

        /**
         * @param protocol Backend communication protocol.
         * 
         * @return builder
         * 
         */
        public Builder protocol(String protocol) {
            return protocol(Either.ofLeft(protocol));
        }

        /**
         * @param protocol Backend communication protocol.
         * 
         * @return builder
         * 
         */
        public Builder protocol(BackendProtocol protocol) {
            return protocol(Either.ofRight(protocol));
        }

        /**
         * @param proxy Backend gateway Contract Properties
         * 
         * @return builder
         * 
         */
        public Builder proxy(@Nullable Output proxy) {
            $.proxy = proxy;
            return this;
        }

        /**
         * @param proxy Backend gateway Contract Properties
         * 
         * @return builder
         * 
         */
        public Builder proxy(BackendProxyContractArgs proxy) {
            return proxy(Output.of(proxy));
        }

        /**
         * @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 resourceId Management Uri of the Resource in External System. This URL can be the Arm Resource Id of Logic Apps, Function Apps or API Apps.
         * 
         * @return builder
         * 
         */
        public Builder resourceId(@Nullable Output resourceId) {
            $.resourceId = resourceId;
            return this;
        }

        /**
         * @param resourceId Management Uri of the Resource in External System. This URL can be the Arm Resource Id of Logic Apps, Function Apps or API Apps.
         * 
         * @return builder
         * 
         */
        public Builder resourceId(String resourceId) {
            return resourceId(Output.of(resourceId));
        }

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

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

        /**
         * @param title Backend Title.
         * 
         * @return builder
         * 
         */
        public Builder title(@Nullable Output title) {
            $.title = title;
            return this;
        }

        /**
         * @param title Backend Title.
         * 
         * @return builder
         * 
         */
        public Builder title(String title) {
            return title(Output.of(title));
        }

        /**
         * @param tls Backend TLS Properties
         * 
         * @return builder
         * 
         */
        public Builder tls(@Nullable Output tls) {
            $.tls = tls;
            return this;
        }

        /**
         * @param tls Backend TLS Properties
         * 
         * @return builder
         * 
         */
        public Builder tls(BackendTlsPropertiesArgs tls) {
            return tls(Output.of(tls));
        }

        /**
         * @param type Type of the backend. A backend can be either Single or Pool.
         * 
         * @return builder
         * 
         */
        public Builder type(@Nullable Output> type) {
            $.type = type;
            return this;
        }

        /**
         * @param type Type of the backend. A backend can be either Single or Pool.
         * 
         * @return builder
         * 
         */
        public Builder type(Either type) {
            return type(Output.of(type));
        }

        /**
         * @param type Type of the backend. A backend can be either Single or Pool.
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Either.ofLeft(type));
        }

        /**
         * @param type Type of the backend. A backend can be either Single or Pool.
         * 
         * @return builder
         * 
         */
        public Builder type(BackendType type) {
            return type(Either.ofRight(type));
        }

        /**
         * @param url Runtime Url of the Backend.
         * 
         * @return builder
         * 
         */
        public Builder url(Output url) {
            $.url = url;
            return this;
        }

        /**
         * @param url Runtime Url of the Backend.
         * 
         * @return builder
         * 
         */
        public Builder url(String url) {
            return url(Output.of(url));
        }

        /**
         * @param workspaceId Workspace identifier. Must be unique in the current API Management service instance.
         * 
         * @return builder
         * 
         */
        public Builder workspaceId(Output workspaceId) {
            $.workspaceId = workspaceId;
            return this;
        }

        /**
         * @param workspaceId Workspace identifier. Must be unique in the current API Management service instance.
         * 
         * @return builder
         * 
         */
        public Builder workspaceId(String workspaceId) {
            return workspaceId(Output.of(workspaceId));
        }

        public WorkspaceBackendArgs build() {
            if ($.protocol == null) {
                throw new MissingRequiredPropertyException("WorkspaceBackendArgs", "protocol");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("WorkspaceBackendArgs", "resourceGroupName");
            }
            if ($.serviceName == null) {
                throw new MissingRequiredPropertyException("WorkspaceBackendArgs", "serviceName");
            }
            if ($.url == null) {
                throw new MissingRequiredPropertyException("WorkspaceBackendArgs", "url");
            }
            if ($.workspaceId == null) {
                throw new MissingRequiredPropertyException("WorkspaceBackendArgs", "workspaceId");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy