Class CfnTopic.NamedEntityDefinitionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.quicksight.CfnTopic.NamedEntityDefinitionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTopic.NamedEntityDefinitionProperty>
- Enclosing interface:
CfnTopic.NamedEntityDefinitionProperty
@Stability(Stable)
public static final class CfnTopic.NamedEntityDefinitionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTopic.NamedEntityDefinitionProperty>
A builder for
CfnTopic.NamedEntityDefinitionProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnTopic.NamedEntityDefinitionProperty.getFieldName()metric(IResolvable metric) Sets the value ofCfnTopic.NamedEntityDefinitionProperty.getMetric()Sets the value ofCfnTopic.NamedEntityDefinitionProperty.getMetric()propertyName(String propertyName) Sets the value ofCfnTopic.NamedEntityDefinitionProperty.getPropertyName()propertyRole(String propertyRole) Sets the value ofCfnTopic.NamedEntityDefinitionProperty.getPropertyRole()propertyUsage(String propertyUsage) Sets the value ofCfnTopic.NamedEntityDefinitionProperty.getPropertyUsage()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
fieldName
@Stability(Stable) public CfnTopic.NamedEntityDefinitionProperty.Builder fieldName(String fieldName) Sets the value ofCfnTopic.NamedEntityDefinitionProperty.getFieldName()- Parameters:
fieldName- The name of the entity.- Returns:
this
-
metric
Sets the value ofCfnTopic.NamedEntityDefinitionProperty.getMetric()- Parameters:
metric- The definition of a metric.- Returns:
this
-
metric
@Stability(Stable) public CfnTopic.NamedEntityDefinitionProperty.Builder metric(CfnTopic.NamedEntityDefinitionMetricProperty metric) Sets the value ofCfnTopic.NamedEntityDefinitionProperty.getMetric()- Parameters:
metric- The definition of a metric.- Returns:
this
-
propertyName
@Stability(Stable) public CfnTopic.NamedEntityDefinitionProperty.Builder propertyName(String propertyName) Sets the value ofCfnTopic.NamedEntityDefinitionProperty.getPropertyName()- Parameters:
propertyName- The property name to be used for the named entity.- Returns:
this
-
propertyRole
@Stability(Stable) public CfnTopic.NamedEntityDefinitionProperty.Builder propertyRole(String propertyRole) Sets the value ofCfnTopic.NamedEntityDefinitionProperty.getPropertyRole()- Parameters:
propertyRole- The property role. Valid values for this structure arePRIMARYandID.- Returns:
this
-
propertyUsage
@Stability(Stable) public CfnTopic.NamedEntityDefinitionProperty.Builder propertyUsage(String propertyUsage) Sets the value ofCfnTopic.NamedEntityDefinitionProperty.getPropertyUsage()- Parameters:
propertyUsage- The property usage. Valid values for this structure areINHERIT,DIMENSION, andMEASURE.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTopic.NamedEntityDefinitionProperty>- Returns:
- a new instance of
CfnTopic.NamedEntityDefinitionProperty - Throws:
NullPointerException- if any required attribute was not provided
-