Interface ThingDocument.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<ThingDocument.Builder,ThingDocument>,SdkBuilder<ThingDocument.Builder,ThingDocument>,SdkPojo
- Enclosing class:
- ThingDocument
public static interface ThingDocument.Builder extends SdkPojo, CopyableBuilder<ThingDocument.Builder,ThingDocument>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ThingDocument.Builderattributes(Map<String,String> attributes)The attributes.default ThingDocument.Builderconnectivity(Consumer<ThingConnectivity.Builder> connectivity)Indicates whether the thing is connected to the Amazon Web Services IoT Core service.ThingDocument.Builderconnectivity(ThingConnectivity connectivity)Indicates whether the thing is connected to the Amazon Web Services IoT Core service.ThingDocument.BuilderdeviceDefender(String deviceDefender)Contains Device Defender data.ThingDocument.Buildershadow(String shadow)The unnamed shadow and named shadow.ThingDocument.BuilderthingGroupNames(String... thingGroupNames)Thing group names.ThingDocument.BuilderthingGroupNames(Collection<String> thingGroupNames)Thing group names.ThingDocument.BuilderthingId(String thingId)The thing ID.ThingDocument.BuilderthingName(String thingName)The thing name.ThingDocument.BuilderthingTypeName(String thingTypeName)The thing type name.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
thingName
ThingDocument.Builder thingName(String thingName)
The thing name.
- Parameters:
thingName- The thing name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
thingId
ThingDocument.Builder thingId(String thingId)
The thing ID.
- Parameters:
thingId- The thing ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
thingTypeName
ThingDocument.Builder thingTypeName(String thingTypeName)
The thing type name.
- Parameters:
thingTypeName- The thing type name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
thingGroupNames
ThingDocument.Builder thingGroupNames(Collection<String> thingGroupNames)
Thing group names.
- Parameters:
thingGroupNames- Thing group names.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
thingGroupNames
ThingDocument.Builder thingGroupNames(String... thingGroupNames)
Thing group names.
- Parameters:
thingGroupNames- Thing group names.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
attributes
ThingDocument.Builder attributes(Map<String,String> attributes)
The attributes.
- Parameters:
attributes- The attributes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
shadow
ThingDocument.Builder shadow(String shadow)
The unnamed shadow and named shadow.
For more information about shadows, see IoT Device Shadow service.
- Parameters:
shadow- The unnamed shadow and named shadow.For more information about shadows, see IoT Device Shadow service.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
deviceDefender
ThingDocument.Builder deviceDefender(String deviceDefender)
Contains Device Defender data.
For more information about Device Defender, see Device Defender.
- Parameters:
deviceDefender- Contains Device Defender data.For more information about Device Defender, see Device Defender.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
connectivity
ThingDocument.Builder connectivity(ThingConnectivity connectivity)
Indicates whether the thing is connected to the Amazon Web Services IoT Core service.
- Parameters:
connectivity- Indicates whether the thing is connected to the Amazon Web Services IoT Core service.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
connectivity
default ThingDocument.Builder connectivity(Consumer<ThingConnectivity.Builder> connectivity)
Indicates whether the thing is connected to the Amazon Web Services IoT Core service.
This is a convenience method that creates an instance of theThingConnectivity.Builderavoiding the need to create one manually viaThingConnectivity.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toconnectivity(ThingConnectivity).- Parameters:
connectivity- a consumer that will call methods onThingConnectivity.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
connectivity(ThingConnectivity)
-
-