Interface StartMergeCasesRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,ConnectCasesRequest.Builder,CopyableBuilder<StartMergeCasesRequest.Builder,,StartMergeCasesRequest> SdkBuilder<StartMergeCasesRequest.Builder,,StartMergeCasesRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
StartMergeCasesRequest
-
Method Summary
Modifier and TypeMethodDescriptionThe unique identifier of the primary case.The unique identifier of the Cases domain.fieldsConfiguration(Collection<FieldsConfiguration> fieldsConfiguration) The fields whose values to take from the secondary case.fieldsConfiguration(Consumer<FieldsConfiguration.Builder>... fieldsConfiguration) The fields whose values to take from the secondary case.fieldsConfiguration(FieldsConfiguration... fieldsConfiguration) The fields whose values to take from the secondary case.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.default StartMergeCasesRequest.BuilderperformedBy(Consumer<UserUnion.Builder> performedBy) The user who performed the merge.performedBy(UserUnion performedBy) The user who performed the merge.default StartMergeCasesRequest.BuilderrelatedItemsConfiguration(Consumer<RelatedItemsConfiguration.Builder> relatedItemsConfiguration) The types of related items to move from the secondary case to the primary case.relatedItemsConfiguration(RelatedItemsConfiguration relatedItemsConfiguration) The types of related items to move from the secondary case to the primary case.secondaryCaseIds(String... secondaryCaseIds) The unique identifier of the secondary case to merge into the primary case.secondaryCaseIds(Collection<String> secondaryCaseIds) The unique identifier of the secondary case to merge into the primary case.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.
-
caseId
The unique identifier of the primary case. The primary case remains active and receives the merged field values and related items. The cases can use different templates, and the primary case keeps its template.
- Parameters:
caseId- The unique identifier of the primary case. The primary case remains active and receives the merged field values and related items. The cases can use different templates, and the primary case keeps its template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
secondaryCaseIds
The unique identifier of the secondary case to merge into the primary case. The secondary case is closed when the merge finishes. Specify exactly one case ID.
- Parameters:
secondaryCaseIds- The unique identifier of the secondary case to merge into the primary case. The secondary case is closed when the merge finishes. Specify exactly one case ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
secondaryCaseIds
The unique identifier of the secondary case to merge into the primary case. The secondary case is closed when the merge finishes. Specify exactly one case ID.
- Parameters:
secondaryCaseIds- The unique identifier of the secondary case to merge into the primary case. The secondary case is closed when the merge finishes. Specify exactly one case ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fieldsConfiguration
StartMergeCasesRequest.Builder fieldsConfiguration(Collection<FieldsConfiguration> fieldsConfiguration) The fields whose values to take from the secondary case. You can only merge custom fields and the following system fields:
assigned_queue,assigned_user,summary, andcase_reason. If you select any other system field, the request fails with aValidationException.For each field that can be merged, the merge works as follows:
-
If you select the field, the primary case gets the secondary case's value. If the secondary case's value is empty, the primary case's value is cleared.
-
If you don't select the field and the primary case has a value for it, the primary case keeps its value.
-
If you don't select the field and the primary case doesn't have the field, or its value is empty, the primary case gets the secondary case's value. This applies even when the field isn't on the primary case's template.
Field values are read from both cases when the merge runs, so changes that you make to the primary case after you start the merge are taken into account.
Specify at most one entry, and set its
sourceCaseIdto the secondary case ID.- Parameters:
fieldsConfiguration- The fields whose values to take from the secondary case. You can only merge custom fields and the following system fields:assigned_queue,assigned_user,summary, andcase_reason. If you select any other system field, the request fails with aValidationException.For each field that can be merged, the merge works as follows:
-
If you select the field, the primary case gets the secondary case's value. If the secondary case's value is empty, the primary case's value is cleared.
-
If you don't select the field and the primary case has a value for it, the primary case keeps its value.
-
If you don't select the field and the primary case doesn't have the field, or its value is empty, the primary case gets the secondary case's value. This applies even when the field isn't on the primary case's template.
Field values are read from both cases when the merge runs, so changes that you make to the primary case after you start the merge are taken into account.
Specify at most one entry, and set its
sourceCaseIdto the secondary case ID.-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
fieldsConfiguration
The fields whose values to take from the secondary case. You can only merge custom fields and the following system fields:
assigned_queue,assigned_user,summary, andcase_reason. If you select any other system field, the request fails with aValidationException.For each field that can be merged, the merge works as follows:
-
If you select the field, the primary case gets the secondary case's value. If the secondary case's value is empty, the primary case's value is cleared.
-
If you don't select the field and the primary case has a value for it, the primary case keeps its value.
-
If you don't select the field and the primary case doesn't have the field, or its value is empty, the primary case gets the secondary case's value. This applies even when the field isn't on the primary case's template.
Field values are read from both cases when the merge runs, so changes that you make to the primary case after you start the merge are taken into account.
Specify at most one entry, and set its
sourceCaseIdto the secondary case ID.- Parameters:
fieldsConfiguration- The fields whose values to take from the secondary case. You can only merge custom fields and the following system fields:assigned_queue,assigned_user,summary, andcase_reason. If you select any other system field, the request fails with aValidationException.For each field that can be merged, the merge works as follows:
-
If you select the field, the primary case gets the secondary case's value. If the secondary case's value is empty, the primary case's value is cleared.
-
If you don't select the field and the primary case has a value for it, the primary case keeps its value.
-
If you don't select the field and the primary case doesn't have the field, or its value is empty, the primary case gets the secondary case's value. This applies even when the field isn't on the primary case's template.
Field values are read from both cases when the merge runs, so changes that you make to the primary case after you start the merge are taken into account.
Specify at most one entry, and set its
sourceCaseIdto the secondary case ID.-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
fieldsConfiguration
StartMergeCasesRequest.Builder fieldsConfiguration(Consumer<FieldsConfiguration.Builder>... fieldsConfiguration) The fields whose values to take from the secondary case. You can only merge custom fields and the following system fields:
assigned_queue,assigned_user,summary, andcase_reason. If you select any other system field, the request fails with aValidationException.For each field that can be merged, the merge works as follows:
-
If you select the field, the primary case gets the secondary case's value. If the secondary case's value is empty, the primary case's value is cleared.
-
If you don't select the field and the primary case has a value for it, the primary case keeps its value.
-
If you don't select the field and the primary case doesn't have the field, or its value is empty, the primary case gets the secondary case's value. This applies even when the field isn't on the primary case's template.
Field values are read from both cases when the merge runs, so changes that you make to the primary case after you start the merge are taken into account.
Specify at most one entry, and set its
This is a convenience method that creates an instance of thesourceCaseIdto the secondary case ID.FieldsConfiguration.Builderavoiding the need to create one manually viaFieldsConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tofieldsConfiguration(List<FieldsConfiguration>).- Parameters:
fieldsConfiguration- a consumer that will call methods onFieldsConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
performedBy
The user who performed the merge. If you provide
userArn, you must also have DescribeUser permission on the ARN of that user.- Parameters:
performedBy- The user who performed the merge. If you provideuserArn, you must also have DescribeUser permission on the ARN of that user.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
performedBy
The user who performed the merge. If you provide
This is a convenience method that creates an instance of theuserArn, you must also have DescribeUser permission on the ARN of that user.UserUnion.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:
-
overrideConfiguration
StartMergeCasesRequest.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
StartMergeCasesRequest.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.
-