Class CfnTemplate.TemplateV3Property.Builder
java.lang.Object
software.amazon.awscdk.services.pcaconnectorad.CfnTemplate.TemplateV3Property.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTemplate.TemplateV3Property>
- Enclosing interface:
CfnTemplate.TemplateV3Property
@Stability(Stable)
public static final class CfnTemplate.TemplateV3Property.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTemplate.TemplateV3Property>
A builder for
CfnTemplate.TemplateV3Property-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.certificateValidity(IResolvable certificateValidity) Sets the value ofCfnTemplate.TemplateV3Property.getCertificateValidity()certificateValidity(CfnTemplate.CertificateValidityProperty certificateValidity) Sets the value ofCfnTemplate.TemplateV3Property.getCertificateValidity()enrollmentFlags(IResolvable enrollmentFlags) Sets the value ofCfnTemplate.TemplateV3Property.getEnrollmentFlags()enrollmentFlags(CfnTemplate.EnrollmentFlagsV3Property enrollmentFlags) Sets the value ofCfnTemplate.TemplateV3Property.getEnrollmentFlags()extensions(IResolvable extensions) Sets the value ofCfnTemplate.TemplateV3Property.getExtensions()extensions(CfnTemplate.ExtensionsV3Property extensions) Sets the value ofCfnTemplate.TemplateV3Property.getExtensions()generalFlags(IResolvable generalFlags) Sets the value ofCfnTemplate.TemplateV3Property.getGeneralFlags()generalFlags(CfnTemplate.GeneralFlagsV3Property generalFlags) Sets the value ofCfnTemplate.TemplateV3Property.getGeneralFlags()hashAlgorithm(String hashAlgorithm) Sets the value ofCfnTemplate.TemplateV3Property.getHashAlgorithm()privateKeyAttributes(IResolvable privateKeyAttributes) Sets the value ofCfnTemplate.TemplateV3Property.getPrivateKeyAttributes()privateKeyAttributes(CfnTemplate.PrivateKeyAttributesV3Property privateKeyAttributes) Sets the value ofCfnTemplate.TemplateV3Property.getPrivateKeyAttributes()privateKeyFlags(IResolvable privateKeyFlags) Sets the value ofCfnTemplate.TemplateV3Property.getPrivateKeyFlags()privateKeyFlags(CfnTemplate.PrivateKeyFlagsV3Property privateKeyFlags) Sets the value ofCfnTemplate.TemplateV3Property.getPrivateKeyFlags()subjectNameFlags(IResolvable subjectNameFlags) Sets the value ofCfnTemplate.TemplateV3Property.getSubjectNameFlags()subjectNameFlags(CfnTemplate.SubjectNameFlagsV3Property subjectNameFlags) Sets the value ofCfnTemplate.TemplateV3Property.getSubjectNameFlags()supersededTemplates(List<String> supersededTemplates) Sets the value ofCfnTemplate.TemplateV3Property.getSupersededTemplates()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
certificateValidity
@Stability(Stable) public CfnTemplate.TemplateV3Property.Builder certificateValidity(IResolvable certificateValidity) Sets the value ofCfnTemplate.TemplateV3Property.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.TemplateV3Property.Builder certificateValidity(CfnTemplate.CertificateValidityProperty certificateValidity) Sets the value ofCfnTemplate.TemplateV3Property.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.TemplateV3Property.Builder enrollmentFlags(IResolvable enrollmentFlags) Sets the value ofCfnTemplate.TemplateV3Property.getEnrollmentFlags()- Parameters:
enrollmentFlags- Enrollment flags describe the enrollment settings for certificates such as using the existing private key and deleting expired or revoked certificates. This parameter is required.- Returns:
this
-
enrollmentFlags
@Stability(Stable) public CfnTemplate.TemplateV3Property.Builder enrollmentFlags(CfnTemplate.EnrollmentFlagsV3Property enrollmentFlags) Sets the value ofCfnTemplate.TemplateV3Property.getEnrollmentFlags()- Parameters:
enrollmentFlags- Enrollment flags describe the enrollment settings for certificates such as using the existing private key and deleting expired or revoked certificates. This parameter is required.- Returns:
this
-
extensions
Sets the value ofCfnTemplate.TemplateV3Property.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.TemplateV3Property.Builder extensions(CfnTemplate.ExtensionsV3Property extensions) Sets the value ofCfnTemplate.TemplateV3Property.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.TemplateV3Property.Builder generalFlags(IResolvable generalFlags) Sets the value ofCfnTemplate.TemplateV3Property.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.TemplateV3Property.Builder generalFlags(CfnTemplate.GeneralFlagsV3Property generalFlags) Sets the value ofCfnTemplate.TemplateV3Property.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
-
hashAlgorithm
@Stability(Stable) public CfnTemplate.TemplateV3Property.Builder hashAlgorithm(String hashAlgorithm) Sets the value ofCfnTemplate.TemplateV3Property.getHashAlgorithm()- Parameters:
hashAlgorithm- Specifies the hash algorithm used to hash the private key. This parameter is required.- Returns:
this
-
privateKeyAttributes
@Stability(Stable) public CfnTemplate.TemplateV3Property.Builder privateKeyAttributes(IResolvable privateKeyAttributes) Sets the value ofCfnTemplate.TemplateV3Property.getPrivateKeyAttributes()- Parameters:
privateKeyAttributes- Private key attributes allow you to specify the algorithm, minimal key length, key spec, key usage, and cryptographic providers for the private key of a certificate for v3 templates. This parameter is required. V3 templates allow you to use Key Storage Providers.- Returns:
this
-
privateKeyAttributes
@Stability(Stable) public CfnTemplate.TemplateV3Property.Builder privateKeyAttributes(CfnTemplate.PrivateKeyAttributesV3Property privateKeyAttributes) Sets the value ofCfnTemplate.TemplateV3Property.getPrivateKeyAttributes()- Parameters:
privateKeyAttributes- Private key attributes allow you to specify the algorithm, minimal key length, key spec, key usage, and cryptographic providers for the private key of a certificate for v3 templates. This parameter is required. V3 templates allow you to use Key Storage Providers.- Returns:
this
-
privateKeyFlags
@Stability(Stable) public CfnTemplate.TemplateV3Property.Builder privateKeyFlags(IResolvable privateKeyFlags) Sets the value ofCfnTemplate.TemplateV3Property.getPrivateKeyFlags()- Parameters:
privateKeyFlags- Private key flags for v3 templates specify the client compatibility, if the private key can be exported, if user input is required when using a private key, and if an alternate signature algorithm should be used. This parameter is required.- Returns:
this
-
privateKeyFlags
@Stability(Stable) public CfnTemplate.TemplateV3Property.Builder privateKeyFlags(CfnTemplate.PrivateKeyFlagsV3Property privateKeyFlags) Sets the value ofCfnTemplate.TemplateV3Property.getPrivateKeyFlags()- Parameters:
privateKeyFlags- Private key flags for v3 templates specify the client compatibility, if the private key can be exported, if user input is required when using a private key, and if an alternate signature algorithm should be used. This parameter is required.- Returns:
this
-
subjectNameFlags
@Stability(Stable) public CfnTemplate.TemplateV3Property.Builder subjectNameFlags(IResolvable subjectNameFlags) Sets the value ofCfnTemplate.TemplateV3Property.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.TemplateV3Property.Builder subjectNameFlags(CfnTemplate.SubjectNameFlagsV3Property subjectNameFlags) Sets the value ofCfnTemplate.TemplateV3Property.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
-
supersededTemplates
@Stability(Stable) public CfnTemplate.TemplateV3Property.Builder supersededTemplates(List<String> supersededTemplates) Sets the value ofCfnTemplate.TemplateV3Property.getSupersededTemplates()- Parameters:
supersededTemplates- List of templates in Active Directory that are superseded by this template.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTemplate.TemplateV3Property>- Returns:
- a new instance of
CfnTemplate.TemplateV3Property - Throws:
NullPointerException- if any required attribute was not provided
-