Class CfnTemplateProps.Builder
java.lang.Object
software.amazon.awscdk.services.quicksight.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 TypeMethodDescriptionawsAccountId(String awsAccountId) Sets the value ofCfnTemplateProps.getAwsAccountId()build()Builds the configured instance.definition(IResolvable definition) Sets the value ofCfnTemplateProps.getDefinition()Sets the value ofCfnTemplateProps.getDefinition()Sets the value ofCfnTemplateProps.getName()permissions(List<? extends Object> permissions) Sets the value ofCfnTemplateProps.getPermissions()permissions(IResolvable permissions) Sets the value ofCfnTemplateProps.getPermissions()sourceEntity(IResolvable sourceEntity) Sets the value ofCfnTemplateProps.getSourceEntity()sourceEntity(CfnTemplate.TemplateSourceEntityProperty sourceEntity) Sets the value ofCfnTemplateProps.getSourceEntity()Sets the value ofCfnTemplateProps.getTags()templateId(String templateId) Sets the value ofCfnTemplateProps.getTemplateId()validationStrategy(IResolvable validationStrategy) Sets the value ofCfnTemplateProps.getValidationStrategy()validationStrategy(CfnTemplate.ValidationStrategyProperty validationStrategy) Sets the value ofCfnTemplateProps.getValidationStrategy()versionDescription(String versionDescription) Sets the value ofCfnTemplateProps.getVersionDescription()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
awsAccountId
Sets the value ofCfnTemplateProps.getAwsAccountId()- Parameters:
awsAccountId- The ID for the AWS account that the group is in. This parameter is required. You use the ID for the AWS account that contains your Amazon Quick Sight account.- Returns:
this
-
templateId
Sets the value ofCfnTemplateProps.getTemplateId()- Parameters:
templateId- An ID for the template that you want to create. This parameter is required. This template is unique per AWS Region ; in each AWS account.- Returns:
this
-
definition
Sets the value ofCfnTemplateProps.getDefinition()- Parameters:
definition- the value to be set.- Returns:
this
-
definition
@Stability(Stable) public CfnTemplateProps.Builder definition(CfnTemplate.TemplateVersionDefinitionProperty definition) Sets the value ofCfnTemplateProps.getDefinition()- Parameters:
definition- the value to be set.- Returns:
this
-
name
Sets the value ofCfnTemplateProps.getName()- Parameters:
name- A display name for the template.- Returns:
this
-
permissions
Sets the value ofCfnTemplateProps.getPermissions()- Parameters:
permissions- A list of resource permissions to be set on the template.- Returns:
this
-
permissions
Sets the value ofCfnTemplateProps.getPermissions()- Parameters:
permissions- A list of resource permissions to be set on the template.- Returns:
this
-
sourceEntity
Sets the value ofCfnTemplateProps.getSourceEntity()- Parameters:
sourceEntity- The entity that you are using as a source when you create the template. InSourceEntity, you specify the type of object you're using as source:SourceTemplatefor a template orSourceAnalysisfor an analysis. Both of these require an Amazon Resource Name (ARN). ForSourceTemplate, specify the ARN of the source template. ForSourceAnalysis, specify the ARN of the source analysis. TheSourceTemplateARN can contain any AWS account and any Quick Sight-supported AWS Region .Use the
DataSetReferencesentity withinSourceTemplateorSourceAnalysisto list the replacement datasets for the placeholders listed in the original. The schema in each dataset must match its placeholder.Either a
SourceEntityor aDefinitionmust be provided in order for the request to be valid.- Returns:
this
-
sourceEntity
@Stability(Stable) public CfnTemplateProps.Builder sourceEntity(CfnTemplate.TemplateSourceEntityProperty sourceEntity) Sets the value ofCfnTemplateProps.getSourceEntity()- Parameters:
sourceEntity- The entity that you are using as a source when you create the template. InSourceEntity, you specify the type of object you're using as source:SourceTemplatefor a template orSourceAnalysisfor an analysis. Both of these require an Amazon Resource Name (ARN). ForSourceTemplate, specify the ARN of the source template. ForSourceAnalysis, specify the ARN of the source analysis. TheSourceTemplateARN can contain any AWS account and any Quick Sight-supported AWS Region .Use the
DataSetReferencesentity withinSourceTemplateorSourceAnalysisto list the replacement datasets for the placeholders listed in the original. The schema in each dataset must match its placeholder.Either a
SourceEntityor aDefinitionmust be provided in order for the request to be valid.- Returns:
this
-
tags
Sets the value ofCfnTemplateProps.getTags()- Parameters:
tags- Contains a map of the key-value pairs for the resource tag or tags assigned to the resource.- Returns:
this
-
validationStrategy
@Stability(Stable) public CfnTemplateProps.Builder validationStrategy(IResolvable validationStrategy) Sets the value ofCfnTemplateProps.getValidationStrategy()- Parameters:
validationStrategy- The option to relax the validation that is required to create and update analyses, dashboards, and templates with definition objects. When you set this value toLENIENT, validation is skipped for specific errors.- Returns:
this
-
validationStrategy
@Stability(Stable) public CfnTemplateProps.Builder validationStrategy(CfnTemplate.ValidationStrategyProperty validationStrategy) Sets the value ofCfnTemplateProps.getValidationStrategy()- Parameters:
validationStrategy- The option to relax the validation that is required to create and update analyses, dashboards, and templates with definition objects. When you set this value toLENIENT, validation is skipped for specific errors.- Returns:
this
-
versionDescription
Sets the value ofCfnTemplateProps.getVersionDescription()- Parameters:
versionDescription- A description of the current template version being created. This API operation creates the first version of the template. Every timeUpdateTemplateis called, a new version is created. Each version of the template maintains a description of the version in theVersionDescriptionfield.- 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
-