Class CfnTemplate.TemplateV2Property.Builder
java.lang.Object
software.amazon.awscdk.services.pcaconnectorad.CfnTemplate.TemplateV2Property.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTemplate.TemplateV2Property>
- Enclosing interface:
CfnTemplate.TemplateV2Property
@Stability(Stable)
public static final class CfnTemplate.TemplateV2Property.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTemplate.TemplateV2Property>
A builder for
CfnTemplate.TemplateV2Property-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.certificateValidity(IResolvable certificateValidity) Sets the value ofCfnTemplate.TemplateV2Property.getCertificateValidity()certificateValidity(CfnTemplate.CertificateValidityProperty certificateValidity) Sets the value ofCfnTemplate.TemplateV2Property.getCertificateValidity()enrollmentFlags(IResolvable enrollmentFlags) Sets the value ofCfnTemplate.TemplateV2Property.getEnrollmentFlags()enrollmentFlags(CfnTemplate.EnrollmentFlagsV2Property enrollmentFlags) Sets the value ofCfnTemplate.TemplateV2Property.getEnrollmentFlags()extensions(IResolvable extensions) Sets the value ofCfnTemplate.TemplateV2Property.getExtensions()extensions(CfnTemplate.ExtensionsV2Property extensions) Sets the value ofCfnTemplate.TemplateV2Property.getExtensions()generalFlags(IResolvable generalFlags) Sets the value ofCfnTemplate.TemplateV2Property.getGeneralFlags()generalFlags(CfnTemplate.GeneralFlagsV2Property generalFlags) Sets the value ofCfnTemplate.TemplateV2Property.getGeneralFlags()privateKeyAttributes(IResolvable privateKeyAttributes) Sets the value ofCfnTemplate.TemplateV2Property.getPrivateKeyAttributes()privateKeyAttributes(CfnTemplate.PrivateKeyAttributesV2Property privateKeyAttributes) Sets the value ofCfnTemplate.TemplateV2Property.getPrivateKeyAttributes()privateKeyFlags(IResolvable privateKeyFlags) Sets the value ofCfnTemplate.TemplateV2Property.getPrivateKeyFlags()privateKeyFlags(CfnTemplate.PrivateKeyFlagsV2Property privateKeyFlags) Sets the value ofCfnTemplate.TemplateV2Property.getPrivateKeyFlags()subjectNameFlags(IResolvable subjectNameFlags) Sets the value ofCfnTemplate.TemplateV2Property.getSubjectNameFlags()subjectNameFlags(CfnTemplate.SubjectNameFlagsV2Property subjectNameFlags) Sets the value ofCfnTemplate.TemplateV2Property.getSubjectNameFlags()supersededTemplates(List<String> supersededTemplates) Sets the value ofCfnTemplate.TemplateV2Property.getSupersededTemplates()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
certificateValidity
@Stability(Stable) public CfnTemplate.TemplateV2Property.Builder certificateValidity(IResolvable certificateValidity) Sets the value ofCfnTemplate.TemplateV2Property.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.TemplateV2Property.Builder certificateValidity(CfnTemplate.CertificateValidityProperty certificateValidity) Sets the value ofCfnTemplate.TemplateV2Property.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.TemplateV2Property.Builder enrollmentFlags(IResolvable enrollmentFlags) Sets the value ofCfnTemplate.TemplateV2Property.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.TemplateV2Property.Builder enrollmentFlags(CfnTemplate.EnrollmentFlagsV2Property enrollmentFlags) Sets the value ofCfnTemplate.TemplateV2Property.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.TemplateV2Property.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.TemplateV2Property.Builder extensions(CfnTemplate.ExtensionsV2Property extensions) Sets the value ofCfnTemplate.TemplateV2Property.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.TemplateV2Property.Builder generalFlags(IResolvable generalFlags) Sets the value ofCfnTemplate.TemplateV2Property.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.TemplateV2Property.Builder generalFlags(CfnTemplate.GeneralFlagsV2Property generalFlags) Sets the value ofCfnTemplate.TemplateV2Property.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.TemplateV2Property.Builder privateKeyAttributes(IResolvable privateKeyAttributes) Sets the value ofCfnTemplate.TemplateV2Property.getPrivateKeyAttributes()- Parameters:
privateKeyAttributes- Private key attributes allow you to specify the minimal key length, key spec, and cryptographic providers for the private key of a certificate for v2 templates. This parameter is required. V2 templates allow you to use Legacy Cryptographic Service Providers.- Returns:
this
-
privateKeyAttributes
@Stability(Stable) public CfnTemplate.TemplateV2Property.Builder privateKeyAttributes(CfnTemplate.PrivateKeyAttributesV2Property privateKeyAttributes) Sets the value ofCfnTemplate.TemplateV2Property.getPrivateKeyAttributes()- Parameters:
privateKeyAttributes- Private key attributes allow you to specify the minimal key length, key spec, and cryptographic providers for the private key of a certificate for v2 templates. This parameter is required. V2 templates allow you to use Legacy Cryptographic Service Providers.- Returns:
this
-
privateKeyFlags
@Stability(Stable) public CfnTemplate.TemplateV2Property.Builder privateKeyFlags(IResolvable privateKeyFlags) Sets the value ofCfnTemplate.TemplateV2Property.getPrivateKeyFlags()- Parameters:
privateKeyFlags- Private key flags for v2 templates specify the client compatibility, if the private key can be exported, and if user input is required when using a private key. This parameter is required.- Returns:
this
-
privateKeyFlags
@Stability(Stable) public CfnTemplate.TemplateV2Property.Builder privateKeyFlags(CfnTemplate.PrivateKeyFlagsV2Property privateKeyFlags) Sets the value ofCfnTemplate.TemplateV2Property.getPrivateKeyFlags()- Parameters:
privateKeyFlags- Private key flags for v2 templates specify the client compatibility, if the private key can be exported, and if user input is required when using a private key. This parameter is required.- Returns:
this
-
subjectNameFlags
@Stability(Stable) public CfnTemplate.TemplateV2Property.Builder subjectNameFlags(IResolvable subjectNameFlags) Sets the value ofCfnTemplate.TemplateV2Property.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.TemplateV2Property.Builder subjectNameFlags(CfnTemplate.SubjectNameFlagsV2Property subjectNameFlags) Sets the value ofCfnTemplate.TemplateV2Property.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.TemplateV2Property.Builder supersededTemplates(List<String> supersededTemplates) Sets the value ofCfnTemplate.TemplateV2Property.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.TemplateV2Property>- Returns:
- a new instance of
CfnTemplate.TemplateV2Property - Throws:
NullPointerException- if any required attribute was not provided
-