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

com.pulumi.azurenative.eventgrid.inputs.ClientCertificateSubjectDistinguishedNameArgs 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.eventgrid.inputs;

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


/**
 * CA certificate subject distinguished name information used by service to authenticate clients.
 * For more information, see https://docs.microsoft.com/en-us/dotnet/api/system.security.cryptography.x509certificates.x500distinguishedname?view=net-6.0#remarks
 * 
 */
public final class ClientCertificateSubjectDistinguishedNameArgs extends com.pulumi.resources.ResourceArgs {

    public static final ClientCertificateSubjectDistinguishedNameArgs Empty = new ClientCertificateSubjectDistinguishedNameArgs();

    /**
     * The common name field in the subject name. The allowed limit is 64 characters and it should be specified.
     * 
     */
    @Import(name="commonName")
    private @Nullable Output commonName;

    /**
     * @return The common name field in the subject name. The allowed limit is 64 characters and it should be specified.
     * 
     */
    public Optional> commonName() {
        return Optional.ofNullable(this.commonName);
    }

    /**
     * The country code field in the subject name. If present, the country code should be represented by two-letter code defined in ISO 2166-1 (alpha-2). For example: 'US'.
     * 
     */
    @Import(name="countryCode")
    private @Nullable Output countryCode;

    /**
     * @return The country code field in the subject name. If present, the country code should be represented by two-letter code defined in ISO 2166-1 (alpha-2). For example: 'US'.
     * 
     */
    public Optional> countryCode() {
        return Optional.ofNullable(this.countryCode);
    }

    /**
     * The organization field in the subject name. If present, the allowed limit is 64 characters.
     * 
     */
    @Import(name="organization")
    private @Nullable Output organization;

    /**
     * @return The organization field in the subject name. If present, the allowed limit is 64 characters.
     * 
     */
    public Optional> organization() {
        return Optional.ofNullable(this.organization);
    }

    /**
     * The organization unit field in the subject name. If present, the allowed limit is 32 characters.
     * 
     */
    @Import(name="organizationUnit")
    private @Nullable Output organizationUnit;

    /**
     * @return The organization unit field in the subject name. If present, the allowed limit is 32 characters.
     * 
     */
    public Optional> organizationUnit() {
        return Optional.ofNullable(this.organizationUnit);
    }

    private ClientCertificateSubjectDistinguishedNameArgs() {}

    private ClientCertificateSubjectDistinguishedNameArgs(ClientCertificateSubjectDistinguishedNameArgs $) {
        this.commonName = $.commonName;
        this.countryCode = $.countryCode;
        this.organization = $.organization;
        this.organizationUnit = $.organizationUnit;
    }

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

    public static final class Builder {
        private ClientCertificateSubjectDistinguishedNameArgs $;

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

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

        /**
         * @param commonName The common name field in the subject name. The allowed limit is 64 characters and it should be specified.
         * 
         * @return builder
         * 
         */
        public Builder commonName(@Nullable Output commonName) {
            $.commonName = commonName;
            return this;
        }

        /**
         * @param commonName The common name field in the subject name. The allowed limit is 64 characters and it should be specified.
         * 
         * @return builder
         * 
         */
        public Builder commonName(String commonName) {
            return commonName(Output.of(commonName));
        }

        /**
         * @param countryCode The country code field in the subject name. If present, the country code should be represented by two-letter code defined in ISO 2166-1 (alpha-2). For example: 'US'.
         * 
         * @return builder
         * 
         */
        public Builder countryCode(@Nullable Output countryCode) {
            $.countryCode = countryCode;
            return this;
        }

        /**
         * @param countryCode The country code field in the subject name. If present, the country code should be represented by two-letter code defined in ISO 2166-1 (alpha-2). For example: 'US'.
         * 
         * @return builder
         * 
         */
        public Builder countryCode(String countryCode) {
            return countryCode(Output.of(countryCode));
        }

        /**
         * @param organization The organization field in the subject name. If present, the allowed limit is 64 characters.
         * 
         * @return builder
         * 
         */
        public Builder organization(@Nullable Output organization) {
            $.organization = organization;
            return this;
        }

        /**
         * @param organization The organization field in the subject name. If present, the allowed limit is 64 characters.
         * 
         * @return builder
         * 
         */
        public Builder organization(String organization) {
            return organization(Output.of(organization));
        }

        /**
         * @param organizationUnit The organization unit field in the subject name. If present, the allowed limit is 32 characters.
         * 
         * @return builder
         * 
         */
        public Builder organizationUnit(@Nullable Output organizationUnit) {
            $.organizationUnit = organizationUnit;
            return this;
        }

        /**
         * @param organizationUnit The organization unit field in the subject name. If present, the allowed limit is 32 characters.
         * 
         * @return builder
         * 
         */
        public Builder organizationUnit(String organizationUnit) {
            return organizationUnit(Output.of(organizationUnit));
        }

        public ClientCertificateSubjectDistinguishedNameArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy