Class CfnThingGroup.AttributePayloadProperty.Builder
java.lang.Object
software.amazon.awscdk.services.iot.CfnThingGroup.AttributePayloadProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnThingGroup.AttributePayloadProperty>
- Enclosing interface:
- CfnThingGroup.AttributePayloadProperty
@Stability(Stable)
public static final class CfnThingGroup.AttributePayloadProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnThingGroup.AttributePayloadProperty>
A builder for
CfnThingGroup.AttributePayloadProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionattributes
(Map<String, String> attributes) Sets the value ofCfnThingGroup.AttributePayloadProperty.getAttributes()
attributes
(IResolvable attributes) Sets the value ofCfnThingGroup.AttributePayloadProperty.getAttributes()
build()
Builds the configured instance.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
attributes
@Stability(Stable) public CfnThingGroup.AttributePayloadProperty.Builder attributes(IResolvable attributes) Sets the value ofCfnThingGroup.AttributePayloadProperty.getAttributes()
- Parameters:
attributes
- A JSON string containing up to three key-value pair in JSON format. For example:.{\"attributes\":{\"string1\":\"string2\"}}
- Returns:
this
-
attributes
@Stability(Stable) public CfnThingGroup.AttributePayloadProperty.Builder attributes(Map<String, String> attributes) Sets the value ofCfnThingGroup.AttributePayloadProperty.getAttributes()
- Parameters:
attributes
- A JSON string containing up to three key-value pair in JSON format. For example:.{\"attributes\":{\"string1\":\"string2\"}}
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnThingGroup.AttributePayloadProperty>
- Returns:
- a new instance of
CfnThingGroup.AttributePayloadProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-