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

com.pulumi.azurenative.iotoperations.inputs.BrokerAuthenticatorMethodsArgs 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.iotoperations.inputs;

import com.pulumi.azurenative.iotoperations.enums.BrokerAuthenticationMethod;
import com.pulumi.azurenative.iotoperations.inputs.BrokerAuthenticatorMethodCustomArgs;
import com.pulumi.azurenative.iotoperations.inputs.BrokerAuthenticatorMethodSatArgs;
import com.pulumi.azurenative.iotoperations.inputs.BrokerAuthenticatorMethodX509Args;
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;


/**
 * Set of broker authentication policies. Only one method is supported for each entry.
 * 
 */
public final class BrokerAuthenticatorMethodsArgs extends com.pulumi.resources.ResourceArgs {

    public static final BrokerAuthenticatorMethodsArgs Empty = new BrokerAuthenticatorMethodsArgs();

    /**
     * Custom authentication configuration.
     * 
     */
    @Import(name="custom")
    private @Nullable Output custom;

    /**
     * @return Custom authentication configuration.
     * 
     */
    public Optional> custom() {
        return Optional.ofNullable(this.custom);
    }

    /**
     * Custom authentication configuration.
     * 
     */
    @Import(name="method", required=true)
    private Output> method;

    /**
     * @return Custom authentication configuration.
     * 
     */
    public Output> method() {
        return this.method;
    }

    /**
     * ServiceAccountToken authentication configuration.
     * 
     */
    @Import(name="serviceAccountToken")
    private @Nullable Output serviceAccountToken;

    /**
     * @return ServiceAccountToken authentication configuration.
     * 
     */
    public Optional> serviceAccountToken() {
        return Optional.ofNullable(this.serviceAccountToken);
    }

    /**
     * X.509 authentication configuration.
     * 
     */
    @Import(name="x509Credentials")
    private @Nullable Output x509Credentials;

    /**
     * @return X.509 authentication configuration.
     * 
     */
    public Optional> x509Credentials() {
        return Optional.ofNullable(this.x509Credentials);
    }

    private BrokerAuthenticatorMethodsArgs() {}

    private BrokerAuthenticatorMethodsArgs(BrokerAuthenticatorMethodsArgs $) {
        this.custom = $.custom;
        this.method = $.method;
        this.serviceAccountToken = $.serviceAccountToken;
        this.x509Credentials = $.x509Credentials;
    }

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

    public static final class Builder {
        private BrokerAuthenticatorMethodsArgs $;

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

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

        /**
         * @param custom Custom authentication configuration.
         * 
         * @return builder
         * 
         */
        public Builder custom(@Nullable Output custom) {
            $.custom = custom;
            return this;
        }

        /**
         * @param custom Custom authentication configuration.
         * 
         * @return builder
         * 
         */
        public Builder custom(BrokerAuthenticatorMethodCustomArgs custom) {
            return custom(Output.of(custom));
        }

        /**
         * @param method Custom authentication configuration.
         * 
         * @return builder
         * 
         */
        public Builder method(Output> method) {
            $.method = method;
            return this;
        }

        /**
         * @param method Custom authentication configuration.
         * 
         * @return builder
         * 
         */
        public Builder method(Either method) {
            return method(Output.of(method));
        }

        /**
         * @param method Custom authentication configuration.
         * 
         * @return builder
         * 
         */
        public Builder method(String method) {
            return method(Either.ofLeft(method));
        }

        /**
         * @param method Custom authentication configuration.
         * 
         * @return builder
         * 
         */
        public Builder method(BrokerAuthenticationMethod method) {
            return method(Either.ofRight(method));
        }

        /**
         * @param serviceAccountToken ServiceAccountToken authentication configuration.
         * 
         * @return builder
         * 
         */
        public Builder serviceAccountToken(@Nullable Output serviceAccountToken) {
            $.serviceAccountToken = serviceAccountToken;
            return this;
        }

        /**
         * @param serviceAccountToken ServiceAccountToken authentication configuration.
         * 
         * @return builder
         * 
         */
        public Builder serviceAccountToken(BrokerAuthenticatorMethodSatArgs serviceAccountToken) {
            return serviceAccountToken(Output.of(serviceAccountToken));
        }

        /**
         * @param x509Credentials X.509 authentication configuration.
         * 
         * @return builder
         * 
         */
        public Builder x509Credentials(@Nullable Output x509Credentials) {
            $.x509Credentials = x509Credentials;
            return this;
        }

        /**
         * @param x509Credentials X.509 authentication configuration.
         * 
         * @return builder
         * 
         */
        public Builder x509Credentials(BrokerAuthenticatorMethodX509Args x509Credentials) {
            return x509Credentials(Output.of(x509Credentials));
        }

        public BrokerAuthenticatorMethodsArgs build() {
            if ($.method == null) {
                throw new MissingRequiredPropertyException("BrokerAuthenticatorMethodsArgs", "method");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy