Interface BatchCreateRelatedItemResponse.Builder

  • Method Details

    • 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

      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

      The list of related items that were successfully created and associated with their cases.

      This is a convenience method that creates an instance of the BatchCreateRelatedItemSuccessEntry.Builder avoiding the need to create one manually via BatchCreateRelatedItemSuccessEntry.builder().

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

      Parameters:
      successfulItems - a consumer that will call methods on BatchCreateRelatedItemSuccessEntry.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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

      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.

      This is a convenience method that creates an instance of the BatchCreateRelatedItemErrorEntry.Builder avoiding the need to create one manually via BatchCreateRelatedItemErrorEntry.builder().

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

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