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

com.pulumi.azurenative.apimanagement.BackendArgs 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.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 BackendArgs extends com.pulumi.resources.ResourceArgs {

    public static final BackendArgs Empty = new BackendArgs();

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

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

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

    private BackendArgs() {}

    private BackendArgs(BackendArgs $) {
        this.backendId = $.backendId;
        this.credentials = $.credentials;
        this.description = $.description;
        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.url = $.url;
    }

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

    public static final class Builder {
        private BackendArgs $;

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

        public Builder(BackendArgs defaults) {
            $ = new BackendArgs(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 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));
        }

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

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy