Package com.amazonaws.services.iot.model
Class ListThingPrincipalsResult
- java.lang.Object
-
- com.amazonaws.services.iot.model.ListThingPrincipalsResult
-
- All Implemented Interfaces:
Serializable,Cloneable
public class ListThingPrincipalsResult extends Object implements Serializable, Cloneable
The output from the ListThingPrincipals operation.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ListThingPrincipalsResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ListThingPrincipalsResultclone()booleanequals(Object obj)List<String>getPrincipals()The principals.inthashCode()voidsetPrincipals(Collection<String> principals)The principals.StringtoString()Returns a string representation of this object; useful for testing and debugging.ListThingPrincipalsResultwithPrincipals(String... principals)The principals.ListThingPrincipalsResultwithPrincipals(Collection<String> principals)The principals.
-
-
-
Method Detail
-
setPrincipals
public void setPrincipals(Collection<String> principals)
The principals.
- Parameters:
principals- The principals.
-
withPrincipals
public ListThingPrincipalsResult withPrincipals(String... principals)
The principals.
NOTE: This method appends the values to the existing list (if any). Use
setPrincipals(java.util.Collection)orwithPrincipals(java.util.Collection)if you want to override the existing values.- Parameters:
principals- The principals.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withPrincipals
public ListThingPrincipalsResult withPrincipals(Collection<String> principals)
The principals.
- Parameters:
principals- The principals.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ListThingPrincipalsResult clone()
-
-