Class CfnThing.AttributePayloadProperty.Builder
java.lang.Object
software.amazon.awscdk.services.iot.CfnThing.AttributePayloadProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnThing.AttributePayloadProperty>
- Enclosing interface:
- CfnThing.AttributePayloadProperty
@Stability(Stable)
public static final class CfnThing.AttributePayloadProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnThing.AttributePayloadProperty>
A builder for
CfnThing.AttributePayloadProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionattributes(Map<String, String> attributes) Sets the value ofCfnThing.AttributePayloadProperty.getAttributes()attributes(IResolvable attributes) Sets the value ofCfnThing.AttributePayloadProperty.getAttributes()build()Builds the configured instance.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
attributes
@Stability(Stable) public CfnThing.AttributePayloadProperty.Builder attributes(IResolvable attributes) Sets the value ofCfnThing.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 CfnThing.AttributePayloadProperty.Builder attributes(Map<String, String> attributes) Sets the value ofCfnThing.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:
buildin interfacesoftware.amazon.jsii.Builder<CfnThing.AttributePayloadProperty>- Returns:
- a new instance of
CfnThing.AttributePayloadProperty - Throws:
NullPointerException- if any required attribute was not provided
-