@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ListGrantsResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
| Constructor and Description | 
|---|
ListGrantsResult()  | 
| Modifier and Type | Method and Description | 
|---|---|
ListGrantsResult | 
clone()  | 
boolean | 
equals(Object obj)  | 
List<GrantListEntry> | 
getGrants()
 A list of grants. 
 | 
String | 
getNextMarker()
 When  
Truncated is true, this element is present and contains the value to use for the
 Marker parameter in a subsequent request. | 
Boolean | 
getTruncated()
 A flag that indicates whether there are more items in the list. 
 | 
int | 
hashCode()  | 
Boolean | 
isTruncated()
 A flag that indicates whether there are more items in the list. 
 | 
void | 
setGrants(Collection<GrantListEntry> grants)
 A list of grants. 
 | 
void | 
setNextMarker(String nextMarker)
 When  
Truncated is true, this element is present and contains the value to use for the
 Marker parameter in a subsequent request. | 
void | 
setTruncated(Boolean truncated)
 A flag that indicates whether there are more items in the list. 
 | 
String | 
toString()
Returns a string representation of this object. 
 | 
ListGrantsResult | 
withGrants(Collection<GrantListEntry> grants)
 A list of grants. 
 | 
ListGrantsResult | 
withGrants(GrantListEntry... grants)
 A list of grants. 
 | 
ListGrantsResult | 
withNextMarker(String nextMarker)
 When  
Truncated is true, this element is present and contains the value to use for the
 Marker parameter in a subsequent request. | 
ListGrantsResult | 
withTruncated(Boolean truncated)
 A flag that indicates whether there are more items in the list. 
 | 
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadatapublic List<GrantListEntry> getGrants()
A list of grants.
public void setGrants(Collection<GrantListEntry> grants)
A list of grants.
grants - A list of grants.public ListGrantsResult withGrants(GrantListEntry... grants)
A list of grants.
 NOTE: This method appends the values to the existing list (if any). Use
 setGrants(java.util.Collection) or withGrants(java.util.Collection) if you want to override the
 existing values.
 
grants - A list of grants.public ListGrantsResult withGrants(Collection<GrantListEntry> grants)
A list of grants.
grants - A list of grants.public void setNextMarker(String nextMarker)
 When Truncated is true, this element is present and contains the value to use for the
 Marker parameter in a subsequent request.
 
nextMarker - When Truncated is true, this element is present and contains the value to use for the
        Marker parameter in a subsequent request.public String getNextMarker()
 When Truncated is true, this element is present and contains the value to use for the
 Marker parameter in a subsequent request.
 
Truncated is true, this element is present and contains the value to use for the
         Marker parameter in a subsequent request.public ListGrantsResult withNextMarker(String nextMarker)
 When Truncated is true, this element is present and contains the value to use for the
 Marker parameter in a subsequent request.
 
nextMarker - When Truncated is true, this element is present and contains the value to use for the
        Marker parameter in a subsequent request.public void setTruncated(Boolean truncated)
 A flag that indicates whether there are more items in the list. When this value is true, the list in this
 response is truncated. To get more items, pass the value of the NextMarker element in thisresponse
 to the Marker parameter in a subsequent request.
 
truncated - A flag that indicates whether there are more items in the list. When this value is true, the list in this
        response is truncated. To get more items, pass the value of the NextMarker element in
        thisresponse to the Marker parameter in a subsequent request.public Boolean getTruncated()
 A flag that indicates whether there are more items in the list. When this value is true, the list in this
 response is truncated. To get more items, pass the value of the NextMarker element in thisresponse
 to the Marker parameter in a subsequent request.
 
NextMarker element in
         thisresponse to the Marker parameter in a subsequent request.public ListGrantsResult withTruncated(Boolean truncated)
 A flag that indicates whether there are more items in the list. When this value is true, the list in this
 response is truncated. To get more items, pass the value of the NextMarker element in thisresponse
 to the Marker parameter in a subsequent request.
 
truncated - A flag that indicates whether there are more items in the list. When this value is true, the list in this
        response is truncated. To get more items, pass the value of the NextMarker element in
        thisresponse to the Marker parameter in a subsequent request.public Boolean isTruncated()
 A flag that indicates whether there are more items in the list. When this value is true, the list in this
 response is truncated. To get more items, pass the value of the NextMarker element in thisresponse
 to the Marker parameter in a subsequent request.
 
NextMarker element in
         thisresponse to the Marker parameter in a subsequent request.public String toString()
toString in class ObjectObject.toString()public ListGrantsResult clone()
Copyright © 2020. All rights reserved.