Interface ListMembershipsResponse.Builder

  • 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 the ListMembershipItem.Builder avoiding the need to create one manually via ListMembershipItem.builder() .

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to items(List<ListMembershipItem>).

      Parameters:
      items - a consumer that will call methods on ListMembershipItem.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: