public class DescribeThingResult extends Object implements Serializable
The output from the DescribeThing operation.
| Constructor and Description |
|---|
DescribeThingResult() |
| Modifier and Type | Method and Description |
|---|---|
DescribeThingResult |
addattributesEntry(String key,
String value)
The thing attributes.
|
DescribeThingResult |
clearattributesEntries()
Removes all the entries added into attributes.
|
boolean |
equals(Object obj) |
Map<String,String> |
getAttributes()
The thing attributes.
|
String |
getDefaultClientId()
The default client ID.
|
String |
getThingName()
The name of the thing.
|
String |
getThingTypeName()
The thing type name.
|
Long |
getVersion()
The current version of the thing record in the registry.
|
int |
hashCode() |
void |
setAttributes(Map<String,String> attributes)
The thing attributes.
|
void |
setDefaultClientId(String defaultClientId)
The default client ID.
|
void |
setThingName(String thingName)
The name of the thing.
|
void |
setThingTypeName(String thingTypeName)
The thing type name.
|
void |
setVersion(Long version)
The current version of the thing record in the registry.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DescribeThingResult |
withAttributes(Map<String,String> attributes)
The thing attributes.
|
DescribeThingResult |
withDefaultClientId(String defaultClientId)
The default client ID.
|
DescribeThingResult |
withThingName(String thingName)
The name of the thing.
|
DescribeThingResult |
withThingTypeName(String thingTypeName)
The thing type name.
|
DescribeThingResult |
withVersion(Long version)
The current version of the thing record in the registry.
|
public String getDefaultClientId()
The default client ID.
The default client ID.
public void setDefaultClientId(String defaultClientId)
The default client ID.
defaultClientId - The default client ID.
public DescribeThingResult withDefaultClientId(String defaultClientId)
The default client ID.
Returns a reference to this object so that method calls can be chained together.
defaultClientId - The default client ID.
public String getThingName()
The name of the thing.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9:_-]+
The name of the thing.
public void setThingName(String thingName)
The name of the thing.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9:_-]+
thingName - The name of the thing.
public DescribeThingResult withThingName(String thingName)
The name of the thing.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9:_-]+
thingName - The name of the thing.
public String getThingTypeName()
The thing type name.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9:_-]+
The thing type name.
public void setThingTypeName(String thingTypeName)
The thing type name.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9:_-]+
thingTypeName - The thing type name.
public DescribeThingResult withThingTypeName(String thingTypeName)
The thing type name.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9:_-]+
thingTypeName - The thing type name.
public Map<String,String> getAttributes()
The thing attributes.
The thing attributes.
public void setAttributes(Map<String,String> attributes)
The thing attributes.
attributes - The thing attributes.
public DescribeThingResult withAttributes(Map<String,String> attributes)
The thing attributes.
Returns a reference to this object so that method calls can be chained together.
attributes - The thing attributes.
public DescribeThingResult addattributesEntry(String key, String value)
The thing attributes.
The method adds a new key-value pair into attributes parameter, and returns a reference to this object so that method calls can be chained together.
key - The key of the entry to be added into attributes.value - The corresponding value of the entry to be added into
attributes.public DescribeThingResult clearattributesEntries()
Returns a reference to this object so that method calls can be chained together.
public Long getVersion()
The current version of the thing record in the registry.
To avoid unintentional changes to the information in the registry, you
can pass the version information in the expectedVersion
parameter of the UpdateThing and DeleteThing
calls.
The current version of the thing record in the registry.
To avoid unintentional changes to the information in the
registry, you can pass the version information in the
expectedVersion parameter of the
UpdateThing and DeleteThing calls.
public void setVersion(Long version)
The current version of the thing record in the registry.
To avoid unintentional changes to the information in the registry, you
can pass the version information in the expectedVersion
parameter of the UpdateThing and DeleteThing
calls.
version - The current version of the thing record in the registry.
To avoid unintentional changes to the information in the
registry, you can pass the version information in the
expectedVersion parameter of the
UpdateThing and DeleteThing calls.
public DescribeThingResult withVersion(Long version)
The current version of the thing record in the registry.
To avoid unintentional changes to the information in the registry, you
can pass the version information in the expectedVersion
parameter of the UpdateThing and DeleteThing
calls.
Returns a reference to this object so that method calls can be chained together.
version - The current version of the thing record in the registry.
To avoid unintentional changes to the information in the
registry, you can pass the version information in the
expectedVersion parameter of the
UpdateThing and DeleteThing calls.
public String toString()
toString in class ObjectObject.toString()Copyright © 2017. All rights reserved.