Class CfnVehicle.TimePeriodProperty.Builder
java.lang.Object
software.amazon.awscdk.services.iotfleetwise.CfnVehicle.TimePeriodProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnVehicle.TimePeriodProperty>
- Enclosing interface:
CfnVehicle.TimePeriodProperty
@Stability(Stable)
public static final class CfnVehicle.TimePeriodProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnVehicle.TimePeriodProperty>
A builder for
CfnVehicle.TimePeriodProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnVehicle.TimePeriodProperty.getUnit()Sets the value ofCfnVehicle.TimePeriodProperty.getValue()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
unit
Sets the value ofCfnVehicle.TimePeriodProperty.getUnit()- Parameters:
unit- A unit of time. This parameter is required.- Returns:
this
-
value
Sets the value ofCfnVehicle.TimePeriodProperty.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<CfnVehicle.TimePeriodProperty>- Returns:
- a new instance of
CfnVehicle.TimePeriodProperty - Throws:
NullPointerException- if any required attribute was not provided
-