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 ListThingPrincipalsResult
clone()
boolean
equals(Object obj)
List<String>
getPrincipals()
The principals.int
hashCode()
void
setPrincipals(Collection<String> principals)
The principals.String
toString()
Returns a string representation of this object; useful for testing and debugging.ListThingPrincipalsResult
withPrincipals(String... principals)
The principals.ListThingPrincipalsResult
withPrincipals(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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ListThingPrincipalsResult clone()
-
-