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

com.pulumi.azure.appservice.WebAppHybridConnectionArgs Maven / Gradle / Ivy

// *** 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.azure.appservice;

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


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

    public static final WebAppHybridConnectionArgs Empty = new WebAppHybridConnectionArgs();

    /**
     * The hostname of the endpoint.
     * 
     */
    @Import(name="hostname", required=true)
    private Output hostname;

    /**
     * @return The hostname of the endpoint.
     * 
     */
    public Output hostname() {
        return this.hostname;
    }

    /**
     * The port to use for the endpoint.
     * 
     */
    @Import(name="port", required=true)
    private Output port;

    /**
     * @return The port to use for the endpoint.
     * 
     */
    public Output port() {
        return this.port;
    }

    /**
     * The ID of the Relay Hybrid Connection to use. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="relayId", required=true)
    private Output relayId;

    /**
     * @return The ID of the Relay Hybrid Connection to use. Changing this forces a new resource to be created.
     * 
     */
    public Output relayId() {
        return this.relayId;
    }

    /**
     * The name of the Relay key with `Send` permission to use. Defaults to `RootManageSharedAccessKey`
     * 
     */
    @Import(name="sendKeyName")
    private @Nullable Output sendKeyName;

    /**
     * @return The name of the Relay key with `Send` permission to use. Defaults to `RootManageSharedAccessKey`
     * 
     */
    public Optional> sendKeyName() {
        return Optional.ofNullable(this.sendKeyName);
    }

    /**
     * The ID of the Web App for this Hybrid Connection. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="webAppId", required=true)
    private Output webAppId;

    /**
     * @return The ID of the Web App for this Hybrid Connection. Changing this forces a new resource to be created.
     * 
     */
    public Output webAppId() {
        return this.webAppId;
    }

    private WebAppHybridConnectionArgs() {}

    private WebAppHybridConnectionArgs(WebAppHybridConnectionArgs $) {
        this.hostname = $.hostname;
        this.port = $.port;
        this.relayId = $.relayId;
        this.sendKeyName = $.sendKeyName;
        this.webAppId = $.webAppId;
    }

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

    public static final class Builder {
        private WebAppHybridConnectionArgs $;

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

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

        /**
         * @param hostname The hostname of the endpoint.
         * 
         * @return builder
         * 
         */
        public Builder hostname(Output hostname) {
            $.hostname = hostname;
            return this;
        }

        /**
         * @param hostname The hostname of the endpoint.
         * 
         * @return builder
         * 
         */
        public Builder hostname(String hostname) {
            return hostname(Output.of(hostname));
        }

        /**
         * @param port The port to use for the endpoint.
         * 
         * @return builder
         * 
         */
        public Builder port(Output port) {
            $.port = port;
            return this;
        }

        /**
         * @param port The port to use for the endpoint.
         * 
         * @return builder
         * 
         */
        public Builder port(Integer port) {
            return port(Output.of(port));
        }

        /**
         * @param relayId The ID of the Relay Hybrid Connection to use. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder relayId(Output relayId) {
            $.relayId = relayId;
            return this;
        }

        /**
         * @param relayId The ID of the Relay Hybrid Connection to use. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder relayId(String relayId) {
            return relayId(Output.of(relayId));
        }

        /**
         * @param sendKeyName The name of the Relay key with `Send` permission to use. Defaults to `RootManageSharedAccessKey`
         * 
         * @return builder
         * 
         */
        public Builder sendKeyName(@Nullable Output sendKeyName) {
            $.sendKeyName = sendKeyName;
            return this;
        }

        /**
         * @param sendKeyName The name of the Relay key with `Send` permission to use. Defaults to `RootManageSharedAccessKey`
         * 
         * @return builder
         * 
         */
        public Builder sendKeyName(String sendKeyName) {
            return sendKeyName(Output.of(sendKeyName));
        }

        /**
         * @param webAppId The ID of the Web App for this Hybrid Connection. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder webAppId(Output webAppId) {
            $.webAppId = webAppId;
            return this;
        }

        /**
         * @param webAppId The ID of the Web App for this Hybrid Connection. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder webAppId(String webAppId) {
            return webAppId(Output.of(webAppId));
        }

        public WebAppHybridConnectionArgs build() {
            if ($.hostname == null) {
                throw new MissingRequiredPropertyException("WebAppHybridConnectionArgs", "hostname");
            }
            if ($.port == null) {
                throw new MissingRequiredPropertyException("WebAppHybridConnectionArgs", "port");
            }
            if ($.relayId == null) {
                throw new MissingRequiredPropertyException("WebAppHybridConnectionArgs", "relayId");
            }
            if ($.webAppId == null) {
                throw new MissingRequiredPropertyException("WebAppHybridConnectionArgs", "webAppId");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy