Class CfnTemplateMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.quicksight.CfnTemplateMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTemplateMixinProps>
- Enclosing interface:
CfnTemplateMixinProps
@Stability(Stable)
public static final class CfnTemplateMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTemplateMixinProps>
A builder for
CfnTemplateMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionawsAccountId(String awsAccountId) Sets the value ofCfnTemplateMixinProps.getAwsAccountId()build()Builds the configured instance.Sets the value ofCfnTemplateMixinProps.getDefinition()definition(IResolvable definition) Sets the value ofCfnTemplateMixinProps.getDefinition()Sets the value ofCfnTemplateMixinProps.getName()permissions(List<? extends Object> permissions) Sets the value ofCfnTemplateMixinProps.getPermissions()permissions(IResolvable permissions) Sets the value ofCfnTemplateMixinProps.getPermissions()Sets the value ofCfnTemplateMixinProps.getSourceEntity()sourceEntity(IResolvable sourceEntity) Sets the value ofCfnTemplateMixinProps.getSourceEntity()Sets the value ofCfnTemplateMixinProps.getTags()templateId(String templateId) Sets the value ofCfnTemplateMixinProps.getTemplateId()validationStrategy(CfnTemplatePropsMixin.ValidationStrategyProperty validationStrategy) Sets the value ofCfnTemplateMixinProps.getValidationStrategy()validationStrategy(IResolvable validationStrategy) Sets the value ofCfnTemplateMixinProps.getValidationStrategy()versionDescription(String versionDescription) Sets the value ofCfnTemplateMixinProps.getVersionDescription()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
awsAccountId
Sets the value ofCfnTemplateMixinProps.getAwsAccountId()- Parameters:
awsAccountId- The ID for the AWS account that the group is in. You use the ID for the AWS account that contains your Amazon Quick Sight account.- Returns:
this
-
definition
Sets the value ofCfnTemplateMixinProps.getDefinition()- Parameters:
definition- the value to be set.- Returns:
this
-
definition
@Stability(Stable) public CfnTemplateMixinProps.Builder definition(CfnTemplatePropsMixin.TemplateVersionDefinitionProperty definition) Sets the value ofCfnTemplateMixinProps.getDefinition()- Parameters:
definition- the value to be set.- Returns:
this
-
name
Sets the value ofCfnTemplateMixinProps.getName()- Parameters:
name- A display name for the template.- Returns:
this
-
permissions
Sets the value ofCfnTemplateMixinProps.getPermissions()- Parameters:
permissions- A list of resource permissions to be set on the template.- Returns:
this
-
permissions
@Stability(Stable) public CfnTemplateMixinProps.Builder permissions(List<? extends Object> permissions) Sets the value ofCfnTemplateMixinProps.getPermissions()- Parameters:
permissions- A list of resource permissions to be set on the template.- Returns:
this
-
sourceEntity
Sets the value ofCfnTemplateMixinProps.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 CfnTemplateMixinProps.Builder sourceEntity(CfnTemplatePropsMixin.TemplateSourceEntityProperty sourceEntity) Sets the value ofCfnTemplateMixinProps.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 ofCfnTemplateMixinProps.getTags()- Parameters:
tags- Contains a map of the key-value pairs for the resource tag or tags assigned to the resource.- Returns:
this
-
templateId
Sets the value ofCfnTemplateMixinProps.getTemplateId()- Parameters:
templateId- An ID for the template that you want to create. This template is unique per AWS Region ; in each AWS account.- Returns:
this
-
validationStrategy
@Stability(Stable) public CfnTemplateMixinProps.Builder validationStrategy(IResolvable validationStrategy) Sets the value ofCfnTemplateMixinProps.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 CfnTemplateMixinProps.Builder validationStrategy(CfnTemplatePropsMixin.ValidationStrategyProperty validationStrategy) Sets the value ofCfnTemplateMixinProps.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
@Stability(Stable) public CfnTemplateMixinProps.Builder versionDescription(String versionDescription) Sets the value ofCfnTemplateMixinProps.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<CfnTemplateMixinProps>- Returns:
- a new instance of
CfnTemplateMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-