Class CfnCertificateAuthority.ValidityProperty.Builder
java.lang.Object
software.amazon.awscdk.services.eks_v2.CfnCertificateAuthority.ValidityProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCertificateAuthority.ValidityProperty>
- Enclosing interface:
CfnCertificateAuthority.ValidityProperty
@Stability(Stable)
public static final class CfnCertificateAuthority.ValidityProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCertificateAuthority.ValidityProperty>
A builder for
CfnCertificateAuthority.ValidityProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnCertificateAuthority.ValidityProperty.getNotAfter()Sets the value ofCfnCertificateAuthority.ValidityProperty.getNotBefore()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
notAfter
@Stability(Stable) public CfnCertificateAuthority.ValidityProperty.Builder notAfter(String notAfter) Sets the value ofCfnCertificateAuthority.ValidityProperty.getNotAfter()- Parameters:
notAfter- The end of the validity period for the certificate authority.- Returns:
this
-
notBefore
@Stability(Stable) public CfnCertificateAuthority.ValidityProperty.Builder notBefore(String notBefore) Sets the value ofCfnCertificateAuthority.ValidityProperty.getNotBefore()- Parameters:
notBefore- The start of the validity period for the certificate authority.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnCertificateAuthority.ValidityProperty>- Returns:
- a new instance of
CfnCertificateAuthority.ValidityProperty - Throws:
NullPointerException- if any required attribute was not provided
-