Interface ListDocumentVersionsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<ListDocumentVersionsResponse.Builder,
,ListDocumentVersionsResponse> SdkBuilder<ListDocumentVersionsResponse.Builder,
,ListDocumentVersionsResponse> SdkPojo
,SdkResponse.Builder
,SsmResponse.Builder
- Enclosing class:
ListDocumentVersionsResponse
public static interface ListDocumentVersionsResponse.Builder
extends SsmResponse.Builder, SdkPojo, CopyableBuilder<ListDocumentVersionsResponse.Builder,ListDocumentVersionsResponse>
-
Method Summary
Modifier and TypeMethodDescriptiondocumentVersions
(Collection<DocumentVersionInfo> documentVersions) The document versions.documentVersions
(Consumer<DocumentVersionInfo.Builder>... documentVersions) The document versions.documentVersions
(DocumentVersionInfo... documentVersions) The document versions.The token to use when requesting the next set of items.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
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
Methods inherited from interface software.amazon.awssdk.services.ssm.model.SsmResponse.Builder
build, responseMetadata, responseMetadata
-
Method Details
-
documentVersions
ListDocumentVersionsResponse.Builder documentVersions(Collection<DocumentVersionInfo> documentVersions) The document versions.
- Parameters:
documentVersions
- The document versions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
documentVersions
The document versions.
- Parameters:
documentVersions
- The document versions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
documentVersions
ListDocumentVersionsResponse.Builder documentVersions(Consumer<DocumentVersionInfo.Builder>... documentVersions) The document versions.
This is a convenience method that creates an instance of theDocumentVersionInfo.Builder
avoiding the need to create one manually viaDocumentVersionInfo.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todocumentVersions(List<DocumentVersionInfo>)
.- Parameters:
documentVersions
- a consumer that will call methods onDocumentVersionInfo.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
The token to use when requesting the next set of items. If there are no additional items to return, the string is empty.
- Parameters:
nextToken
- The token to use when requesting the next set of items. If there are no additional items to return, the string is empty.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-