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

com.pulumi.azurenative.iotoperations.inputs.BrokerAuthenticatorMethodCustomArgs Maven / Gradle / Ivy

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

import com.pulumi.azurenative.iotoperations.inputs.BrokerAuthenticatorCustomAuthArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Custom method for BrokerAuthentication
 * 
 */
public final class BrokerAuthenticatorMethodCustomArgs extends com.pulumi.resources.ResourceArgs {

    public static final BrokerAuthenticatorMethodCustomArgs Empty = new BrokerAuthenticatorMethodCustomArgs();

    /**
     * Optional authentication needed for authenticating with the custom authentication server.
     * 
     */
    @Import(name="auth")
    private @Nullable Output auth;

    /**
     * @return Optional authentication needed for authenticating with the custom authentication server.
     * 
     */
    public Optional> auth() {
        return Optional.ofNullable(this.auth);
    }

    /**
     * Optional CA certificate for validating the custom authentication server's certificate.
     * 
     */
    @Import(name="caCertConfigMap")
    private @Nullable Output caCertConfigMap;

    /**
     * @return Optional CA certificate for validating the custom authentication server's certificate.
     * 
     */
    public Optional> caCertConfigMap() {
        return Optional.ofNullable(this.caCertConfigMap);
    }

    /**
     * Endpoint of the custom authentication server. Must be an HTTPS endpoint.
     * 
     */
    @Import(name="endpoint", required=true)
    private Output endpoint;

    /**
     * @return Endpoint of the custom authentication server. Must be an HTTPS endpoint.
     * 
     */
    public Output endpoint() {
        return this.endpoint;
    }

    /**
     * Additional HTTP headers to pass to the custom authentication server.
     * 
     */
    @Import(name="headers")
    private @Nullable Output> headers;

    /**
     * @return Additional HTTP headers to pass to the custom authentication server.
     * 
     */
    public Optional>> headers() {
        return Optional.ofNullable(this.headers);
    }

    private BrokerAuthenticatorMethodCustomArgs() {}

    private BrokerAuthenticatorMethodCustomArgs(BrokerAuthenticatorMethodCustomArgs $) {
        this.auth = $.auth;
        this.caCertConfigMap = $.caCertConfigMap;
        this.endpoint = $.endpoint;
        this.headers = $.headers;
    }

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

    public static final class Builder {
        private BrokerAuthenticatorMethodCustomArgs $;

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

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

        /**
         * @param auth Optional authentication needed for authenticating with the custom authentication server.
         * 
         * @return builder
         * 
         */
        public Builder auth(@Nullable Output auth) {
            $.auth = auth;
            return this;
        }

        /**
         * @param auth Optional authentication needed for authenticating with the custom authentication server.
         * 
         * @return builder
         * 
         */
        public Builder auth(BrokerAuthenticatorCustomAuthArgs auth) {
            return auth(Output.of(auth));
        }

        /**
         * @param caCertConfigMap Optional CA certificate for validating the custom authentication server's certificate.
         * 
         * @return builder
         * 
         */
        public Builder caCertConfigMap(@Nullable Output caCertConfigMap) {
            $.caCertConfigMap = caCertConfigMap;
            return this;
        }

        /**
         * @param caCertConfigMap Optional CA certificate for validating the custom authentication server's certificate.
         * 
         * @return builder
         * 
         */
        public Builder caCertConfigMap(String caCertConfigMap) {
            return caCertConfigMap(Output.of(caCertConfigMap));
        }

        /**
         * @param endpoint Endpoint of the custom authentication server. Must be an HTTPS endpoint.
         * 
         * @return builder
         * 
         */
        public Builder endpoint(Output endpoint) {
            $.endpoint = endpoint;
            return this;
        }

        /**
         * @param endpoint Endpoint of the custom authentication server. Must be an HTTPS endpoint.
         * 
         * @return builder
         * 
         */
        public Builder endpoint(String endpoint) {
            return endpoint(Output.of(endpoint));
        }

        /**
         * @param headers Additional HTTP headers to pass to the custom authentication server.
         * 
         * @return builder
         * 
         */
        public Builder headers(@Nullable Output> headers) {
            $.headers = headers;
            return this;
        }

        /**
         * @param headers Additional HTTP headers to pass to the custom authentication server.
         * 
         * @return builder
         * 
         */
        public Builder headers(Map headers) {
            return headers(Output.of(headers));
        }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy