Class CfnRoute.DurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.appmesh.CfnRoute.DurationProperty.Builder
- All Implemented Interfaces:
 software.amazon.jsii.Builder<CfnRoute.DurationProperty>
- Enclosing interface:
 CfnRoute.DurationProperty
@Stability(Stable)
public static final class CfnRoute.DurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRoute.DurationProperty>
A builder for 
CfnRoute.DurationProperty- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnRoute.DurationProperty.getUnit()Sets the value ofCfnRoute.DurationProperty.getValue() 
- 
Constructor Details
- 
Builder
public Builder() 
 - 
 - 
Method Details
- 
unit
Sets the value ofCfnRoute.DurationProperty.getUnit()- Parameters:
 unit- A unit of time. This parameter is required.- Returns:
 this
 - 
value
Sets the value ofCfnRoute.DurationProperty.getValue()- Parameters:
 value- A number of time units. This parameter is required.- Returns:
 this
 - 
build
Builds the configured instance.- Specified by:
 buildin interfacesoftware.amazon.jsii.Builder<CfnRoute.DurationProperty>- Returns:
 - a new instance of 
CfnRoute.DurationProperty - Throws:
 NullPointerException- if any required attribute was not provided
 
 -