Interface BatchCreateChannelMembershipResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,ChimeSdkMessagingResponse.Builder
,CopyableBuilder<BatchCreateChannelMembershipResponse.Builder,
,BatchCreateChannelMembershipResponse> SdkBuilder<BatchCreateChannelMembershipResponse.Builder,
,BatchCreateChannelMembershipResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
BatchCreateChannelMembershipResponse
-
Method Summary
Modifier and TypeMethodDescriptionbatchChannelMemberships
(Consumer<BatchChannelMemberships.Builder> batchChannelMemberships) The list of channel memberships in the response.batchChannelMemberships
(BatchChannelMemberships batchChannelMemberships) The list of channel memberships in the response.If the action fails for one or more of the memberships in the request, a list of the memberships is returned, along with error codes and error messages.errors
(Consumer<BatchCreateChannelMembershipError.Builder>... errors) If the action fails for one or more of the memberships in the request, a list of the memberships is returned, along with error codes and error messages.errors
(BatchCreateChannelMembershipError... errors) If the action fails for one or more of the memberships in the request, a list of the memberships is returned, along with error codes and error messages.Methods inherited from interface software.amazon.awssdk.services.chimesdkmessaging.model.ChimeSdkMessagingResponse.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
batchChannelMemberships
BatchCreateChannelMembershipResponse.Builder batchChannelMemberships(BatchChannelMemberships batchChannelMemberships) The list of channel memberships in the response.
- Parameters:
batchChannelMemberships
- The list of channel memberships in the response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
batchChannelMemberships
default BatchCreateChannelMembershipResponse.Builder batchChannelMemberships(Consumer<BatchChannelMemberships.Builder> batchChannelMemberships) The list of channel memberships in the response.
This is a convenience method that creates an instance of theBatchChannelMemberships.Builder
avoiding the need to create one manually viaBatchChannelMemberships.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tobatchChannelMemberships(BatchChannelMemberships)
.- Parameters:
batchChannelMemberships
- a consumer that will call methods onBatchChannelMemberships.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
errors
BatchCreateChannelMembershipResponse.Builder errors(Collection<BatchCreateChannelMembershipError> errors) If the action fails for one or more of the memberships in the request, a list of the memberships is returned, along with error codes and error messages.
- Parameters:
errors
- If the action fails for one or more of the memberships in the request, a list of the memberships is returned, along with error codes and error messages.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
errors
If the action fails for one or more of the memberships in the request, a list of the memberships is returned, along with error codes and error messages.
- Parameters:
errors
- If the action fails for one or more of the memberships in the request, a list of the memberships is returned, along with error codes and error messages.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
errors
BatchCreateChannelMembershipResponse.Builder errors(Consumer<BatchCreateChannelMembershipError.Builder>... errors) If the action fails for one or more of the memberships in the request, a list of the memberships is returned, along with error codes and error messages.
This is a convenience method that creates an instance of theBatchCreateChannelMembershipError.Builder
avoiding the need to create one manually viaBatchCreateChannelMembershipError.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toerrors(List<BatchCreateChannelMembershipError>)
.- Parameters:
errors
- a consumer that will call methods onBatchCreateChannelMembershipError.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-