Class CfnTemplatePropsMixin.TemplateV4Property.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.pcaconnectorad.CfnTemplatePropsMixin.TemplateV4Property.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTemplatePropsMixin.TemplateV4Property>
- Enclosing interface:
CfnTemplatePropsMixin.TemplateV4Property
@Stability(Stable)
public static final class CfnTemplatePropsMixin.TemplateV4Property.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTemplatePropsMixin.TemplateV4Property>
A builder for
CfnTemplatePropsMixin.TemplateV4Property-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.certificateValidity(CfnTemplatePropsMixin.CertificateValidityProperty certificateValidity) Sets the value ofCfnTemplatePropsMixin.TemplateV4Property.getCertificateValidity()certificateValidity(IResolvable certificateValidity) Sets the value ofCfnTemplatePropsMixin.TemplateV4Property.getCertificateValidity()enrollmentFlags(CfnTemplatePropsMixin.EnrollmentFlagsV4Property enrollmentFlags) Sets the value ofCfnTemplatePropsMixin.TemplateV4Property.getEnrollmentFlags()enrollmentFlags(IResolvable enrollmentFlags) Sets the value ofCfnTemplatePropsMixin.TemplateV4Property.getEnrollmentFlags()extensions(CfnTemplatePropsMixin.ExtensionsV4Property extensions) Sets the value ofCfnTemplatePropsMixin.TemplateV4Property.getExtensions()extensions(IResolvable extensions) Sets the value ofCfnTemplatePropsMixin.TemplateV4Property.getExtensions()generalFlags(CfnTemplatePropsMixin.GeneralFlagsV4Property generalFlags) Sets the value ofCfnTemplatePropsMixin.TemplateV4Property.getGeneralFlags()generalFlags(IResolvable generalFlags) Sets the value ofCfnTemplatePropsMixin.TemplateV4Property.getGeneralFlags()hashAlgorithm(String hashAlgorithm) Sets the value ofCfnTemplatePropsMixin.TemplateV4Property.getHashAlgorithm()privateKeyAttributes(CfnTemplatePropsMixin.PrivateKeyAttributesV4Property privateKeyAttributes) Sets the value ofCfnTemplatePropsMixin.TemplateV4Property.getPrivateKeyAttributes()privateKeyAttributes(IResolvable privateKeyAttributes) Sets the value ofCfnTemplatePropsMixin.TemplateV4Property.getPrivateKeyAttributes()privateKeyFlags(CfnTemplatePropsMixin.PrivateKeyFlagsV4Property privateKeyFlags) Sets the value ofCfnTemplatePropsMixin.TemplateV4Property.getPrivateKeyFlags()privateKeyFlags(IResolvable privateKeyFlags) Sets the value ofCfnTemplatePropsMixin.TemplateV4Property.getPrivateKeyFlags()subjectNameFlags(CfnTemplatePropsMixin.SubjectNameFlagsV4Property subjectNameFlags) Sets the value ofCfnTemplatePropsMixin.TemplateV4Property.getSubjectNameFlags()subjectNameFlags(IResolvable subjectNameFlags) Sets the value ofCfnTemplatePropsMixin.TemplateV4Property.getSubjectNameFlags()supersededTemplates(List<String> supersededTemplates) Sets the value ofCfnTemplatePropsMixin.TemplateV4Property.getSupersededTemplates()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
certificateValidity
@Stability(Stable) public CfnTemplatePropsMixin.TemplateV4Property.Builder certificateValidity(IResolvable certificateValidity) Sets the value ofCfnTemplatePropsMixin.TemplateV4Property.getCertificateValidity()- Parameters:
certificateValidity- Certificate validity describes the validity and renewal periods of a certificate.- Returns:
this
-
certificateValidity
@Stability(Stable) public CfnTemplatePropsMixin.TemplateV4Property.Builder certificateValidity(CfnTemplatePropsMixin.CertificateValidityProperty certificateValidity) Sets the value ofCfnTemplatePropsMixin.TemplateV4Property.getCertificateValidity()- Parameters:
certificateValidity- Certificate validity describes the validity and renewal periods of a certificate.- Returns:
this
-
enrollmentFlags
@Stability(Stable) public CfnTemplatePropsMixin.TemplateV4Property.Builder enrollmentFlags(IResolvable enrollmentFlags) Sets the value ofCfnTemplatePropsMixin.TemplateV4Property.getEnrollmentFlags()- Parameters:
enrollmentFlags- Enrollment flags describe the enrollment settings for certificates using the existing private key and deleting expired or revoked certificates.- Returns:
this
-
enrollmentFlags
@Stability(Stable) public CfnTemplatePropsMixin.TemplateV4Property.Builder enrollmentFlags(CfnTemplatePropsMixin.EnrollmentFlagsV4Property enrollmentFlags) Sets the value ofCfnTemplatePropsMixin.TemplateV4Property.getEnrollmentFlags()- Parameters:
enrollmentFlags- Enrollment flags describe the enrollment settings for certificates using the existing private key and deleting expired or revoked certificates.- Returns:
this
-
extensions
@Stability(Stable) public CfnTemplatePropsMixin.TemplateV4Property.Builder extensions(IResolvable extensions) Sets the value ofCfnTemplatePropsMixin.TemplateV4Property.getExtensions()- Parameters:
extensions- Extensions describe the key usage extensions and application policies for a template.- Returns:
this
-
extensions
@Stability(Stable) public CfnTemplatePropsMixin.TemplateV4Property.Builder extensions(CfnTemplatePropsMixin.ExtensionsV4Property extensions) Sets the value ofCfnTemplatePropsMixin.TemplateV4Property.getExtensions()- Parameters:
extensions- Extensions describe the key usage extensions and application policies for a template.- Returns:
this
-
generalFlags
@Stability(Stable) public CfnTemplatePropsMixin.TemplateV4Property.Builder generalFlags(IResolvable generalFlags) Sets the value ofCfnTemplatePropsMixin.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.- Returns:
this
-
generalFlags
@Stability(Stable) public CfnTemplatePropsMixin.TemplateV4Property.Builder generalFlags(CfnTemplatePropsMixin.GeneralFlagsV4Property generalFlags) Sets the value ofCfnTemplatePropsMixin.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.- Returns:
this
-
hashAlgorithm
@Stability(Stable) public CfnTemplatePropsMixin.TemplateV4Property.Builder hashAlgorithm(String hashAlgorithm) Sets the value ofCfnTemplatePropsMixin.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
-
privateKeyAttributes
@Stability(Stable) public CfnTemplatePropsMixin.TemplateV4Property.Builder privateKeyAttributes(IResolvable privateKeyAttributes) Sets the value ofCfnTemplatePropsMixin.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. 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 CfnTemplatePropsMixin.TemplateV4Property.Builder privateKeyAttributes(CfnTemplatePropsMixin.PrivateKeyAttributesV4Property privateKeyAttributes) Sets the value ofCfnTemplatePropsMixin.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. 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 CfnTemplatePropsMixin.TemplateV4Property.Builder privateKeyFlags(IResolvable privateKeyFlags) Sets the value ofCfnTemplatePropsMixin.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.- Returns:
this
-
privateKeyFlags
@Stability(Stable) public CfnTemplatePropsMixin.TemplateV4Property.Builder privateKeyFlags(CfnTemplatePropsMixin.PrivateKeyFlagsV4Property privateKeyFlags) Sets the value ofCfnTemplatePropsMixin.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.- Returns:
this
-
subjectNameFlags
@Stability(Stable) public CfnTemplatePropsMixin.TemplateV4Property.Builder subjectNameFlags(IResolvable subjectNameFlags) Sets the value ofCfnTemplatePropsMixin.TemplateV4Property.getSubjectNameFlags()- Parameters:
subjectNameFlags- Subject name flags describe the subject name and subject alternate name that is included in a certificate.- Returns:
this
-
subjectNameFlags
@Stability(Stable) public CfnTemplatePropsMixin.TemplateV4Property.Builder subjectNameFlags(CfnTemplatePropsMixin.SubjectNameFlagsV4Property subjectNameFlags) Sets the value ofCfnTemplatePropsMixin.TemplateV4Property.getSubjectNameFlags()- Parameters:
subjectNameFlags- Subject name flags describe the subject name and subject alternate name that is included in a certificate.- Returns:
this
-
supersededTemplates
@Stability(Stable) public CfnTemplatePropsMixin.TemplateV4Property.Builder supersededTemplates(List<String> supersededTemplates) Sets the value ofCfnTemplatePropsMixin.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:
buildin interfacesoftware.amazon.jsii.Builder<CfnTemplatePropsMixin.TemplateV4Property>- Returns:
- a new instance of
CfnTemplatePropsMixin.TemplateV4Property - Throws:
NullPointerException- if any required attribute was not provided
-