Interface ListContextsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<ListContextsResponse.Builder,,ListContextsResponse> NetworkManagerResponse.Builder,SdkBuilder<ListContextsResponse.Builder,,ListContextsResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
ListContextsResponse
@Mutable
@NotThreadSafe
public static interface ListContextsResponse.Builder
extends NetworkManagerResponse.Builder, SdkPojo, CopyableBuilder<ListContextsResponse.Builder,ListContextsResponse>
-
Method Summary
Modifier and TypeMethodDescriptioncontexts(Collection<ContextEntry> contexts) The context entries.contexts(Consumer<ContextEntry.Builder>... contexts) The context entries.contexts(ContextEntry... contexts) The context entries.The token for the next page of results.The version of the returned context entries.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.networkmanager.model.NetworkManagerResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
contexts
The context entries.
- Parameters:
contexts- The context entries.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
contexts
The context entries.
- Parameters:
contexts- The context entries.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
contexts
The context entries.
This is a convenience method that creates an instance of theContextEntry.Builderavoiding the need to create one manually viaContextEntry.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocontexts(List<ContextEntry>).- Parameters:
contexts- a consumer that will call methods onContextEntry.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
The token for the next page of results.
- Parameters:
nextToken- The token for the next page of results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
versionId
The version of the returned context entries. All pages of the same request return the same version.
- Parameters:
versionId- The version of the returned context entries. All pages of the same request return the same version.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-