Interface ListMembershipsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<ListMembershipsResponse.Builder,,ListMembershipsResponse> SdkBuilder<ListMembershipsResponse.Builder,,ListMembershipsResponse> SdkPojo,SdkResponse.Builder,SecurityIrResponse.Builder
- Enclosing class:
ListMembershipsResponse
@Mutable
@NotThreadSafe
public static interface ListMembershipsResponse.Builder
extends SecurityIrResponse.Builder, SdkPojo, CopyableBuilder<ListMembershipsResponse.Builder,ListMembershipsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionitems(Collection<ListMembershipItem> items) Request element for ListMemberships including the accountID, membershipARN, membershipID, membershipStatus, and region for each response.items(Consumer<ListMembershipItem.Builder>... items) Request element for ListMemberships including the accountID, membershipARN, membershipID, membershipStatus, and region for each response.items(ListMembershipItem... items) Request element for ListMemberships including the accountID, membershipARN, membershipID, membershipStatus, and region for each response.An optional string that, if supplied on subsequent calls to ListMemberships, allows the API to fetch the next page of results.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods 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, sdkHttpResponseMethods inherited from interface software.amazon.awssdk.services.securityir.model.SecurityIrResponse.Builder
build, responseMetadata, responseMetadata
-
Method Details
-
nextToken
An optional string that, if supplied on subsequent calls to ListMemberships, allows the API to fetch the next page of results.
- Parameters:
nextToken- An optional string that, if supplied on subsequent calls to ListMemberships, allows the API to fetch the next page of results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
items
Request element for ListMemberships including the accountID, membershipARN, membershipID, membershipStatus, and region for each response.
- Parameters:
items- Request element for ListMemberships including the accountID, membershipARN, membershipID, membershipStatus, and region for each response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
items
Request element for ListMemberships including the accountID, membershipARN, membershipID, membershipStatus, and region for each response.
- Parameters:
items- Request element for ListMemberships including the accountID, membershipARN, membershipID, membershipStatus, and region for each response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
items
Request element for ListMemberships including the accountID, membershipARN, membershipID, membershipStatus, and region for each response.
This is a convenience method that creates an instance of theListMembershipItem.Builderavoiding the need to create one manually viaListMembershipItem.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toitems(List<ListMembershipItem>).- Parameters:
items- a consumer that will call methods onListMembershipItem.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-