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

com.pulumi.azurenative.eventgrid.outputs.ClientCertificateSubjectDistinguishedNameResponse Maven / Gradle / Ivy

There is a newer version: 2.72.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.outputs;

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

@CustomType
public final class ClientCertificateSubjectDistinguishedNameResponse {
    /**
     * @return The common name field in the subject name. The allowed limit is 64 characters and it should be specified.
     * 
     */
    private @Nullable String commonName;
    /**
     * @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'.
     * 
     */
    private @Nullable String countryCode;
    /**
     * @return The organization field in the subject name. If present, the allowed limit is 64 characters.
     * 
     */
    private @Nullable String organization;
    /**
     * @return The organization unit field in the subject name. If present, the allowed limit is 32 characters.
     * 
     */
    private @Nullable String organizationUnit;

    private ClientCertificateSubjectDistinguishedNameResponse() {}
    /**
     * @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);
    }
    /**
     * @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);
    }
    /**
     * @return The organization field in the subject name. If present, the allowed limit is 64 characters.
     * 
     */
    public Optional organization() {
        return Optional.ofNullable(this.organization);
    }
    /**
     * @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);
    }

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

    public static Builder builder(ClientCertificateSubjectDistinguishedNameResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String commonName;
        private @Nullable String countryCode;
        private @Nullable String organization;
        private @Nullable String organizationUnit;
        public Builder() {}
        public Builder(ClientCertificateSubjectDistinguishedNameResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.commonName = defaults.commonName;
    	      this.countryCode = defaults.countryCode;
    	      this.organization = defaults.organization;
    	      this.organizationUnit = defaults.organizationUnit;
        }

        @CustomType.Setter
        public Builder commonName(@Nullable String commonName) {

            this.commonName = commonName;
            return this;
        }
        @CustomType.Setter
        public Builder countryCode(@Nullable String countryCode) {

            this.countryCode = countryCode;
            return this;
        }
        @CustomType.Setter
        public Builder organization(@Nullable String organization) {

            this.organization = organization;
            return this;
        }
        @CustomType.Setter
        public Builder organizationUnit(@Nullable String organizationUnit) {

            this.organizationUnit = organizationUnit;
            return this;
        }
        public ClientCertificateSubjectDistinguishedNameResponse build() {
            final var _resultValue = new ClientCertificateSubjectDistinguishedNameResponse();
            _resultValue.commonName = commonName;
            _resultValue.countryCode = countryCode;
            _resultValue.organization = organization;
            _resultValue.organizationUnit = organizationUnit;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy