Interface ListKeysResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<ListKeysResponse.Builder,ListKeysResponse>
,KmsResponse.Builder
,SdkBuilder<ListKeysResponse.Builder,ListKeysResponse>
,SdkPojo
,SdkResponse.Builder
- Enclosing class:
- ListKeysResponse
public static interface ListKeysResponse.Builder extends KmsResponse.Builder, SdkPojo, CopyableBuilder<ListKeysResponse.Builder,ListKeysResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ListKeysResponse.Builder
keys(Collection<KeyListEntry> keys)
A list of KMS keys.ListKeysResponse.Builder
keys(Consumer<KeyListEntry.Builder>... keys)
A list of KMS keys.ListKeysResponse.Builder
keys(KeyListEntry... keys)
A list of KMS keys.ListKeysResponse.Builder
nextMarker(String nextMarker)
WhenTruncated
is true, this element is present and contains the value to use for theMarker
parameter in a subsequent request.ListKeysResponse.Builder
truncated(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
-
keys
ListKeysResponse.Builder keys(Collection<KeyListEntry> keys)
A list of KMS keys.
- Parameters:
keys
- A list of KMS keys.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
keys
ListKeysResponse.Builder keys(KeyListEntry... keys)
A list of KMS keys.
- Parameters:
keys
- A list of KMS keys.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
keys
ListKeysResponse.Builder keys(Consumer<KeyListEntry.Builder>... keys)
A list of KMS keys.
This is a convenience method that creates an instance of theKeyListEntry.Builder
avoiding the need to create one manually viaKeyListEntry.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed to#keys(List
.) - Parameters:
keys
- a consumer that will call methods onKeyListEntry.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#keys(java.util.Collection
)
-
nextMarker
ListKeysResponse.Builder nextMarker(String nextMarker)
When
Truncated
is true, this element is present and contains the value to use for theMarker
parameter in a subsequent request.- Parameters:
nextMarker
- WhenTruncated
is true, this element is present and contains the value to use for theMarker
parameter in a subsequent request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
truncated
ListKeysResponse.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
NextMarker
element in thisresponse to theMarker
parameter 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 theNextMarker
element in thisresponse to theMarker
parameter in a subsequent request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-