Class CfnCertificate.GeneralNameProperty.Builder
java.lang.Object
software.amazon.awscdk.services.acmpca.CfnCertificate.GeneralNameProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCertificate.GeneralNameProperty>
- Enclosing interface:
- CfnCertificate.GeneralNameProperty
@Stability(Stable)
public static final class CfnCertificate.GeneralNameProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCertificate.GeneralNameProperty>
A builder for
CfnCertificate.GeneralNameProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.directoryName
(IResolvable directoryName) Sets the value ofCfnCertificate.GeneralNameProperty.getDirectoryName()
directoryName
(CfnCertificate.SubjectProperty directoryName) Sets the value ofCfnCertificate.GeneralNameProperty.getDirectoryName()
Sets the value ofCfnCertificate.GeneralNameProperty.getDnsName()
ediPartyName
(IResolvable ediPartyName) Sets the value ofCfnCertificate.GeneralNameProperty.getEdiPartyName()
ediPartyName
(CfnCertificate.EdiPartyNameProperty ediPartyName) Sets the value ofCfnCertificate.GeneralNameProperty.getEdiPartyName()
Sets the value ofCfnCertificate.GeneralNameProperty.getIpAddress()
otherName
(IResolvable otherName) Sets the value ofCfnCertificate.GeneralNameProperty.getOtherName()
otherName
(CfnCertificate.OtherNameProperty otherName) Sets the value ofCfnCertificate.GeneralNameProperty.getOtherName()
registeredId
(String registeredId) Sets the value ofCfnCertificate.GeneralNameProperty.getRegisteredId()
rfc822Name
(String rfc822Name) Sets the value ofCfnCertificate.GeneralNameProperty.getRfc822Name()
uniformResourceIdentifier
(String uniformResourceIdentifier) Sets the value ofCfnCertificate.GeneralNameProperty.getUniformResourceIdentifier()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
directoryName
@Stability(Stable) public CfnCertificate.GeneralNameProperty.Builder directoryName(IResolvable directoryName) Sets the value ofCfnCertificate.GeneralNameProperty.getDirectoryName()
- Parameters:
directoryName
- Contains information about the certificate subject. The certificate can be one issued by your private certificate authority (CA) or it can be your private CA certificate. The Subject field in the certificate identifies the entity that owns or controls the public key in the certificate. The entity can be a user, computer, device, or service. The Subject must contain an X.500 distinguished name (DN). A DN is a sequence of relative distinguished names (RDNs). The RDNs are separated by commas in the certificate. The DN must be unique for each entity, but your private CA can issue more than one certificate with the same DN to the same entity.- Returns:
this
-
directoryName
@Stability(Stable) public CfnCertificate.GeneralNameProperty.Builder directoryName(CfnCertificate.SubjectProperty directoryName) Sets the value ofCfnCertificate.GeneralNameProperty.getDirectoryName()
- Parameters:
directoryName
- Contains information about the certificate subject. The certificate can be one issued by your private certificate authority (CA) or it can be your private CA certificate. The Subject field in the certificate identifies the entity that owns or controls the public key in the certificate. The entity can be a user, computer, device, or service. The Subject must contain an X.500 distinguished name (DN). A DN is a sequence of relative distinguished names (RDNs). The RDNs are separated by commas in the certificate. The DN must be unique for each entity, but your private CA can issue more than one certificate with the same DN to the same entity.- Returns:
this
-
dnsName
Sets the value ofCfnCertificate.GeneralNameProperty.getDnsName()
- Parameters:
dnsName
- RepresentsGeneralName
as a DNS name.- Returns:
this
-
ediPartyName
@Stability(Stable) public CfnCertificate.GeneralNameProperty.Builder ediPartyName(IResolvable ediPartyName) Sets the value ofCfnCertificate.GeneralNameProperty.getEdiPartyName()
- Parameters:
ediPartyName
- RepresentsGeneralName
as anEdiPartyName
object.- Returns:
this
-
ediPartyName
@Stability(Stable) public CfnCertificate.GeneralNameProperty.Builder ediPartyName(CfnCertificate.EdiPartyNameProperty ediPartyName) Sets the value ofCfnCertificate.GeneralNameProperty.getEdiPartyName()
- Parameters:
ediPartyName
- RepresentsGeneralName
as anEdiPartyName
object.- Returns:
this
-
ipAddress
Sets the value ofCfnCertificate.GeneralNameProperty.getIpAddress()
- Parameters:
ipAddress
- RepresentsGeneralName
as an IPv4 or IPv6 address.- Returns:
this
-
otherName
@Stability(Stable) public CfnCertificate.GeneralNameProperty.Builder otherName(IResolvable otherName) Sets the value ofCfnCertificate.GeneralNameProperty.getOtherName()
- Parameters:
otherName
- RepresentsGeneralName
using anOtherName
object.- Returns:
this
-
otherName
@Stability(Stable) public CfnCertificate.GeneralNameProperty.Builder otherName(CfnCertificate.OtherNameProperty otherName) Sets the value ofCfnCertificate.GeneralNameProperty.getOtherName()
- Parameters:
otherName
- RepresentsGeneralName
using anOtherName
object.- Returns:
this
-
registeredId
@Stability(Stable) public CfnCertificate.GeneralNameProperty.Builder registeredId(String registeredId) Sets the value ofCfnCertificate.GeneralNameProperty.getRegisteredId()
- Parameters:
registeredId
- RepresentsGeneralName
as an object identifier (OID).- Returns:
this
-
rfc822Name
Sets the value ofCfnCertificate.GeneralNameProperty.getRfc822Name()
- Parameters:
rfc822Name
- RepresentsGeneralName
as an RFC 822 email address.- Returns:
this
-
uniformResourceIdentifier
@Stability(Stable) public CfnCertificate.GeneralNameProperty.Builder uniformResourceIdentifier(String uniformResourceIdentifier) Sets the value ofCfnCertificate.GeneralNameProperty.getUniformResourceIdentifier()
- Parameters:
uniformResourceIdentifier
- RepresentsGeneralName
as a URI.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnCertificate.GeneralNameProperty>
- Returns:
- a new instance of
CfnCertificate.GeneralNameProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-