Class CreateThingRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.iot.model.IotRequest
-
- software.amazon.awssdk.services.iot.model.CreateThingRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<CreateThingRequest.Builder,CreateThingRequest>
@Generated("software.amazon.awssdk:codegen") public final class CreateThingRequest extends IotRequest implements ToCopyableBuilder<CreateThingRequest.Builder,CreateThingRequest>
The input for the CreateThing operation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCreateThingRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AttributePayloadattributePayload()The attribute payload, which consists of up to three name/value pairs in a JSON document.StringbillingGroupName()The name of the billing group the thing will be added to.static CreateThingRequest.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()List<SdkField<?>>sdkFields()static Class<? extends CreateThingRequest.Builder>serializableBuilderClass()StringthingName()The name of the thing to create.StringthingTypeName()The name of the thing type associated with the new thing.CreateThingRequest.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfiguration
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
thingName
public final 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.
- Returns:
- 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.
-
thingTypeName
public final String thingTypeName()
The name of the thing type associated with the new thing.
- Returns:
- The name of the thing type associated with the new thing.
-
attributePayload
public final AttributePayload attributePayload()
The attribute payload, which consists of up to three name/value pairs in a JSON document. For example:
{\"attributes\":{\"string1\":\"string2\"}}- Returns:
- The attribute payload, which consists of up to three name/value pairs in a JSON document. For
example:
{\"attributes\":{\"string1\":\"string2\"}}
-
billingGroupName
public final String billingGroupName()
The name of the billing group the thing will be added to.
- Returns:
- The name of the billing group the thing will be added to.
-
toBuilder
public CreateThingRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<CreateThingRequest.Builder,CreateThingRequest>- Specified by:
toBuilderin classIotRequest
-
builder
public static CreateThingRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends CreateThingRequest.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsRequest
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsRequest
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkRequest
-
-