Class UpdateThingShadowRequest
- java.lang.Object
-
- software.amazon.awssdk.aws.greengrass.model.UpdateThingShadowRequest
-
- All Implemented Interfaces:
EventStreamJsonMessage
public class UpdateThingShadowRequest extends Object implements EventStreamJsonMessage
-
-
Field Summary
Fields Modifier and Type Field Description static StringAPPLICATION_MODEL_TYPEstatic UpdateThingShadowRequestVOID
-
Constructor Summary
Constructors Constructor Description UpdateThingShadowRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object rhs)StringgetApplicationModelType()Returns the named model type.byte[]getPayload()The request state document as a JSON encoded blob.StringgetShadowName()The name of the shadow.StringgetThingName()The name of the thing.inthashCode()voidsetPayload(byte[] payload)The request state document as a JSON encoded blob.voidsetShadowName(String shadowName)The name of the shadow.voidsetThingName(String thingName)The name of the thing.UpdateThingShadowRequestwithPayload(byte[] payload)The request state document as a JSON encoded blob.UpdateThingShadowRequestwithShadowName(String shadowName)The name of the shadow.UpdateThingShadowRequestwithThingName(String thingName)The name of the thing.-
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage
fromJson, isVoid, postFromJson, toPayload
-
-
-
-
Field Detail
-
APPLICATION_MODEL_TYPE
public static final String APPLICATION_MODEL_TYPE
- See Also:
- Constant Field Values
-
VOID
public static final UpdateThingShadowRequest VOID
-
-
Method Detail
-
getThingName
public String getThingName()
The name of the thing.
-
setThingName
public void setThingName(String thingName)
The name of the thing.
-
withThingName
public UpdateThingShadowRequest withThingName(String thingName)
The name of the thing.
-
getShadowName
public String getShadowName()
The name of the shadow. To specify the thing's classic shadow, set this parameter to an empty string ("").
-
setShadowName
public void setShadowName(String shadowName)
The name of the shadow. To specify the thing's classic shadow, set this parameter to an empty string ("").
-
withShadowName
public UpdateThingShadowRequest withShadowName(String shadowName)
The name of the shadow. To specify the thing's classic shadow, set this parameter to an empty string ("").
-
getPayload
public byte[] getPayload()
The request state document as a JSON encoded blob.
-
setPayload
public void setPayload(byte[] payload)
The request state document as a JSON encoded blob.
-
withPayload
public UpdateThingShadowRequest withPayload(byte[] payload)
The request state document as a JSON encoded blob.
-
getApplicationModelType
public String getApplicationModelType()
Description copied from interface:EventStreamJsonMessageReturns the named model type. May be used for a header.- Specified by:
getApplicationModelTypein interfaceEventStreamJsonMessage- Returns:
- the named model type
-
-