Class CfnThingProps.Builder
java.lang.Object
software.amazon.awscdk.services.iot.CfnThingProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnThingProps>
- Enclosing interface:
- CfnThingProps
@Stability(Stable)
public static final class CfnThingProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnThingProps>
A builder for
CfnThingProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionattributePayload
(IResolvable attributePayload) Sets the value ofCfnThingProps.getAttributePayload()
attributePayload
(CfnThing.AttributePayloadProperty attributePayload) Sets the value ofCfnThingProps.getAttributePayload()
build()
Builds the configured instance.Sets the value ofCfnThingProps.getThingName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
attributePayload
Sets the value ofCfnThingProps.getAttributePayload()
- Parameters:
attributePayload
- A string that contains up to three key value pairs. Maximum length of 800. Duplicates not allowed.- Returns:
this
-
attributePayload
@Stability(Stable) public CfnThingProps.Builder attributePayload(CfnThing.AttributePayloadProperty attributePayload) Sets the value ofCfnThingProps.getAttributePayload()
- Parameters:
attributePayload
- A string that contains up to three key value pairs. Maximum length of 800. Duplicates not allowed.- Returns:
this
-
thingName
Sets the value ofCfnThingProps.getThingName()
- Parameters:
thingName
- The name of the thing to update. You can't change a thing's name. To change a thing's name, you must create a new thing, give it the new name, and then delete the old thing.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnThingProps>
- Returns:
- a new instance of
CfnThingProps
- Throws:
NullPointerException
- if any required attribute was not provided
-