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