Interface ListComponentVersionsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<ListComponentVersionsResponse.Builder,
,ListComponentVersionsResponse> GreengrassV2Response.Builder
,SdkBuilder<ListComponentVersionsResponse.Builder,
,ListComponentVersionsResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
ListComponentVersionsResponse
@Mutable
@NotThreadSafe
public static interface ListComponentVersionsResponse.Builder
extends GreengrassV2Response.Builder, SdkPojo, CopyableBuilder<ListComponentVersionsResponse.Builder,ListComponentVersionsResponse>
-
Method Summary
Modifier and TypeMethodDescriptioncomponentVersions
(Collection<ComponentVersionListItem> componentVersions) A list of versions that exist for the component.componentVersions
(Consumer<ComponentVersionListItem.Builder>... componentVersions) A list of versions that exist for the component.componentVersions
(ComponentVersionListItem... componentVersions) A list of versions that exist for the component.The token for the next set of results, or null if there are no additional results.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.greengrassv2.model.GreengrassV2Response.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, sdkFieldNameToField, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
componentVersions
ListComponentVersionsResponse.Builder componentVersions(Collection<ComponentVersionListItem> componentVersions) A list of versions that exist for the component.
- Parameters:
componentVersions
- A list of versions that exist for the component.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
componentVersions
ListComponentVersionsResponse.Builder componentVersions(ComponentVersionListItem... componentVersions) A list of versions that exist for the component.
- Parameters:
componentVersions
- A list of versions that exist for the component.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
componentVersions
ListComponentVersionsResponse.Builder componentVersions(Consumer<ComponentVersionListItem.Builder>... componentVersions) A list of versions that exist for the component.
This is a convenience method that creates an instance of theComponentVersionListItem.Builder
avoiding the need to create one manually viaComponentVersionListItem.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocomponentVersions(List<ComponentVersionListItem>)
.- Parameters:
componentVersions
- a consumer that will call methods onComponentVersionListItem.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
The token for the next set of results, or null if there are no additional results.
- Parameters:
nextToken
- The token for the next set of results, or null if there are no additional results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-