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