Interface ListDeploymentsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<ListDeploymentsResponse.Builder,
,ListDeploymentsResponse> M2Response.Builder
,SdkBuilder<ListDeploymentsResponse.Builder,
,ListDeploymentsResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
ListDeploymentsResponse
@Mutable
@NotThreadSafe
public static interface ListDeploymentsResponse.Builder
extends M2Response.Builder, SdkPojo, CopyableBuilder<ListDeploymentsResponse.Builder,ListDeploymentsResponse>
-
Method Summary
Modifier and TypeMethodDescriptiondeployments
(Collection<DeploymentSummary> deployments) The list of deployments that is returned.deployments
(Consumer<DeploymentSummary.Builder>... deployments) The list of deployments that is returned.deployments
(DeploymentSummary... deployments) The list of deployments that is returned.If there are more items to return, this contains a token that is passed to a subsequent call to this operation to retrieve the next set of items.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.m2.model.M2Response.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
-
deployments
The list of deployments that is returned.
- Parameters:
deployments
- The list of deployments that is returned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
deployments
The list of deployments that is returned.
- Parameters:
deployments
- The list of deployments that is returned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
deployments
The list of deployments that is returned.
This is a convenience method that creates an instance of theDeploymentSummary.Builder
avoiding the need to create one manually viaDeploymentSummary.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todeployments(List<DeploymentSummary>)
.- Parameters:
deployments
- a consumer that will call methods onDeploymentSummary.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
If there are more items to return, this contains a token that is passed to a subsequent call to this operation to retrieve the next set of items.
- Parameters:
nextToken
- If there are more items to return, this contains a token that is passed to a subsequent call to this operation to retrieve the next set of items.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-