@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) |
List<String> |
getPrincipals()
The principals associated with the thing.
|
int |
hashCode() |
void |
setPrincipals(Collection<String> principals)
The principals associated with the thing.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
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 String toString()
toString
in class Object
Object.toString()
public ListThingPrincipalsResult clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.