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

com.pulumi.azurenative.relay.HybridConnectionArgs 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.relay;

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


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

    public static final HybridConnectionArgs Empty = new HybridConnectionArgs();

    /**
     * The hybrid connection name.
     * 
     */
    @Import(name="hybridConnectionName")
    private @Nullable Output hybridConnectionName;

    /**
     * @return The hybrid connection name.
     * 
     */
    public Optional> hybridConnectionName() {
        return Optional.ofNullable(this.hybridConnectionName);
    }

    /**
     * The namespace name
     * 
     */
    @Import(name="namespaceName", required=true)
    private Output namespaceName;

    /**
     * @return The namespace name
     * 
     */
    public Output namespaceName() {
        return this.namespaceName;
    }

    /**
     * Returns true if client authorization is needed for this hybrid connection; otherwise, false.
     * 
     */
    @Import(name="requiresClientAuthorization")
    private @Nullable Output requiresClientAuthorization;

    /**
     * @return Returns true if client authorization is needed for this hybrid connection; otherwise, false.
     * 
     */
    public Optional> requiresClientAuthorization() {
        return Optional.ofNullable(this.requiresClientAuthorization);
    }

    /**
     * Name of the Resource group within the Azure subscription.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return Name of the Resource group within the Azure subscription.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * The usermetadata is a placeholder to store user-defined string data for the hybrid connection endpoint. For example, it can be used to store descriptive data, such as a list of teams and their contact information. Also, user-defined configuration settings can be stored.
     * 
     */
    @Import(name="userMetadata")
    private @Nullable Output userMetadata;

    /**
     * @return The usermetadata is a placeholder to store user-defined string data for the hybrid connection endpoint. For example, it can be used to store descriptive data, such as a list of teams and their contact information. Also, user-defined configuration settings can be stored.
     * 
     */
    public Optional> userMetadata() {
        return Optional.ofNullable(this.userMetadata);
    }

    private HybridConnectionArgs() {}

    private HybridConnectionArgs(HybridConnectionArgs $) {
        this.hybridConnectionName = $.hybridConnectionName;
        this.namespaceName = $.namespaceName;
        this.requiresClientAuthorization = $.requiresClientAuthorization;
        this.resourceGroupName = $.resourceGroupName;
        this.userMetadata = $.userMetadata;
    }

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

    public static final class Builder {
        private HybridConnectionArgs $;

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

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

        /**
         * @param hybridConnectionName The hybrid connection name.
         * 
         * @return builder
         * 
         */
        public Builder hybridConnectionName(@Nullable Output hybridConnectionName) {
            $.hybridConnectionName = hybridConnectionName;
            return this;
        }

        /**
         * @param hybridConnectionName The hybrid connection name.
         * 
         * @return builder
         * 
         */
        public Builder hybridConnectionName(String hybridConnectionName) {
            return hybridConnectionName(Output.of(hybridConnectionName));
        }

        /**
         * @param namespaceName The namespace name
         * 
         * @return builder
         * 
         */
        public Builder namespaceName(Output namespaceName) {
            $.namespaceName = namespaceName;
            return this;
        }

        /**
         * @param namespaceName The namespace name
         * 
         * @return builder
         * 
         */
        public Builder namespaceName(String namespaceName) {
            return namespaceName(Output.of(namespaceName));
        }

        /**
         * @param requiresClientAuthorization Returns true if client authorization is needed for this hybrid connection; otherwise, false.
         * 
         * @return builder
         * 
         */
        public Builder requiresClientAuthorization(@Nullable Output requiresClientAuthorization) {
            $.requiresClientAuthorization = requiresClientAuthorization;
            return this;
        }

        /**
         * @param requiresClientAuthorization Returns true if client authorization is needed for this hybrid connection; otherwise, false.
         * 
         * @return builder
         * 
         */
        public Builder requiresClientAuthorization(Boolean requiresClientAuthorization) {
            return requiresClientAuthorization(Output.of(requiresClientAuthorization));
        }

        /**
         * @param resourceGroupName Name of the Resource group within the Azure subscription.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName Name of the Resource group within the Azure subscription.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param userMetadata The usermetadata is a placeholder to store user-defined string data for the hybrid connection endpoint. For example, it can be used to store descriptive data, such as a list of teams and their contact information. Also, user-defined configuration settings can be stored.
         * 
         * @return builder
         * 
         */
        public Builder userMetadata(@Nullable Output userMetadata) {
            $.userMetadata = userMetadata;
            return this;
        }

        /**
         * @param userMetadata The usermetadata is a placeholder to store user-defined string data for the hybrid connection endpoint. For example, it can be used to store descriptive data, such as a list of teams and their contact information. Also, user-defined configuration settings can be stored.
         * 
         * @return builder
         * 
         */
        public Builder userMetadata(String userMetadata) {
            return userMetadata(Output.of(userMetadata));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy