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 Details

    • 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 the ThingConnectivity.Builder avoiding the need to create one manually via ThingConnectivity.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to connectivity(ThingConnectivity).

      Parameters:
      connectivity - a consumer that will call methods on ThingConnectivity.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: