@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ListPrincipalsForPortfolioResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
ListPrincipalsForPortfolioResult() |
Modifier and Type | Method and Description |
---|---|
ListPrincipalsForPortfolioResult |
clone() |
boolean |
equals(Object obj) |
String |
getNextPageToken()
The page token to use to retrieve the next set of results.
|
List<Principal> |
getPrincipals()
The
PrincipalARN s and corresponding PrincipalType s associated with the portfolio. |
int |
hashCode() |
void |
setNextPageToken(String nextPageToken)
The page token to use to retrieve the next set of results.
|
void |
setPrincipals(Collection<Principal> principals)
The
PrincipalARN s and corresponding PrincipalType s associated with the portfolio. |
String |
toString()
Returns a string representation of this object.
|
ListPrincipalsForPortfolioResult |
withNextPageToken(String nextPageToken)
The page token to use to retrieve the next set of results.
|
ListPrincipalsForPortfolioResult |
withPrincipals(Collection<Principal> principals)
The
PrincipalARN s and corresponding PrincipalType s associated with the portfolio. |
ListPrincipalsForPortfolioResult |
withPrincipals(Principal... principals)
The
PrincipalARN s and corresponding PrincipalType s associated with the portfolio. |
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public List<Principal> getPrincipals()
The PrincipalARN
s and corresponding PrincipalType
s associated with the portfolio.
PrincipalARN
s and corresponding PrincipalType
s associated with the
portfolio.public void setPrincipals(Collection<Principal> principals)
The PrincipalARN
s and corresponding PrincipalType
s associated with the portfolio.
principals
- The PrincipalARN
s and corresponding PrincipalType
s associated with the
portfolio.public ListPrincipalsForPortfolioResult withPrincipals(Principal... principals)
The PrincipalARN
s and corresponding PrincipalType
s associated with the portfolio.
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 PrincipalARN
s and corresponding PrincipalType
s associated with the
portfolio.public ListPrincipalsForPortfolioResult withPrincipals(Collection<Principal> principals)
The PrincipalARN
s and corresponding PrincipalType
s associated with the portfolio.
principals
- The PrincipalARN
s and corresponding PrincipalType
s associated with the
portfolio.public void setNextPageToken(String nextPageToken)
The page token to use to retrieve the next set of results. If there are no additional results, this value is null.
nextPageToken
- The page token to use to retrieve the next set of results. If there are no additional results, this value
is null.public String getNextPageToken()
The page token to use to retrieve the next set of results. If there are no additional results, this value is null.
public ListPrincipalsForPortfolioResult withNextPageToken(String nextPageToken)
The page token to use to retrieve the next set of results. If there are no additional results, this value is null.
nextPageToken
- The page token to use to retrieve the next set of results. If there are no additional results, this value
is null.public String toString()
toString
in class Object
Object.toString()
public ListPrincipalsForPortfolioResult clone()