Class CfnPlacementProps.Builder
java.lang.Object
software.amazon.awscdk.services.iot1click.CfnPlacementProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPlacementProps>
- Enclosing interface:
CfnPlacementProps
@Stability(Stable)
public static final class CfnPlacementProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPlacementProps>
A builder for
CfnPlacementProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionassociatedDevices
(Object associatedDevices) Sets the value ofCfnPlacementProps.getAssociatedDevices()
attributes
(Object attributes) Sets the value ofCfnPlacementProps.getAttributes()
build()
Builds the configured instance.placementName
(String placementName) Sets the value ofCfnPlacementProps.getPlacementName()
projectName
(String projectName) Sets the value ofCfnPlacementProps.getProjectName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
projectName
Sets the value ofCfnPlacementProps.getProjectName()
- Parameters:
projectName
- The name of the project containing the placement. This parameter is required.- Returns:
this
-
associatedDevices
Sets the value ofCfnPlacementProps.getAssociatedDevices()
- Parameters:
associatedDevices
- The devices to associate with the placement, as defined by a mapping of zero or more key-value pairs wherein the key is a template name and the value is a device ID.- Returns:
this
-
attributes
Sets the value ofCfnPlacementProps.getAttributes()
- Parameters:
attributes
- The user-defined attributes associated with the placement.- Returns:
this
-
placementName
Sets the value ofCfnPlacementProps.getPlacementName()
- Parameters:
placementName
- The name of the placement.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnPlacementProps>
- Returns:
- a new instance of
CfnPlacementProps
- Throws:
NullPointerException
- if any required attribute was not provided
-