Interface ListResourceAssociationsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<ListResourceAssociationsResponse.Builder,,ListResourceAssociationsResponse> NetworkSecurityManagerResponse.Builder,SdkBuilder<ListResourceAssociationsResponse.Builder,,ListResourceAssociationsResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
ListResourceAssociationsResponse
@Mutable
@NotThreadSafe
public static interface ListResourceAssociationsResponse.Builder
extends NetworkSecurityManagerResponse.Builder, SdkPojo, CopyableBuilder<ListResourceAssociationsResponse.Builder,ListResourceAssociationsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionThe token for the next page of results.resourceAssociations(Collection<ResourceAssociation> resourceAssociations) The list of resource associations.resourceAssociations(Consumer<ResourceAssociation.Builder>... resourceAssociations) The list of resource associations.resourceAssociations(ResourceAssociation... resourceAssociations) The list of resource associations.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.networksecuritymanager.model.NetworkSecurityManagerResponse.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
-
nextToken
The token for the next page of results. To retrieve the next page, call the operation again and provide this value. When there are no more results, this value is null.
- Parameters:
nextToken- The token for the next page of results. To retrieve the next page, call the operation again and provide this value. When there are no more results, this value is null.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceAssociations
ListResourceAssociationsResponse.Builder resourceAssociations(Collection<ResourceAssociation> resourceAssociations) The list of resource associations.
- Parameters:
resourceAssociations- The list of resource associations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceAssociations
ListResourceAssociationsResponse.Builder resourceAssociations(ResourceAssociation... resourceAssociations) The list of resource associations.
- Parameters:
resourceAssociations- The list of resource associations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceAssociations
ListResourceAssociationsResponse.Builder resourceAssociations(Consumer<ResourceAssociation.Builder>... resourceAssociations) The list of resource associations.
This is a convenience method that creates an instance of theResourceAssociation.Builderavoiding the need to create one manually viaResourceAssociation.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toresourceAssociations(List<ResourceAssociation>).- Parameters:
resourceAssociations- a consumer that will call methods onResourceAssociation.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-