Interface BatchCreateRelatedItemRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,ConnectCasesRequest.Builder,CopyableBuilder<BatchCreateRelatedItemRequest.Builder,,BatchCreateRelatedItemRequest> SdkBuilder<BatchCreateRelatedItemRequest.Builder,,BatchCreateRelatedItemRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
BatchCreateRelatedItemRequest
-
Method Summary
Modifier and TypeMethodDescriptionThe list of cases to associate the related item with.The list of cases to associate the related item with.cases(BatchCreateRelatedItemIdentifier... cases) The list of cases to associate the related item with.clientToken(String clientToken) A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.content(Consumer<RelatedItemInputContent.Builder> content) The content of the related item to be created.content(RelatedItemInputContent content) The content of the related item to be created.The unique identifier of the Cases domain.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.performedBy(Consumer<UserUnion.Builder> performedBy) The entity that created the related item.performedBy(UserUnion performedBy) The entity that created the related item.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.services.connectcases.model.ConnectCasesRequest.Builder
buildMethods 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, sdkFields
-
Method Details
-
domainId
The unique identifier of the Cases domain.
- Parameters:
domainId- The unique identifier of the Cases domain.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
content
The content of the related item to be created. The same content is applied to every case in the request. Only comment content is supported for batch creation.
- Parameters:
content- The content of the related item to be created. The same content is applied to every case in the request. Only comment content is supported for batch creation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
content
default BatchCreateRelatedItemRequest.Builder content(Consumer<RelatedItemInputContent.Builder> content) The content of the related item to be created. The same content is applied to every case in the request. Only comment content is supported for batch creation.
This is a convenience method that creates an instance of theRelatedItemInputContent.Builderavoiding the need to create one manually viaRelatedItemInputContent.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocontent(RelatedItemInputContent).- Parameters:
content- a consumer that will call methods onRelatedItemInputContent.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
cases
The list of cases to associate the related item with. All cases must belong to the same domain.
- Parameters:
cases- The list of cases to associate the related item with. All cases must belong to the same domain.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cases
The list of cases to associate the related item with. All cases must belong to the same domain.
- Parameters:
cases- The list of cases to associate the related item with. All cases must belong to the same domain.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cases
BatchCreateRelatedItemRequest.Builder cases(Consumer<BatchCreateRelatedItemIdentifier.Builder>... cases) The list of cases to associate the related item with. All cases must belong to the same domain.
This is a convenience method that creates an instance of theBatchCreateRelatedItemIdentifier.Builderavoiding the need to create one manually viaBatchCreateRelatedItemIdentifier.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocases(List<BatchCreateRelatedItemIdentifier>).- Parameters:
cases- a consumer that will call methods onBatchCreateRelatedItemIdentifier.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
performedBy
The entity that created the related item.
- Parameters:
performedBy- The entity that created the related item.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
performedBy
The entity that created the related item.
This is a convenience method that creates an instance of theUserUnion.Builderavoiding the need to create one manually viaUserUnion.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toperformedBy(UserUnion).- Parameters:
performedBy- a consumer that will call methods onUserUnion.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
clientToken
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.
If you retry a request with the same client token, the service returns the original response instead of processing the request again. If you reuse a client token with different request parameters, the request fails with a
ConflictException.- Parameters:
clientToken- A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.If you retry a request with the same client token, the service returns the original response instead of processing the request again. If you reuse a client token with different request parameters, the request fails with a
ConflictException.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
BatchCreateRelatedItemRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
BatchCreateRelatedItemRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-