Interface CreateThingRequest.Builder

All Superinterfaces:
AwsRequest.Builder, Buildable, CopyableBuilder<CreateThingRequest.Builder,CreateThingRequest>, IotRequest.Builder, SdkBuilder<CreateThingRequest.Builder,CreateThingRequest>, SdkPojo, SdkRequest.Builder
Enclosing class:
CreateThingRequest

public static interface CreateThingRequest.Builder extends IotRequest.Builder, SdkPojo, CopyableBuilder<CreateThingRequest.Builder,CreateThingRequest>
  • Method Details

    • thingName

      CreateThingRequest.Builder thingName(String thingName)

      The name of the thing to create.

      You can't change a thing's name after you create it. To change a thing's name, you must create a new thing, give it the new name, and then delete the old thing.

      Parameters:
      thingName - The name of the thing to create.

      You can't change a thing's name after you create it. To change a thing's name, you must create a new thing, give it the new name, and then delete the old thing.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • thingTypeName

      CreateThingRequest.Builder thingTypeName(String thingTypeName)

      The name of the thing type associated with the new thing.

      Parameters:
      thingTypeName - The name of the thing type associated with the new thing.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • attributePayload

      CreateThingRequest.Builder attributePayload(AttributePayload attributePayload)

      The attribute payload, which consists of up to three name/value pairs in a JSON document. For example:

      {\"attributes\":{\"string1\":\"string2\"}}

      Parameters:
      attributePayload - The attribute payload, which consists of up to three name/value pairs in a JSON document. For example:

      {\"attributes\":{\"string1\":\"string2\"}}

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • attributePayload

      default CreateThingRequest.Builder attributePayload(Consumer<AttributePayload.Builder> attributePayload)

      The attribute payload, which consists of up to three name/value pairs in a JSON document. For example:

      {\"attributes\":{\"string1\":\"string2\"}}

      This is a convenience method that creates an instance of the AttributePayload.Builder avoiding the need to create one manually via AttributePayload.builder().

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

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

      CreateThingRequest.Builder billingGroupName(String billingGroupName)

      The name of the billing group the thing will be added to.

      Parameters:
      billingGroupName - The name of the billing group the thing will be added to.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • overrideConfiguration

      CreateThingRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.