Class CfnTemplate.TemplateV4Property.Builder
java.lang.Object
software.amazon.awscdk.services.pcaconnectorad.CfnTemplate.TemplateV4Property.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTemplate.TemplateV4Property>
- Enclosing interface:
CfnTemplate.TemplateV4Property
@Stability(Stable)
public static final class CfnTemplate.TemplateV4Property.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTemplate.TemplateV4Property>
A builder for
CfnTemplate.TemplateV4Property
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.certificateValidity
(IResolvable certificateValidity) Sets the value ofCfnTemplate.TemplateV4Property.getCertificateValidity()
certificateValidity
(CfnTemplate.CertificateValidityProperty certificateValidity) Sets the value ofCfnTemplate.TemplateV4Property.getCertificateValidity()
enrollmentFlags
(IResolvable enrollmentFlags) Sets the value ofCfnTemplate.TemplateV4Property.getEnrollmentFlags()
enrollmentFlags
(CfnTemplate.EnrollmentFlagsV4Property enrollmentFlags) Sets the value ofCfnTemplate.TemplateV4Property.getEnrollmentFlags()
extensions
(IResolvable extensions) Sets the value ofCfnTemplate.TemplateV4Property.getExtensions()
extensions
(CfnTemplate.ExtensionsV4Property extensions) Sets the value ofCfnTemplate.TemplateV4Property.getExtensions()
generalFlags
(IResolvable generalFlags) Sets the value ofCfnTemplate.TemplateV4Property.getGeneralFlags()
generalFlags
(CfnTemplate.GeneralFlagsV4Property generalFlags) Sets the value ofCfnTemplate.TemplateV4Property.getGeneralFlags()
hashAlgorithm
(String hashAlgorithm) Sets the value ofCfnTemplate.TemplateV4Property.getHashAlgorithm()
privateKeyAttributes
(IResolvable privateKeyAttributes) Sets the value ofCfnTemplate.TemplateV4Property.getPrivateKeyAttributes()
privateKeyAttributes
(CfnTemplate.PrivateKeyAttributesV4Property privateKeyAttributes) Sets the value ofCfnTemplate.TemplateV4Property.getPrivateKeyAttributes()
privateKeyFlags
(IResolvable privateKeyFlags) Sets the value ofCfnTemplate.TemplateV4Property.getPrivateKeyFlags()
privateKeyFlags
(CfnTemplate.PrivateKeyFlagsV4Property privateKeyFlags) Sets the value ofCfnTemplate.TemplateV4Property.getPrivateKeyFlags()
subjectNameFlags
(IResolvable subjectNameFlags) Sets the value ofCfnTemplate.TemplateV4Property.getSubjectNameFlags()
subjectNameFlags
(CfnTemplate.SubjectNameFlagsV4Property subjectNameFlags) Sets the value ofCfnTemplate.TemplateV4Property.getSubjectNameFlags()
supersededTemplates
(List<String> supersededTemplates) Sets the value ofCfnTemplate.TemplateV4Property.getSupersededTemplates()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
certificateValidity
@Stability(Stable) public CfnTemplate.TemplateV4Property.Builder certificateValidity(IResolvable certificateValidity) Sets the value ofCfnTemplate.TemplateV4Property.getCertificateValidity()
- Parameters:
certificateValidity
- Certificate validity describes the validity and renewal periods of a certificate. This parameter is required.- Returns:
this
-
certificateValidity
@Stability(Stable) public CfnTemplate.TemplateV4Property.Builder certificateValidity(CfnTemplate.CertificateValidityProperty certificateValidity) Sets the value ofCfnTemplate.TemplateV4Property.getCertificateValidity()
- Parameters:
certificateValidity
- Certificate validity describes the validity and renewal periods of a certificate. This parameter is required.- Returns:
this
-
enrollmentFlags
@Stability(Stable) public CfnTemplate.TemplateV4Property.Builder enrollmentFlags(IResolvable enrollmentFlags) Sets the value ofCfnTemplate.TemplateV4Property.getEnrollmentFlags()
- Parameters:
enrollmentFlags
- Enrollment flags describe the enrollment settings for certificates using the existing private key and deleting expired or revoked certificates. This parameter is required.- Returns:
this
-
enrollmentFlags
@Stability(Stable) public CfnTemplate.TemplateV4Property.Builder enrollmentFlags(CfnTemplate.EnrollmentFlagsV4Property enrollmentFlags) Sets the value ofCfnTemplate.TemplateV4Property.getEnrollmentFlags()
- Parameters:
enrollmentFlags
- Enrollment flags describe the enrollment settings for certificates using the existing private key and deleting expired or revoked certificates. This parameter is required.- Returns:
this
-
extensions
Sets the value ofCfnTemplate.TemplateV4Property.getExtensions()
- Parameters:
extensions
- Extensions describe the key usage extensions and application policies for a template. This parameter is required.- Returns:
this
-
extensions
@Stability(Stable) public CfnTemplate.TemplateV4Property.Builder extensions(CfnTemplate.ExtensionsV4Property extensions) Sets the value ofCfnTemplate.TemplateV4Property.getExtensions()
- Parameters:
extensions
- Extensions describe the key usage extensions and application policies for a template. This parameter is required.- Returns:
this
-
generalFlags
@Stability(Stable) public CfnTemplate.TemplateV4Property.Builder generalFlags(IResolvable generalFlags) Sets the value ofCfnTemplate.TemplateV4Property.getGeneralFlags()
- Parameters:
generalFlags
- General flags describe whether the template is used for computers or users and if the template can be used with autoenrollment. This parameter is required.- Returns:
this
-
generalFlags
@Stability(Stable) public CfnTemplate.TemplateV4Property.Builder generalFlags(CfnTemplate.GeneralFlagsV4Property generalFlags) Sets the value ofCfnTemplate.TemplateV4Property.getGeneralFlags()
- Parameters:
generalFlags
- General flags describe whether the template is used for computers or users and if the template can be used with autoenrollment. This parameter is required.- Returns:
this
-
privateKeyAttributes
@Stability(Stable) public CfnTemplate.TemplateV4Property.Builder privateKeyAttributes(IResolvable privateKeyAttributes) Sets the value ofCfnTemplate.TemplateV4Property.getPrivateKeyAttributes()
- Parameters:
privateKeyAttributes
- Private key attributes allow you to specify the minimal key length, key spec, key usage, and cryptographic providers for the private key of a certificate for v4 templates. This parameter is required. V4 templates allow you to use either Key Storage Providers or Legacy Cryptographic Service Providers. You specify the cryptography provider category in private key flags.- Returns:
this
-
privateKeyAttributes
@Stability(Stable) public CfnTemplate.TemplateV4Property.Builder privateKeyAttributes(CfnTemplate.PrivateKeyAttributesV4Property privateKeyAttributes) Sets the value ofCfnTemplate.TemplateV4Property.getPrivateKeyAttributes()
- Parameters:
privateKeyAttributes
- Private key attributes allow you to specify the minimal key length, key spec, key usage, and cryptographic providers for the private key of a certificate for v4 templates. This parameter is required. V4 templates allow you to use either Key Storage Providers or Legacy Cryptographic Service Providers. You specify the cryptography provider category in private key flags.- Returns:
this
-
privateKeyFlags
@Stability(Stable) public CfnTemplate.TemplateV4Property.Builder privateKeyFlags(IResolvable privateKeyFlags) Sets the value ofCfnTemplate.TemplateV4Property.getPrivateKeyFlags()
- Parameters:
privateKeyFlags
- Private key flags for v4 templates specify the client compatibility, if the private key can be exported, if user input is required when using a private key, if an alternate signature algorithm should be used, and if certificates are renewed using the same private key. This parameter is required.- Returns:
this
-
privateKeyFlags
@Stability(Stable) public CfnTemplate.TemplateV4Property.Builder privateKeyFlags(CfnTemplate.PrivateKeyFlagsV4Property privateKeyFlags) Sets the value ofCfnTemplate.TemplateV4Property.getPrivateKeyFlags()
- Parameters:
privateKeyFlags
- Private key flags for v4 templates specify the client compatibility, if the private key can be exported, if user input is required when using a private key, if an alternate signature algorithm should be used, and if certificates are renewed using the same private key. This parameter is required.- Returns:
this
-
subjectNameFlags
@Stability(Stable) public CfnTemplate.TemplateV4Property.Builder subjectNameFlags(IResolvable subjectNameFlags) Sets the value ofCfnTemplate.TemplateV4Property.getSubjectNameFlags()
- Parameters:
subjectNameFlags
- Subject name flags describe the subject name and subject alternate name that is included in a certificate. This parameter is required.- Returns:
this
-
subjectNameFlags
@Stability(Stable) public CfnTemplate.TemplateV4Property.Builder subjectNameFlags(CfnTemplate.SubjectNameFlagsV4Property subjectNameFlags) Sets the value ofCfnTemplate.TemplateV4Property.getSubjectNameFlags()
- Parameters:
subjectNameFlags
- Subject name flags describe the subject name and subject alternate name that is included in a certificate. This parameter is required.- Returns:
this
-
hashAlgorithm
@Stability(Stable) public CfnTemplate.TemplateV4Property.Builder hashAlgorithm(String hashAlgorithm) Sets the value ofCfnTemplate.TemplateV4Property.getHashAlgorithm()
- Parameters:
hashAlgorithm
- Specifies the hash algorithm used to hash the private key. Hash algorithm can only be specified when using Key Storage Providers.- Returns:
this
-
supersededTemplates
@Stability(Stable) public CfnTemplate.TemplateV4Property.Builder supersededTemplates(List<String> supersededTemplates) Sets the value ofCfnTemplate.TemplateV4Property.getSupersededTemplates()
- Parameters:
supersededTemplates
- List of templates in Active Directory that are superseded by this template.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnTemplate.TemplateV4Property>
- Returns:
- a new instance of
CfnTemplate.TemplateV4Property
- Throws:
NullPointerException
- if any required attribute was not provided
-