Class CfnProject.PlacementTemplateProperty.Builder
java.lang.Object
software.amazon.awscdk.services.iot1click.CfnProject.PlacementTemplateProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnProject.PlacementTemplateProperty>
- Enclosing interface:
CfnProject.PlacementTemplateProperty
@Stability(Stable)
public static final class CfnProject.PlacementTemplateProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnProject.PlacementTemplateProperty>
A builder for
CfnProject.PlacementTemplateProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.defaultAttributes
(Object defaultAttributes) Sets the value ofCfnProject.PlacementTemplateProperty.getDefaultAttributes()
deviceTemplates
(Map<String, ? extends Object> deviceTemplates) Sets the value ofCfnProject.PlacementTemplateProperty.getDeviceTemplates()
deviceTemplates
(IResolvable deviceTemplates) Sets the value ofCfnProject.PlacementTemplateProperty.getDeviceTemplates()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
defaultAttributes
@Stability(Stable) public CfnProject.PlacementTemplateProperty.Builder defaultAttributes(Object defaultAttributes) Sets the value ofCfnProject.PlacementTemplateProperty.getDefaultAttributes()
- Parameters:
defaultAttributes
- The default attributes (key-value pairs) to be applied to all placements using this template.- Returns:
this
-
deviceTemplates
@Stability(Stable) public CfnProject.PlacementTemplateProperty.Builder deviceTemplates(IResolvable deviceTemplates) Sets the value ofCfnProject.PlacementTemplateProperty.getDeviceTemplates()
- Parameters:
deviceTemplates
- An object specifying the DeviceTemplate for all placements using this ( PlacementTemplate ) template.- Returns:
this
-
deviceTemplates
@Stability(Stable) public CfnProject.PlacementTemplateProperty.Builder deviceTemplates(Map<String, ? extends Object> deviceTemplates) Sets the value ofCfnProject.PlacementTemplateProperty.getDeviceTemplates()
- Parameters:
deviceTemplates
- An object specifying the DeviceTemplate for all placements using this ( PlacementTemplate ) template.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnProject.PlacementTemplateProperty>
- Returns:
- a new instance of
CfnProject.PlacementTemplateProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-