@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ListEntitlementsResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
ListEntitlementsResult() |
Modifier and Type | Method and Description |
---|---|
ListEntitlementsResult |
clone() |
boolean |
equals(Object obj) |
List<ListedEntitlement> |
getEntitlements()
A list of entitlements that have been granted to you from other AWS accounts.
|
String |
getNextToken()
The token that identifies which batch of results that you want to see.
|
int |
hashCode() |
void |
setEntitlements(Collection<ListedEntitlement> entitlements)
A list of entitlements that have been granted to you from other AWS accounts.
|
void |
setNextToken(String nextToken)
The token that identifies which batch of results that you want to see.
|
String |
toString()
Returns a string representation of this object.
|
ListEntitlementsResult |
withEntitlements(Collection<ListedEntitlement> entitlements)
A list of entitlements that have been granted to you from other AWS accounts.
|
ListEntitlementsResult |
withEntitlements(ListedEntitlement... entitlements)
A list of entitlements that have been granted to you from other AWS accounts.
|
ListEntitlementsResult |
withNextToken(String nextToken)
The token that identifies which batch of results that you want to see.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public List<ListedEntitlement> getEntitlements()
public void setEntitlements(Collection<ListedEntitlement> entitlements)
entitlements
- A list of entitlements that have been granted to you from other AWS accounts.public ListEntitlementsResult withEntitlements(ListedEntitlement... entitlements)
NOTE: This method appends the values to the existing list (if any). Use
setEntitlements(java.util.Collection)
or withEntitlements(java.util.Collection)
if you want to
override the existing values.
entitlements
- A list of entitlements that have been granted to you from other AWS accounts.public ListEntitlementsResult withEntitlements(Collection<ListedEntitlement> entitlements)
entitlements
- A list of entitlements that have been granted to you from other AWS accounts.public void setNextToken(String nextToken)
nextToken
- The token that identifies which batch of results that you want to see. For example, you submit a
ListEntitlements request with MaxResults set at 5. The service returns the first batch of results (up to
5) and a NextToken value. To see the next batch of results, you can submit the ListEntitlements request a
second time and specify the NextToken value.public String getNextToken()
public ListEntitlementsResult withNextToken(String nextToken)
nextToken
- The token that identifies which batch of results that you want to see. For example, you submit a
ListEntitlements request with MaxResults set at 5. The service returns the first batch of results (up to
5) and a NextToken value. To see the next batch of results, you can submit the ListEntitlements request a
second time and specify the NextToken value.public String toString()
toString
in class Object
Object.toString()
public ListEntitlementsResult clone()