Interface CreateTemplateRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,ConnectCasesRequest.Builder,CopyableBuilder<CreateTemplateRequest.Builder,,CreateTemplateRequest> SdkBuilder<CreateTemplateRequest.Builder,,CreateTemplateRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreateTemplateRequest
-
Method Summary
Modifier and TypeMethodDescriptiondescription(String description) A brief description of the template.The unique identifier of the Cases domain.default CreateTemplateRequest.BuilderlayoutConfiguration(Consumer<LayoutConfiguration.Builder> layoutConfiguration) Configuration of layouts associated to the template.layoutConfiguration(LayoutConfiguration layoutConfiguration) Configuration of layouts associated to the template.A name for the template.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.requiredFields(Collection<RequiredField> requiredFields) A list of fields that must contain a value for a case to be successfully created with this template.requiredFields(Consumer<RequiredField.Builder>... requiredFields) A list of fields that must contain a value for a case to be successfully created with this template.requiredFields(RequiredField... requiredFields) A list of fields that must contain a value for a case to be successfully created with this template.rules(Collection<TemplateRule> rules) A list of case rules (also known as case field conditions) on a template.rules(Consumer<TemplateRule.Builder>... rules) A list of case rules (also known as case field conditions) on a template.rules(TemplateRule... rules) A list of case rules (also known as case field conditions) on a template.The status of the template.status(TemplateStatus status) The status of the template.tagPropagationConfigurations(Collection<TagPropagationConfiguration> tagPropagationConfigurations) Defines tag propagation configuration for resources created within a domain.tagPropagationConfigurations(Consumer<TagPropagationConfiguration.Builder>... tagPropagationConfigurations) Defines tag propagation configuration for resources created within a domain.tagPropagationConfigurations(TagPropagationConfiguration... tagPropagationConfigurations) Defines tag propagation configuration for resources created within a domain.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.
-
name
A name for the template. It must be unique per domain.
- Parameters:
name- A name for the template. It must be unique per domain.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
A brief description of the template.
- Parameters:
description- A brief description of the template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
layoutConfiguration
Configuration of layouts associated to the template.
- Parameters:
layoutConfiguration- Configuration of layouts associated to the template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
layoutConfiguration
default CreateTemplateRequest.Builder layoutConfiguration(Consumer<LayoutConfiguration.Builder> layoutConfiguration) Configuration of layouts associated to the template.
This is a convenience method that creates an instance of theLayoutConfiguration.Builderavoiding the need to create one manually viaLayoutConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tolayoutConfiguration(LayoutConfiguration).- Parameters:
layoutConfiguration- a consumer that will call methods onLayoutConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
requiredFields
A list of fields that must contain a value for a case to be successfully created with this template.
To require a Customer Profile when creating cases, include
customer_idin this list. Ifcustomer_idis omitted, the Customer Profile field is optional and can be added, changed, or removed after case creation.- Parameters:
requiredFields- A list of fields that must contain a value for a case to be successfully created with this template.To require a Customer Profile when creating cases, include
customer_idin this list. Ifcustomer_idis omitted, the Customer Profile field is optional and can be added, changed, or removed after case creation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
requiredFields
A list of fields that must contain a value for a case to be successfully created with this template.
To require a Customer Profile when creating cases, include
customer_idin this list. Ifcustomer_idis omitted, the Customer Profile field is optional and can be added, changed, or removed after case creation.- Parameters:
requiredFields- A list of fields that must contain a value for a case to be successfully created with this template.To require a Customer Profile when creating cases, include
customer_idin this list. Ifcustomer_idis omitted, the Customer Profile field is optional and can be added, changed, or removed after case creation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
requiredFields
A list of fields that must contain a value for a case to be successfully created with this template.
To require a Customer Profile when creating cases, include
This is a convenience method that creates an instance of thecustomer_idin this list. Ifcustomer_idis omitted, the Customer Profile field is optional and can be added, changed, or removed after case creation.RequiredField.Builderavoiding the need to create one manually viaRequiredField.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed torequiredFields(List<RequiredField>).- Parameters:
requiredFields- a consumer that will call methods onRequiredField.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The status of the template.
- Parameters:
status- The status of the template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The status of the template.
- Parameters:
status- The status of the template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
rules
A list of case rules (also known as case field conditions) on a template.
- Parameters:
rules- A list of case rules (also known as case field conditions) on a template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rules
A list of case rules (also known as case field conditions) on a template.
- Parameters:
rules- A list of case rules (also known as case field conditions) on a template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rules
A list of case rules (also known as case field conditions) on a template.
This is a convenience method that creates an instance of theTemplateRule.Builderavoiding the need to create one manually viaTemplateRule.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed torules(List<TemplateRule>).- Parameters:
rules- a consumer that will call methods onTemplateRule.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
tagPropagationConfigurations
CreateTemplateRequest.Builder tagPropagationConfigurations(Collection<TagPropagationConfiguration> tagPropagationConfigurations) Defines tag propagation configuration for resources created within a domain. Tags specified here will be automatically applied to resources being created for the specified resource type.
- Parameters:
tagPropagationConfigurations- Defines tag propagation configuration for resources created within a domain. Tags specified here will be automatically applied to resources being created for the specified resource type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tagPropagationConfigurations
CreateTemplateRequest.Builder tagPropagationConfigurations(TagPropagationConfiguration... tagPropagationConfigurations) Defines tag propagation configuration for resources created within a domain. Tags specified here will be automatically applied to resources being created for the specified resource type.
- Parameters:
tagPropagationConfigurations- Defines tag propagation configuration for resources created within a domain. Tags specified here will be automatically applied to resources being created for the specified resource type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tagPropagationConfigurations
CreateTemplateRequest.Builder tagPropagationConfigurations(Consumer<TagPropagationConfiguration.Builder>... tagPropagationConfigurations) Defines tag propagation configuration for resources created within a domain. Tags specified here will be automatically applied to resources being created for the specified resource type.
This is a convenience method that creates an instance of theTagPropagationConfiguration.Builderavoiding the need to create one manually viaTagPropagationConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totagPropagationConfigurations(List<TagPropagationConfiguration>).- Parameters:
tagPropagationConfigurations- a consumer that will call methods onTagPropagationConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
CreateTemplateRequest.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
CreateTemplateRequest.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.
-