Interface ListGrantsResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<ListGrantsResponse.Builder,ListGrantsResponse>,KmsResponse.Builder,SdkBuilder<ListGrantsResponse.Builder,ListGrantsResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- ListGrantsResponse
public static interface ListGrantsResponse.Builder extends KmsResponse.Builder, SdkPojo, CopyableBuilder<ListGrantsResponse.Builder,ListGrantsResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ListGrantsResponse.Buildergrants(Collection<GrantListEntry> grants)A list of grants.ListGrantsResponse.Buildergrants(Consumer<GrantListEntry.Builder>... grants)A list of grants.ListGrantsResponse.Buildergrants(GrantListEntry... grants)A list of grants.ListGrantsResponse.BuildernextMarker(String nextMarker)WhenTruncatedis true, this element is present and contains the value to use for theMarkerparameter in a subsequent request.ListGrantsResponse.Buildertruncated(Boolean truncated)A flag that indicates whether there are more items in the list.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.kms.model.KmsResponse.Builder
build, responseMetadata, responseMetadata
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
grants
ListGrantsResponse.Builder grants(Collection<GrantListEntry> grants)
A list of grants.
- Parameters:
grants- A list of grants.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
grants
ListGrantsResponse.Builder grants(GrantListEntry... grants)
A list of grants.
- Parameters:
grants- A list of grants.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
grants
ListGrantsResponse.Builder grants(Consumer<GrantListEntry.Builder>... grants)
A list of grants.
This is a convenience method that creates an instance of theGrantListEntry.Builderavoiding the need to create one manually viaGrantListEntry.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#grants(List.) - Parameters:
grants- a consumer that will call methods onGrantListEntry.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#grants(java.util.Collection)
-
nextMarker
ListGrantsResponse.Builder nextMarker(String nextMarker)
When
Truncatedis true, this element is present and contains the value to use for theMarkerparameter in a subsequent request.- Parameters:
nextMarker- WhenTruncatedis true, this element is present and contains the value to use for theMarkerparameter in a subsequent request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
truncated
ListGrantsResponse.Builder truncated(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
NextMarkerelement in thisresponse to theMarkerparameter in a subsequent request.- Parameters:
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 theNextMarkerelement in thisresponse to theMarkerparameter in a subsequent request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-