Class CfnTemplate.CertificateValidityProperty.Builder
java.lang.Object
software.amazon.awscdk.services.pcaconnectorad.CfnTemplate.CertificateValidityProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTemplate.CertificateValidityProperty>
- Enclosing interface:
CfnTemplate.CertificateValidityProperty
@Stability(Stable)
public static final class CfnTemplate.CertificateValidityProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTemplate.CertificateValidityProperty>
A builder for
CfnTemplate.CertificateValidityProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.renewalPeriod
(IResolvable renewalPeriod) Sets the value ofCfnTemplate.CertificateValidityProperty.getRenewalPeriod()
renewalPeriod
(CfnTemplate.ValidityPeriodProperty renewalPeriod) Sets the value ofCfnTemplate.CertificateValidityProperty.getRenewalPeriod()
validityPeriod
(IResolvable validityPeriod) Sets the value ofCfnTemplate.CertificateValidityProperty.getValidityPeriod()
validityPeriod
(CfnTemplate.ValidityPeriodProperty validityPeriod) Sets the value ofCfnTemplate.CertificateValidityProperty.getValidityPeriod()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
renewalPeriod
@Stability(Stable) public CfnTemplate.CertificateValidityProperty.Builder renewalPeriod(IResolvable renewalPeriod) Sets the value ofCfnTemplate.CertificateValidityProperty.getRenewalPeriod()
- Parameters:
renewalPeriod
- Renewal period is the period of time before certificate expiration when a new certificate will be requested. This parameter is required.- Returns:
this
-
renewalPeriod
@Stability(Stable) public CfnTemplate.CertificateValidityProperty.Builder renewalPeriod(CfnTemplate.ValidityPeriodProperty renewalPeriod) Sets the value ofCfnTemplate.CertificateValidityProperty.getRenewalPeriod()
- Parameters:
renewalPeriod
- Renewal period is the period of time before certificate expiration when a new certificate will be requested. This parameter is required.- Returns:
this
-
validityPeriod
@Stability(Stable) public CfnTemplate.CertificateValidityProperty.Builder validityPeriod(IResolvable validityPeriod) Sets the value ofCfnTemplate.CertificateValidityProperty.getValidityPeriod()
- Parameters:
validityPeriod
- Information describing the end of the validity period of the certificate. This parameter is required. This parameter sets the “Not After” date for the certificate. Certificate validity is the period of time during which a certificate is valid. Validity can be expressed as an explicit date and time when the certificate expires, or as a span of time after issuance, stated in days, months, or years. For more information, see Validity in RFC 5280. This value is unaffected when ValidityNotBefore is also specified. For example, if Validity is set to 20 days in the future, the certificate will expire 20 days from issuance time regardless of the ValidityNotBefore value.- Returns:
this
-
validityPeriod
@Stability(Stable) public CfnTemplate.CertificateValidityProperty.Builder validityPeriod(CfnTemplate.ValidityPeriodProperty validityPeriod) Sets the value ofCfnTemplate.CertificateValidityProperty.getValidityPeriod()
- Parameters:
validityPeriod
- Information describing the end of the validity period of the certificate. This parameter is required. This parameter sets the “Not After” date for the certificate. Certificate validity is the period of time during which a certificate is valid. Validity can be expressed as an explicit date and time when the certificate expires, or as a span of time after issuance, stated in days, months, or years. For more information, see Validity in RFC 5280. This value is unaffected when ValidityNotBefore is also specified. For example, if Validity is set to 20 days in the future, the certificate will expire 20 days from issuance time regardless of the ValidityNotBefore value.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnTemplate.CertificateValidityProperty>
- Returns:
- a new instance of
CfnTemplate.CertificateValidityProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-