Interface GetRouteServerAssociationsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetRouteServerAssociationsResponse.Builder,,GetRouteServerAssociationsResponse> Ec2Response.Builder,SdkBuilder<GetRouteServerAssociationsResponse.Builder,,GetRouteServerAssociationsResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetRouteServerAssociationsResponse
@Mutable
@NotThreadSafe
public static interface GetRouteServerAssociationsResponse.Builder
extends Ec2Response.Builder, SdkPojo, CopyableBuilder<GetRouteServerAssociationsResponse.Builder,GetRouteServerAssociationsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionrouteServerAssociations(Collection<RouteServerAssociation> routeServerAssociations) Information about the associations for the specified route server.routeServerAssociations(Consumer<RouteServerAssociation.Builder>... routeServerAssociations) Information about the associations for the specified route server.routeServerAssociations(RouteServerAssociation... routeServerAssociations) Information about the associations for the specified route server.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.ec2.model.Ec2Response.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
-
routeServerAssociations
GetRouteServerAssociationsResponse.Builder routeServerAssociations(Collection<RouteServerAssociation> routeServerAssociations) Information about the associations for the specified route server.
- Parameters:
routeServerAssociations- Information about the associations for the specified route server.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
routeServerAssociations
GetRouteServerAssociationsResponse.Builder routeServerAssociations(RouteServerAssociation... routeServerAssociations) Information about the associations for the specified route server.
- Parameters:
routeServerAssociations- Information about the associations for the specified route server.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
routeServerAssociations
GetRouteServerAssociationsResponse.Builder routeServerAssociations(Consumer<RouteServerAssociation.Builder>... routeServerAssociations) Information about the associations for the specified route server.
This is a convenience method that creates an instance of theRouteServerAssociation.Builderavoiding the need to create one manually viaRouteServerAssociation.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed torouteServerAssociations(List<RouteServerAssociation>).- Parameters:
routeServerAssociations- a consumer that will call methods onRouteServerAssociation.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-