Class CfnCertificateAuthority.SubjectProperty.Builder
java.lang.Object
software.amazon.awscdk.services.acmpca.CfnCertificateAuthority.SubjectProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCertificateAuthority.SubjectProperty>
- Enclosing interface:
- CfnCertificateAuthority.SubjectProperty
@Stability(Stable)
public static final class CfnCertificateAuthority.SubjectProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCertificateAuthority.SubjectProperty>
A builder for
CfnCertificateAuthority.SubjectProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.commonName(String commonName) Sets the value ofCfnCertificateAuthority.SubjectProperty.getCommonName()Sets the value ofCfnCertificateAuthority.SubjectProperty.getCountry()customAttributes(List<? extends Object> customAttributes) Sets the value ofCfnCertificateAuthority.SubjectProperty.getCustomAttributes()customAttributes(IResolvable customAttributes) Sets the value ofCfnCertificateAuthority.SubjectProperty.getCustomAttributes()distinguishedNameQualifier(String distinguishedNameQualifier) Sets the value ofCfnCertificateAuthority.SubjectProperty.getDistinguishedNameQualifier()generationQualifier(String generationQualifier) Sets the value ofCfnCertificateAuthority.SubjectProperty.getGenerationQualifier()Sets the value ofCfnCertificateAuthority.SubjectProperty.getGivenName()Sets the value ofCfnCertificateAuthority.SubjectProperty.getInitials()Sets the value ofCfnCertificateAuthority.SubjectProperty.getLocality()organization(String organization) Sets the value ofCfnCertificateAuthority.SubjectProperty.getOrganization()organizationalUnit(String organizationalUnit) Sets the value ofCfnCertificateAuthority.SubjectProperty.getOrganizationalUnit()Sets the value ofCfnCertificateAuthority.SubjectProperty.getPseudonym()serialNumber(String serialNumber) Sets the value ofCfnCertificateAuthority.SubjectProperty.getSerialNumber()Sets the value ofCfnCertificateAuthority.SubjectProperty.getState()Sets the value ofCfnCertificateAuthority.SubjectProperty.getSurname()Sets the value ofCfnCertificateAuthority.SubjectProperty.getTitle()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
commonName
@Stability(Stable) public CfnCertificateAuthority.SubjectProperty.Builder commonName(String commonName) Sets the value ofCfnCertificateAuthority.SubjectProperty.getCommonName()- Parameters:
commonName- Fully qualified domain name (FQDN) associated with the certificate subject.- Returns:
this
-
country
Sets the value ofCfnCertificateAuthority.SubjectProperty.getCountry()- Parameters:
country- Two-digit code that specifies the country in which the certificate subject located.- Returns:
this
-
customAttributes
@Stability(Stable) public CfnCertificateAuthority.SubjectProperty.Builder customAttributes(IResolvable customAttributes) Sets the value ofCfnCertificateAuthority.SubjectProperty.getCustomAttributes()- Parameters:
customAttributes- Contains a sequence of one or more X.500 relative distinguished names (RDNs), each of which consists of an object identifier (OID) and a value. For more information, see NIST’s definition of Object Identifier (OID) .Custom attributes cannot be used in combination with standard attributes.
- Returns:
this
-
customAttributes
@Stability(Stable) public CfnCertificateAuthority.SubjectProperty.Builder customAttributes(List<? extends Object> customAttributes) Sets the value ofCfnCertificateAuthority.SubjectProperty.getCustomAttributes()- Parameters:
customAttributes- Contains a sequence of one or more X.500 relative distinguished names (RDNs), each of which consists of an object identifier (OID) and a value. For more information, see NIST’s definition of Object Identifier (OID) .Custom attributes cannot be used in combination with standard attributes.
- Returns:
this
-
distinguishedNameQualifier
@Stability(Stable) public CfnCertificateAuthority.SubjectProperty.Builder distinguishedNameQualifier(String distinguishedNameQualifier) Sets the value ofCfnCertificateAuthority.SubjectProperty.getDistinguishedNameQualifier()- Parameters:
distinguishedNameQualifier- Disambiguating information for the certificate subject.- Returns:
this
-
generationQualifier
@Stability(Stable) public CfnCertificateAuthority.SubjectProperty.Builder generationQualifier(String generationQualifier) Sets the value ofCfnCertificateAuthority.SubjectProperty.getGenerationQualifier()- Parameters:
generationQualifier- Typically a qualifier appended to the name of an individual. Examples include Jr. for junior, Sr. for senior, and III for third.- Returns:
this
-
givenName
@Stability(Stable) public CfnCertificateAuthority.SubjectProperty.Builder givenName(String givenName) Sets the value ofCfnCertificateAuthority.SubjectProperty.getGivenName()- Parameters:
givenName- First name.- Returns:
this
-
initials
Sets the value ofCfnCertificateAuthority.SubjectProperty.getInitials()- Parameters:
initials- Concatenation that typically contains the first letter of the GivenName, the first letter of the middle name if one exists, and the first letter of the SurName.- Returns:
this
-
locality
Sets the value ofCfnCertificateAuthority.SubjectProperty.getLocality()- Parameters:
locality- The locality (such as a city or town) in which the certificate subject is located.- Returns:
this
-
organization
@Stability(Stable) public CfnCertificateAuthority.SubjectProperty.Builder organization(String organization) Sets the value ofCfnCertificateAuthority.SubjectProperty.getOrganization()- Parameters:
organization- Legal name of the organization with which the certificate subject is affiliated.- Returns:
this
-
organizationalUnit
@Stability(Stable) public CfnCertificateAuthority.SubjectProperty.Builder organizationalUnit(String organizationalUnit) Sets the value ofCfnCertificateAuthority.SubjectProperty.getOrganizationalUnit()- Parameters:
organizationalUnit- A subdivision or unit of the organization (such as sales or finance) with which the certificate subject is affiliated.- Returns:
this
-
pseudonym
@Stability(Stable) public CfnCertificateAuthority.SubjectProperty.Builder pseudonym(String pseudonym) Sets the value ofCfnCertificateAuthority.SubjectProperty.getPseudonym()- Parameters:
pseudonym- Typically a shortened version of a longer GivenName. For example, Jonathan is often shortened to John. Elizabeth is often shortened to Beth, Liz, or Eliza.- Returns:
this
-
serialNumber
@Stability(Stable) public CfnCertificateAuthority.SubjectProperty.Builder serialNumber(String serialNumber) Sets the value ofCfnCertificateAuthority.SubjectProperty.getSerialNumber()- Parameters:
serialNumber- The certificate serial number.- Returns:
this
-
state
Sets the value ofCfnCertificateAuthority.SubjectProperty.getState()- Parameters:
state- State in which the subject of the certificate is located.- Returns:
this
-
surname
Sets the value ofCfnCertificateAuthority.SubjectProperty.getSurname()- Parameters:
surname- Family name.- Returns:
this
-
title
Sets the value ofCfnCertificateAuthority.SubjectProperty.getTitle()- Parameters:
title- A personal title such as Mr.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnCertificateAuthority.SubjectProperty>- Returns:
- a new instance of
CfnCertificateAuthority.SubjectProperty - Throws:
NullPointerException- if any required attribute was not provided
-