Interface ListPaymentSessionsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,BedrockAgentCoreResponse.Builder,Buildable,CopyableBuilder<ListPaymentSessionsResponse.Builder,,ListPaymentSessionsResponse> SdkBuilder<ListPaymentSessionsResponse.Builder,,ListPaymentSessionsResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
- ListPaymentSessionsResponse
@Mutable
@NotThreadSafe
public static interface ListPaymentSessionsResponse.Builder
extends BedrockAgentCoreResponse.Builder, SdkPojo, CopyableBuilder<ListPaymentSessionsResponse.Builder,ListPaymentSessionsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionToken for pagination to retrieve the next set of results.paymentSessions(Collection<PaymentSessionSummary> paymentSessions) List of payment session summaries matching the request criteria.paymentSessions(Consumer<PaymentSessionSummary.Builder>... paymentSessions) List of payment session summaries matching the request criteria.paymentSessions(PaymentSessionSummary... paymentSessions) List of payment session summaries matching the request criteria.Methods inherited from interface software.amazon.awssdk.services.bedrockagentcore.model.BedrockAgentCoreResponse.Builder
build, responseMetadata, responseMetadataMethods 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, sdkHttpResponse
-
Method Details
-
paymentSessions
ListPaymentSessionsResponse.Builder paymentSessions(Collection<PaymentSessionSummary> paymentSessions) List of payment session summaries matching the request criteria.
- Parameters:
paymentSessions- List of payment session summaries matching the request criteria.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
paymentSessions
List of payment session summaries matching the request criteria.
- Parameters:
paymentSessions- List of payment session summaries matching the request criteria.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
paymentSessions
ListPaymentSessionsResponse.Builder paymentSessions(Consumer<PaymentSessionSummary.Builder>... paymentSessions) List of payment session summaries matching the request criteria.
This is a convenience method that creates an instance of thePaymentSessionSummary.Builderavoiding the need to create one manually viaPaymentSessionSummary.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topaymentSessions(List<PaymentSessionSummary>).- Parameters:
paymentSessions- a consumer that will call methods onPaymentSessionSummary.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
Token for pagination to retrieve the next set of results.
- Parameters:
nextToken- Token for pagination to retrieve the next set of results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-