public class ListGrantsResult
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
private SdkInternalList<GrantListEntry> |
grants
A list of grants.
|
private java.lang.String |
nextMarker
When
Truncated is true, this value is present and contains
the value to use for the Marker parameter in a subsequent
pagination request. |
private java.lang.Boolean |
truncated
A flag that indicates whether there are more items in the list.
|
Constructor and Description |
---|
ListGrantsResult() |
Modifier and Type | Method and Description |
---|---|
ListGrantsResult |
clone() |
boolean |
equals(java.lang.Object obj) |
java.util.List<GrantListEntry> |
getGrants()
A list of grants.
|
java.lang.String |
getNextMarker()
When
Truncated is true, this value is present and contains
the value to use for the Marker parameter in a subsequent
pagination request. |
java.lang.Boolean |
getTruncated()
A flag that indicates whether there are more items in the list.
|
int |
hashCode() |
java.lang.Boolean |
isTruncated()
A flag that indicates whether there are more items in the list.
|
void |
setGrants(java.util.Collection<GrantListEntry> grants)
A list of grants.
|
void |
setNextMarker(java.lang.String nextMarker)
When
Truncated is true, this value is present and contains
the value to use for the Marker parameter in a subsequent
pagination request. |
void |
setTruncated(java.lang.Boolean truncated)
A flag that indicates whether there are more items in the list.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ListGrantsResult |
withGrants(java.util.Collection<GrantListEntry> grants)
A list of grants.
|
ListGrantsResult |
withGrants(GrantListEntry... grants)
A list of grants.
|
ListGrantsResult |
withNextMarker(java.lang.String nextMarker)
When
Truncated is true, this value is present and contains
the value to use for the Marker parameter in a subsequent
pagination request. |
ListGrantsResult |
withTruncated(java.lang.Boolean truncated)
A flag that indicates whether there are more items in the list.
|
private SdkInternalList<GrantListEntry> grants
A list of grants.
private java.lang.String nextMarker
When Truncated
is true, this value is present and contains
the value to use for the Marker
parameter in a subsequent
pagination request.
private java.lang.Boolean truncated
A flag that indicates whether there are more items in the list. If your
results were truncated, you can use the Marker
parameter to
make a subsequent pagination request to retrieve more items in the list.
public java.util.List<GrantListEntry> getGrants()
A list of grants.
public void setGrants(java.util.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(java.util.Collection<GrantListEntry> grants)
A list of grants.
grants
- A list of grants.public void setNextMarker(java.lang.String nextMarker)
When Truncated
is true, this value is present and contains
the value to use for the Marker
parameter in a subsequent
pagination request.
nextMarker
- When Truncated
is true, this value is present and
contains the value to use for the Marker
parameter in
a subsequent pagination request.public java.lang.String getNextMarker()
When Truncated
is true, this value is present and contains
the value to use for the Marker
parameter in a subsequent
pagination request.
Truncated
is true, this value is present and
contains the value to use for the Marker
parameter
in a subsequent pagination request.public ListGrantsResult withNextMarker(java.lang.String nextMarker)
When Truncated
is true, this value is present and contains
the value to use for the Marker
parameter in a subsequent
pagination request.
nextMarker
- When Truncated
is true, this value is present and
contains the value to use for the Marker
parameter in
a subsequent pagination request.public void setTruncated(java.lang.Boolean truncated)
A flag that indicates whether there are more items in the list. If your
results were truncated, you can use the Marker
parameter to
make a subsequent pagination request to retrieve more items in the list.
truncated
- A flag that indicates whether there are more items in the list. If
your results were truncated, you can use the Marker
parameter to make a subsequent pagination request to retrieve more
items in the list.public java.lang.Boolean getTruncated()
A flag that indicates whether there are more items in the list. If your
results were truncated, you can use the Marker
parameter to
make a subsequent pagination request to retrieve more items in the list.
Marker
parameter to make a subsequent pagination
request to retrieve more items in the list.public ListGrantsResult withTruncated(java.lang.Boolean truncated)
A flag that indicates whether there are more items in the list. If your
results were truncated, you can use the Marker
parameter to
make a subsequent pagination request to retrieve more items in the list.
truncated
- A flag that indicates whether there are more items in the list. If
your results were truncated, you can use the Marker
parameter to make a subsequent pagination request to retrieve more
items in the list.public java.lang.Boolean isTruncated()
A flag that indicates whether there are more items in the list. If your
results were truncated, you can use the Marker
parameter to
make a subsequent pagination request to retrieve more items in the list.
Marker
parameter to make a subsequent pagination
request to retrieve more items in the list.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public ListGrantsResult clone()
clone
in class java.lang.Object