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

com.pulumi.azurenative.iotoperationsmq.inputs.LocalBrokerConnectionSpecArgs Maven / Gradle / Ivy

There is a newer version: 2.89.2
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.iotoperationsmq.inputs;

import com.pulumi.azurenative.iotoperationsmq.inputs.LocalBrokerAuthenticationMethodsArgs;
import com.pulumi.azurenative.iotoperationsmq.inputs.LocalBrokerConnectionTlsArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.core.internal.Codegen;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Mqtt Local Broker ConnectionSpec details
 * 
 */
public final class LocalBrokerConnectionSpecArgs extends com.pulumi.resources.ResourceArgs {

    public static final LocalBrokerConnectionSpecArgs Empty = new LocalBrokerConnectionSpecArgs();

    /**
     * The authentication methods for LocalBroker connection. NOTE - Enum only one method at a time is supported.
     * 
     */
    @Import(name="authentication")
    private @Nullable Output authentication;

    /**
     * @return The authentication methods for LocalBroker connection. NOTE - Enum only one method at a time is supported.
     * 
     */
    public Optional> authentication() {
        return Optional.ofNullable(this.authentication);
    }

    /**
     * The endpoint of local broker to connect to.
     * 
     */
    @Import(name="endpoint")
    private @Nullable Output endpoint;

    /**
     * @return The endpoint of local broker to connect to.
     * 
     */
    public Optional> endpoint() {
        return Optional.ofNullable(this.endpoint);
    }

    /**
     * TLS details for Local broker Connection.
     * 
     */
    @Import(name="tls")
    private @Nullable Output tls;

    /**
     * @return TLS details for Local broker Connection.
     * 
     */
    public Optional> tls() {
        return Optional.ofNullable(this.tls);
    }

    private LocalBrokerConnectionSpecArgs() {}

    private LocalBrokerConnectionSpecArgs(LocalBrokerConnectionSpecArgs $) {
        this.authentication = $.authentication;
        this.endpoint = $.endpoint;
        this.tls = $.tls;
    }

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

    public static final class Builder {
        private LocalBrokerConnectionSpecArgs $;

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

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

        /**
         * @param authentication The authentication methods for LocalBroker connection. NOTE - Enum only one method at a time is supported.
         * 
         * @return builder
         * 
         */
        public Builder authentication(@Nullable Output authentication) {
            $.authentication = authentication;
            return this;
        }

        /**
         * @param authentication The authentication methods for LocalBroker connection. NOTE - Enum only one method at a time is supported.
         * 
         * @return builder
         * 
         */
        public Builder authentication(LocalBrokerAuthenticationMethodsArgs authentication) {
            return authentication(Output.of(authentication));
        }

        /**
         * @param endpoint The endpoint of local broker to connect to.
         * 
         * @return builder
         * 
         */
        public Builder endpoint(@Nullable Output endpoint) {
            $.endpoint = endpoint;
            return this;
        }

        /**
         * @param endpoint The endpoint of local broker to connect to.
         * 
         * @return builder
         * 
         */
        public Builder endpoint(String endpoint) {
            return endpoint(Output.of(endpoint));
        }

        /**
         * @param tls TLS details for Local broker Connection.
         * 
         * @return builder
         * 
         */
        public Builder tls(@Nullable Output tls) {
            $.tls = tls;
            return this;
        }

        /**
         * @param tls TLS details for Local broker Connection.
         * 
         * @return builder
         * 
         */
        public Builder tls(LocalBrokerConnectionTlsArgs tls) {
            return tls(Output.of(tls));
        }

        public LocalBrokerConnectionSpecArgs build() {
            $.endpoint = Codegen.stringProp("endpoint").output().arg($.endpoint).def("aio-mq-dmqtt-frontend:1883").getNullable();
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy