Class CfnTemplate.ValidityPeriodProperty.Builder
java.lang.Object
software.amazon.awscdk.services.pcaconnectorad.CfnTemplate.ValidityPeriodProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTemplate.ValidityPeriodProperty>
- Enclosing interface:
CfnTemplate.ValidityPeriodProperty
@Stability(Stable)
public static final class CfnTemplate.ValidityPeriodProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTemplate.ValidityPeriodProperty>
A builder for
CfnTemplate.ValidityPeriodProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnTemplate.ValidityPeriodProperty.getPeriod()periodType(String periodType) Sets the value ofCfnTemplate.ValidityPeriodProperty.getPeriodType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
period
Sets the value ofCfnTemplate.ValidityPeriodProperty.getPeriod()- Parameters:
period- The numeric value for the validity period. This parameter is required.- Returns:
this
-
periodType
Sets the value ofCfnTemplate.ValidityPeriodProperty.getPeriodType()- Parameters:
periodType- The unit of time. This parameter is required. You can select hours, days, weeks, months, and years.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTemplate.ValidityPeriodProperty>- Returns:
- a new instance of
CfnTemplate.ValidityPeriodProperty - Throws:
NullPointerException- if any required attribute was not provided
-