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

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

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;


/**
 * BrokerAuthenticatorMethodX509Attributes properties.
 * 
 */
public final class BrokerAuthenticatorMethodX509AttributesArgs extends com.pulumi.resources.ResourceArgs {

    public static final BrokerAuthenticatorMethodX509AttributesArgs Empty = new BrokerAuthenticatorMethodX509AttributesArgs();

    /**
     * Attributes object.
     * 
     */
    @Import(name="attributes", required=true)
    private Output> attributes;

    /**
     * @return Attributes object.
     * 
     */
    public Output> attributes() {
        return this.attributes;
    }

    /**
     * Subject of the X509 attribute.
     * 
     */
    @Import(name="subject", required=true)
    private Output subject;

    /**
     * @return Subject of the X509 attribute.
     * 
     */
    public Output subject() {
        return this.subject;
    }

    private BrokerAuthenticatorMethodX509AttributesArgs() {}

    private BrokerAuthenticatorMethodX509AttributesArgs(BrokerAuthenticatorMethodX509AttributesArgs $) {
        this.attributes = $.attributes;
        this.subject = $.subject;
    }

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

    public static final class Builder {
        private BrokerAuthenticatorMethodX509AttributesArgs $;

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

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

        /**
         * @param attributes Attributes object.
         * 
         * @return builder
         * 
         */
        public Builder attributes(Output> attributes) {
            $.attributes = attributes;
            return this;
        }

        /**
         * @param attributes Attributes object.
         * 
         * @return builder
         * 
         */
        public Builder attributes(Map attributes) {
            return attributes(Output.of(attributes));
        }

        /**
         * @param subject Subject of the X509 attribute.
         * 
         * @return builder
         * 
         */
        public Builder subject(Output subject) {
            $.subject = subject;
            return this;
        }

        /**
         * @param subject Subject of the X509 attribute.
         * 
         * @return builder
         * 
         */
        public Builder subject(String subject) {
            return subject(Output.of(subject));
        }

        public BrokerAuthenticatorMethodX509AttributesArgs build() {
            if ($.attributes == null) {
                throw new MissingRequiredPropertyException("BrokerAuthenticatorMethodX509AttributesArgs", "attributes");
            }
            if ($.subject == null) {
                throw new MissingRequiredPropertyException("BrokerAuthenticatorMethodX509AttributesArgs", "subject");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy