Class CfnTemplateProps.Builder
java.lang.Object
software.amazon.awscdk.services.cases.CfnTemplateProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTemplateProps>
- Enclosing interface:
CfnTemplateProps
@Stability(Stable)
public static final class CfnTemplateProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTemplateProps>
A builder for
CfnTemplateProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.description(String description) Sets the value ofCfnTemplateProps.getDescription()Sets the value ofCfnTemplateProps.getDomainId()layoutConfiguration(IResolvable layoutConfiguration) Sets the value ofCfnTemplateProps.getLayoutConfiguration()layoutConfiguration(CfnTemplate.LayoutConfigurationProperty layoutConfiguration) Sets the value ofCfnTemplateProps.getLayoutConfiguration()Sets the value ofCfnTemplateProps.getName()requiredFields(List<? extends Object> requiredFields) Sets the value ofCfnTemplateProps.getRequiredFields()requiredFields(IResolvable requiredFields) Sets the value ofCfnTemplateProps.getRequiredFields()Sets the value ofCfnTemplateProps.getRules()rules(IResolvable rules) Sets the value ofCfnTemplateProps.getRules()Sets the value ofCfnTemplateProps.getStatus()Sets the value ofCfnTemplateProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnTemplateProps.getName()- Parameters:
name- The template name. This parameter is required.- Returns:
this
-
description
Sets the value ofCfnTemplateProps.getDescription()- Parameters:
description- A brief description of the template.- Returns:
this
-
domainId
Sets the value ofCfnTemplateProps.getDomainId()- Parameters:
domainId- The unique identifier of the Cases domain.- Returns:
this
-
layoutConfiguration
@Stability(Stable) public CfnTemplateProps.Builder layoutConfiguration(IResolvable layoutConfiguration) Sets the value ofCfnTemplateProps.getLayoutConfiguration()- Parameters:
layoutConfiguration- Object to store configuration of layouts associated to the template.- Returns:
this
-
layoutConfiguration
@Stability(Stable) public CfnTemplateProps.Builder layoutConfiguration(CfnTemplate.LayoutConfigurationProperty layoutConfiguration) Sets the value ofCfnTemplateProps.getLayoutConfiguration()- Parameters:
layoutConfiguration- Object to store configuration of layouts associated to the template.- Returns:
this
-
requiredFields
Sets the value ofCfnTemplateProps.getRequiredFields()- Parameters:
requiredFields- A list of fields that must contain a value for a case to be successfully created with this template.- Returns:
this
-
requiredFields
@Stability(Stable) public CfnTemplateProps.Builder requiredFields(List<? extends Object> requiredFields) Sets the value ofCfnTemplateProps.getRequiredFields()- Parameters:
requiredFields- A list of fields that must contain a value for a case to be successfully created with this template.- Returns:
this
-
rules
Sets the value ofCfnTemplateProps.getRules()- Parameters:
rules- A list of case rules (also known as case field conditions ) on a template.- Returns:
this
-
rules
Sets the value ofCfnTemplateProps.getRules()- Parameters:
rules- A list of case rules (also known as case field conditions ) on a template.- Returns:
this
-
status
Sets the value ofCfnTemplateProps.getStatus()- Parameters:
status- The status of the template.- Returns:
this
-
tags
Sets the value ofCfnTemplateProps.getTags()- Parameters:
tags- An array of key-value pairs to apply to this resource.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTemplateProps>- Returns:
- a new instance of
CfnTemplateProps - Throws:
NullPointerException- if any required attribute was not provided
-