@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ListThingPrincipalsResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
The output from the ListThingPrincipals operation.
Constructor and Description |
---|
ListThingPrincipalsResult() |
Modifier and Type | Method and Description |
---|---|
ListThingPrincipalsResult |
clone() |
boolean |
equals(Object obj) |
String |
getNextToken()
The token to use to get the next set of results, or null if there are no additional results.
|
List<String> |
getPrincipals()
The principals associated with the thing.
|
int |
hashCode() |
void |
setNextToken(String nextToken)
The token to use to get the next set of results, or null if there are no additional results.
|
void |
setPrincipals(Collection<String> principals)
The principals associated with the thing.
|
String |
toString()
Returns a string representation of this object.
|
ListThingPrincipalsResult |
withNextToken(String nextToken)
The token to use to get the next set of results, or null if there are no additional results.
|
ListThingPrincipalsResult |
withPrincipals(Collection<String> principals)
The principals associated with the thing.
|
ListThingPrincipalsResult |
withPrincipals(String... principals)
The principals associated with the thing.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public List<String> getPrincipals()
The principals associated with the thing.
public void setPrincipals(Collection<String> principals)
The principals associated with the thing.
principals
- The principals associated with the thing.public ListThingPrincipalsResult withPrincipals(String... principals)
The principals associated with the thing.
NOTE: This method appends the values to the existing list (if any). Use
setPrincipals(java.util.Collection)
or withPrincipals(java.util.Collection)
if you want to
override the existing values.
principals
- The principals associated with the thing.public ListThingPrincipalsResult withPrincipals(Collection<String> principals)
The principals associated with the thing.
principals
- The principals associated with the thing.public void setNextToken(String nextToken)
The token to use to get the next set of results, or null if there are no additional results.
nextToken
- The token to use to get the next set of results, or null if there are no additional results.public String getNextToken()
The token to use to get the next set of results, or null if there are no additional results.
public ListThingPrincipalsResult withNextToken(String nextToken)
The token to use to get the next set of results, or null if there are no additional results.
nextToken
- The token to use to get the next set of results, or null if there are no additional results.public String toString()
toString
in class Object
Object.toString()
public ListThingPrincipalsResult clone()