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) |
Boolean |
getOverrideDynamicGroups()
Override dynamic thing groups with static thing groups when 10-group
limit is reached.
|
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() |
Boolean |
isOverrideDynamicGroups()
Override dynamic thing groups with static thing groups when 10-group
limit is reached.
|
void |
setOverrideDynamicGroups(Boolean overrideDynamicGroups)
Override dynamic thing groups with static thing groups when 10-group
limit is reached.
|
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 |
withOverrideDynamicGroups(Boolean overrideDynamicGroups)
Override dynamic thing groups with static thing groups when 10-group
limit is reached.
|
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 Boolean isOverrideDynamicGroups()
Override dynamic thing groups with static thing groups when 10-group limit is reached. If a thing belongs to 10 thing groups, and one or more of those groups are dynamic thing groups, adding a thing to a static group removes the thing from the last dynamic group.
Override dynamic thing groups with static thing groups when 10-group limit is reached. If a thing belongs to 10 thing groups, and one or more of those groups are dynamic thing groups, adding a thing to a static group removes the thing from the last dynamic group.
public Boolean getOverrideDynamicGroups()
Override dynamic thing groups with static thing groups when 10-group limit is reached. If a thing belongs to 10 thing groups, and one or more of those groups are dynamic thing groups, adding a thing to a static group removes the thing from the last dynamic group.
Override dynamic thing groups with static thing groups when 10-group limit is reached. If a thing belongs to 10 thing groups, and one or more of those groups are dynamic thing groups, adding a thing to a static group removes the thing from the last dynamic group.
public void setOverrideDynamicGroups(Boolean overrideDynamicGroups)
Override dynamic thing groups with static thing groups when 10-group limit is reached. If a thing belongs to 10 thing groups, and one or more of those groups are dynamic thing groups, adding a thing to a static group removes the thing from the last dynamic group.
overrideDynamicGroups - Override dynamic thing groups with static thing groups when 10-group limit is reached. If a thing belongs to 10 thing groups, and one or more of those groups are dynamic thing groups, adding a thing to a static group removes the thing from the last dynamic group.
public UpdateThingGroupsForThingRequest withOverrideDynamicGroups(Boolean overrideDynamicGroups)
Override dynamic thing groups with static thing groups when 10-group limit is reached. If a thing belongs to 10 thing groups, and one or more of those groups are dynamic thing groups, adding a thing to a static group removes the thing from the last dynamic group.
Returns a reference to this object so that method calls can be chained together.
overrideDynamicGroups - Override dynamic thing groups with static thing groups when 10-group limit is reached. If a thing belongs to 10 thing groups, and one or more of those groups are dynamic thing groups, adding a thing to a static group removes the thing from the last dynamic group.
public String toString()
toString in class ObjectObject.toString()Copyright © 2019. All rights reserved.