Interface ListGatewaysResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,BackupGatewayResponse.Builder,Buildable,CopyableBuilder<ListGatewaysResponse.Builder,ListGatewaysResponse>,SdkBuilder<ListGatewaysResponse.Builder,ListGatewaysResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- ListGatewaysResponse
public static interface ListGatewaysResponse.Builder extends BackupGatewayResponse.Builder, SdkPojo, CopyableBuilder<ListGatewaysResponse.Builder,ListGatewaysResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ListGatewaysResponse.Buildergateways(Collection<Gateway> gateways)A list of your gateways.ListGatewaysResponse.Buildergateways(Consumer<Gateway.Builder>... gateways)A list of your gateways.ListGatewaysResponse.Buildergateways(Gateway... gateways)A list of your gateways.ListGatewaysResponse.BuildernextToken(String nextToken)The next item following a partial list of returned resources.-
Methods inherited from interface software.amazon.awssdk.services.backupgateway.model.BackupGatewayResponse.Builder
build, responseMetadata, responseMetadata
-
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
-
-
-
-
Method Detail
-
gateways
ListGatewaysResponse.Builder gateways(Collection<Gateway> gateways)
A list of your gateways.
- Parameters:
gateways- A list of your gateways.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
gateways
ListGatewaysResponse.Builder gateways(Gateway... gateways)
A list of your gateways.
- Parameters:
gateways- A list of your gateways.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
gateways
ListGatewaysResponse.Builder gateways(Consumer<Gateway.Builder>... gateways)
A list of your gateways.
This is a convenience method that creates an instance of theGateway.Builderavoiding the need to create one manually viaGateway.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#gateways(List.) - Parameters:
gateways- a consumer that will call methods onGateway.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#gateways(java.util.Collection)
-
nextToken
ListGatewaysResponse.Builder nextToken(String nextToken)
The next item following a partial list of returned resources. For example, if a request is made to return
maxResultsnumber of resources,NextTokenallows you to return more items in your list starting at the location pointed to by the next token.- Parameters:
nextToken- The next item following a partial list of returned resources. For example, if a request is made to returnmaxResultsnumber of resources,NextTokenallows you to return more items in your list starting at the location pointed to by the next token.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-