public class UpdateThingGroupsForThingRequest extends AmazonWebServiceRequest implements Serializable
Updates the groups to which the thing belongs.
| Constructor and Description |
|---|
UpdateThingGroupsForThingRequest() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
List<String> |
getThingGroupsToAdd()
The groups to which the thing will be added.
|
List<String> |
getThingGroupsToRemove()
The groups from which the thing will be removed.
|
String |
getThingName()
The thing whose group memberships will be updated.
|
int |
hashCode() |
void |
setThingGroupsToAdd(Collection<String> thingGroupsToAdd)
The groups to which the thing will be added.
|
void |
setThingGroupsToRemove(Collection<String> thingGroupsToRemove)
The groups from which the thing will be removed.
|
void |
setThingName(String thingName)
The thing whose group memberships will be updated.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
UpdateThingGroupsForThingRequest |
withThingGroupsToAdd(Collection<String> thingGroupsToAdd)
The groups to which the thing will be added.
|
UpdateThingGroupsForThingRequest |
withThingGroupsToAdd(String... thingGroupsToAdd)
The groups to which the thing will be added.
|
UpdateThingGroupsForThingRequest |
withThingGroupsToRemove(Collection<String> thingGroupsToRemove)
The groups from which the thing will be removed.
|
UpdateThingGroupsForThingRequest |
withThingGroupsToRemove(String... thingGroupsToRemove)
The groups from which the thing will be removed.
|
UpdateThingGroupsForThingRequest |
withThingName(String thingName)
The thing whose group memberships will be updated.
|
clone, copyBaseTo, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic String getThingName()
The thing whose group memberships will be updated.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9:_-]+
The thing whose group memberships will be updated.
public void setThingName(String thingName)
The thing whose group memberships will be updated.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9:_-]+
thingName - The thing whose group memberships will be updated.
public UpdateThingGroupsForThingRequest withThingName(String thingName)
The thing whose group memberships will be updated.
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 thing whose group memberships will be updated.
public List<String> getThingGroupsToAdd()
The groups to which the thing will be added.
The groups to which the thing will be added.
public void setThingGroupsToAdd(Collection<String> thingGroupsToAdd)
The groups to which the thing will be added.
thingGroupsToAdd - The groups to which the thing will be added.
public UpdateThingGroupsForThingRequest withThingGroupsToAdd(String... thingGroupsToAdd)
The groups to which the thing will be added.
Returns a reference to this object so that method calls can be chained together.
thingGroupsToAdd - The groups to which the thing will be added.
public UpdateThingGroupsForThingRequest withThingGroupsToAdd(Collection<String> thingGroupsToAdd)
The groups to which the thing will be added.
Returns a reference to this object so that method calls can be chained together.
thingGroupsToAdd - The groups to which the thing will be added.
public List<String> getThingGroupsToRemove()
The groups from which the thing will be removed.
The groups from which the thing will be removed.
public void setThingGroupsToRemove(Collection<String> thingGroupsToRemove)
The groups from which the thing will be removed.
thingGroupsToRemove - The groups from which the thing will be removed.
public UpdateThingGroupsForThingRequest withThingGroupsToRemove(String... thingGroupsToRemove)
The groups from which the thing will be removed.
Returns a reference to this object so that method calls can be chained together.
thingGroupsToRemove - The groups from which the thing will be removed.
public UpdateThingGroupsForThingRequest withThingGroupsToRemove(Collection<String> thingGroupsToRemove)
The groups from which the thing will be removed.
Returns a reference to this object so that method calls can be chained together.
thingGroupsToRemove - The groups from which the thing will be removed.
public String toString()
toString in class ObjectObject.toString()Copyright © 2018. All rights reserved.