Class CfnCertificate.SubjectProperty.Builder
java.lang.Object
software.amazon.awscdk.services.acmpca.CfnCertificate.SubjectProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCertificate.SubjectProperty>
- Enclosing interface:
CfnCertificate.SubjectProperty
@Stability(Stable)
public static final class CfnCertificate.SubjectProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCertificate.SubjectProperty>
A builder for
CfnCertificate.SubjectProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.commonName(String commonName) Sets the value ofCfnCertificate.SubjectProperty.getCommonName()Sets the value ofCfnCertificate.SubjectProperty.getCountry()customAttributes(List<? extends Object> customAttributes) Sets the value ofCfnCertificate.SubjectProperty.getCustomAttributes()customAttributes(IResolvable customAttributes) Sets the value ofCfnCertificate.SubjectProperty.getCustomAttributes()distinguishedNameQualifier(String distinguishedNameQualifier) Sets the value ofCfnCertificate.SubjectProperty.getDistinguishedNameQualifier()generationQualifier(String generationQualifier) Sets the value ofCfnCertificate.SubjectProperty.getGenerationQualifier()Sets the value ofCfnCertificate.SubjectProperty.getGivenName()Sets the value ofCfnCertificate.SubjectProperty.getInitials()Sets the value ofCfnCertificate.SubjectProperty.getLocality()organization(String organization) Sets the value ofCfnCertificate.SubjectProperty.getOrganization()organizationalUnit(String organizationalUnit) Sets the value ofCfnCertificate.SubjectProperty.getOrganizationalUnit()Sets the value ofCfnCertificate.SubjectProperty.getPseudonym()serialNumber(String serialNumber) Sets the value ofCfnCertificate.SubjectProperty.getSerialNumber()Sets the value ofCfnCertificate.SubjectProperty.getState()Sets the value ofCfnCertificate.SubjectProperty.getSurname()Sets the value ofCfnCertificate.SubjectProperty.getTitle()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
commonName
Sets the value ofCfnCertificate.SubjectProperty.getCommonName()- Parameters:
commonName- For CA and end-entity certificates in a private PKI, the common name (CN) can be any string within the length limit. Note: In publicly trusted certificates, the common name must be a fully qualified domain name (FQDN) associated with the certificate subject.- Returns:
this
-
country
Sets the value ofCfnCertificate.SubjectProperty.getCountry()- Parameters:
country- Two-digit code that specifies the country in which the certificate subject located.- Returns:
this
-
customAttributes
@Stability(Stable) public CfnCertificate.SubjectProperty.Builder customAttributes(IResolvable customAttributes) Sets the value ofCfnCertificate.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 CfnCertificate.SubjectProperty.Builder customAttributes(List<? extends Object> customAttributes) Sets the value ofCfnCertificate.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 CfnCertificate.SubjectProperty.Builder distinguishedNameQualifier(String distinguishedNameQualifier) Sets the value ofCfnCertificate.SubjectProperty.getDistinguishedNameQualifier()- Parameters:
distinguishedNameQualifier- Disambiguating information for the certificate subject.- Returns:
this
-
generationQualifier
@Stability(Stable) public CfnCertificate.SubjectProperty.Builder generationQualifier(String generationQualifier) Sets the value ofCfnCertificate.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
Sets the value ofCfnCertificate.SubjectProperty.getGivenName()- Parameters:
givenName- First name.- Returns:
this
-
initials
Sets the value ofCfnCertificate.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 ofCfnCertificate.SubjectProperty.getLocality()- Parameters:
locality- The locality (such as a city or town) in which the certificate subject is located.- Returns:
this
-
organization
Sets the value ofCfnCertificate.SubjectProperty.getOrganization()- Parameters:
organization- Legal name of the organization with which the certificate subject is affiliated.- Returns:
this
-
organizationalUnit
@Stability(Stable) public CfnCertificate.SubjectProperty.Builder organizationalUnit(String organizationalUnit) Sets the value ofCfnCertificate.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
Sets the value ofCfnCertificate.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
Sets the value ofCfnCertificate.SubjectProperty.getSerialNumber()- Parameters:
serialNumber- The certificate serial number.- Returns:
this
-
state
Sets the value ofCfnCertificate.SubjectProperty.getState()- Parameters:
state- State in which the subject of the certificate is located.- Returns:
this
-
surname
Sets the value ofCfnCertificate.SubjectProperty.getSurname()- Parameters:
surname- Family name. In the US and the UK, for example, the surname of an individual is ordered last. In Asian cultures the surname is typically ordered first.- Returns:
this
-
title
Sets the value ofCfnCertificate.SubjectProperty.getTitle()- Parameters:
title- A title such as Mr. or Ms., which is pre-pended to the name to refer formally to the certificate subject.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnCertificate.SubjectProperty>- Returns:
- a new instance of
CfnCertificate.SubjectProperty - Throws:
NullPointerException- if any required attribute was not provided
-