Interface BatchCreateRelatedItemResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,ConnectCasesResponse.Builder,CopyableBuilder<BatchCreateRelatedItemResponse.Builder,,BatchCreateRelatedItemResponse> SdkBuilder<BatchCreateRelatedItemResponse.Builder,,BatchCreateRelatedItemResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
BatchCreateRelatedItemResponse
-
Method Summary
Modifier and TypeMethodDescriptionfailedItems(Collection<BatchCreateRelatedItemErrorEntry> failedItems) The list of related items that were not created.failedItems(Consumer<BatchCreateRelatedItemErrorEntry.Builder>... failedItems) The list of related items that were not created.failedItems(BatchCreateRelatedItemErrorEntry... failedItems) The list of related items that were not created.successfulItems(Collection<BatchCreateRelatedItemSuccessEntry> successfulItems) The list of related items that were successfully created and associated with their cases.successfulItems(Consumer<BatchCreateRelatedItemSuccessEntry.Builder>... successfulItems) The list of related items that were successfully created and associated with their cases.successfulItems(BatchCreateRelatedItemSuccessEntry... successfulItems) The list of related items that were successfully created and associated with their cases.Methods inherited from interface software.amazon.awssdk.services.connectcases.model.ConnectCasesResponse.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
-
successfulItems
BatchCreateRelatedItemResponse.Builder successfulItems(Collection<BatchCreateRelatedItemSuccessEntry> successfulItems) The list of related items that were successfully created and associated with their cases.
- Parameters:
successfulItems- The list of related items that were successfully created and associated with their cases.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
successfulItems
BatchCreateRelatedItemResponse.Builder successfulItems(BatchCreateRelatedItemSuccessEntry... successfulItems) The list of related items that were successfully created and associated with their cases.
- Parameters:
successfulItems- The list of related items that were successfully created and associated with their cases.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
successfulItems
BatchCreateRelatedItemResponse.Builder successfulItems(Consumer<BatchCreateRelatedItemSuccessEntry.Builder>... successfulItems) The list of related items that were successfully created and associated with their cases.
This is a convenience method that creates an instance of theBatchCreateRelatedItemSuccessEntry.Builderavoiding the need to create one manually viaBatchCreateRelatedItemSuccessEntry.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosuccessfulItems(List<BatchCreateRelatedItemSuccessEntry>).- Parameters:
successfulItems- a consumer that will call methods onBatchCreateRelatedItemSuccessEntry.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
failedItems
BatchCreateRelatedItemResponse.Builder failedItems(Collection<BatchCreateRelatedItemErrorEntry> failedItems) The list of related items that were not created. Each entry includes an error code and message. Possible error codes include:
-
CASE_NOT_FOUND- No case exists with the specified case ID. -
VALIDATION_ERROR- The request contains invalid input. -
CONFLICT- Another operation is in progress on the case, such as a concurrent update or a merge of the case into another case. -
THROTTLED- The request rate exceeded the allowed limit. -
ACCESS_DENIED- The caller lacks permission to perform the operation. -
SERVICE_QUOTA_EXCEEDED- The request exceeded a service quota. -
DOMAIN_NOT_FOUND- The case domain was deleted while the request was being processed. -
INTERNAL_ERROR- An unexpected error occurred on the server.
- Parameters:
failedItems- The list of related items that were not created. Each entry includes an error code and message. Possible error codes include:-
CASE_NOT_FOUND- No case exists with the specified case ID. -
VALIDATION_ERROR- The request contains invalid input. -
CONFLICT- Another operation is in progress on the case, such as a concurrent update or a merge of the case into another case. -
THROTTLED- The request rate exceeded the allowed limit. -
ACCESS_DENIED- The caller lacks permission to perform the operation. -
SERVICE_QUOTA_EXCEEDED- The request exceeded a service quota. -
DOMAIN_NOT_FOUND- The case domain was deleted while the request was being processed. -
INTERNAL_ERROR- An unexpected error occurred on the server.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
failedItems
The list of related items that were not created. Each entry includes an error code and message. Possible error codes include:
-
CASE_NOT_FOUND- No case exists with the specified case ID. -
VALIDATION_ERROR- The request contains invalid input. -
CONFLICT- Another operation is in progress on the case, such as a concurrent update or a merge of the case into another case. -
THROTTLED- The request rate exceeded the allowed limit. -
ACCESS_DENIED- The caller lacks permission to perform the operation. -
SERVICE_QUOTA_EXCEEDED- The request exceeded a service quota. -
DOMAIN_NOT_FOUND- The case domain was deleted while the request was being processed. -
INTERNAL_ERROR- An unexpected error occurred on the server.
- Parameters:
failedItems- The list of related items that were not created. Each entry includes an error code and message. Possible error codes include:-
CASE_NOT_FOUND- No case exists with the specified case ID. -
VALIDATION_ERROR- The request contains invalid input. -
CONFLICT- Another operation is in progress on the case, such as a concurrent update or a merge of the case into another case. -
THROTTLED- The request rate exceeded the allowed limit. -
ACCESS_DENIED- The caller lacks permission to perform the operation. -
SERVICE_QUOTA_EXCEEDED- The request exceeded a service quota. -
DOMAIN_NOT_FOUND- The case domain was deleted while the request was being processed. -
INTERNAL_ERROR- An unexpected error occurred on the server.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
failedItems
BatchCreateRelatedItemResponse.Builder failedItems(Consumer<BatchCreateRelatedItemErrorEntry.Builder>... failedItems) The list of related items that were not created. Each entry includes an error code and message. Possible error codes include:
-
CASE_NOT_FOUND- No case exists with the specified case ID. -
VALIDATION_ERROR- The request contains invalid input. -
CONFLICT- Another operation is in progress on the case, such as a concurrent update or a merge of the case into another case. -
THROTTLED- The request rate exceeded the allowed limit. -
ACCESS_DENIED- The caller lacks permission to perform the operation. -
SERVICE_QUOTA_EXCEEDED- The request exceeded a service quota. -
DOMAIN_NOT_FOUND- The case domain was deleted while the request was being processed. -
INTERNAL_ERROR- An unexpected error occurred on the server.
BatchCreateRelatedItemErrorEntry.Builderavoiding the need to create one manually viaBatchCreateRelatedItemErrorEntry.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tofailedItems(List<BatchCreateRelatedItemErrorEntry>).- Parameters:
failedItems- a consumer that will call methods onBatchCreateRelatedItemErrorEntry.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-