Class CfnCalculatedAttributeDefinitionProps.Builder
java.lang.Object
software.amazon.awscdk.services.customerprofiles.CfnCalculatedAttributeDefinitionProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCalculatedAttributeDefinitionProps>
- Enclosing interface:
CfnCalculatedAttributeDefinitionProps
@Stability(Stable)
public static final class CfnCalculatedAttributeDefinitionProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCalculatedAttributeDefinitionProps>
A builder for
CfnCalculatedAttributeDefinitionProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionattributeDetails(IResolvable attributeDetails) Sets the value ofCfnCalculatedAttributeDefinitionProps.getAttributeDetails()attributeDetails(CfnCalculatedAttributeDefinition.AttributeDetailsProperty attributeDetails) Sets the value ofCfnCalculatedAttributeDefinitionProps.getAttributeDetails()build()Builds the configured instance.calculatedAttributeName(String calculatedAttributeName) Sets the value ofCfnCalculatedAttributeDefinitionProps.getCalculatedAttributeName()conditions(IResolvable conditions) Sets the value ofCfnCalculatedAttributeDefinitionProps.getConditions()Sets the value ofCfnCalculatedAttributeDefinitionProps.getConditions()description(String description) Sets the value ofCfnCalculatedAttributeDefinitionProps.getDescription()displayName(String displayName) Sets the value ofCfnCalculatedAttributeDefinitionProps.getDisplayName()domainName(String domainName) Sets the value ofCfnCalculatedAttributeDefinitionProps.getDomainName()Sets the value ofCfnCalculatedAttributeDefinitionProps.getStatistic()Sets the value ofCfnCalculatedAttributeDefinitionProps.getTags()useHistoricalData(Boolean useHistoricalData) Sets the value ofCfnCalculatedAttributeDefinitionProps.getUseHistoricalData()useHistoricalData(IResolvable useHistoricalData) Sets the value ofCfnCalculatedAttributeDefinitionProps.getUseHistoricalData()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
attributeDetails
@Stability(Stable) public CfnCalculatedAttributeDefinitionProps.Builder attributeDetails(IResolvable attributeDetails) Sets the value ofCfnCalculatedAttributeDefinitionProps.getAttributeDetails()- Parameters:
attributeDetails- Mathematical expression and a list of attribute items specified in that expression. This parameter is required.- Returns:
this
-
attributeDetails
@Stability(Stable) public CfnCalculatedAttributeDefinitionProps.Builder attributeDetails(CfnCalculatedAttributeDefinition.AttributeDetailsProperty attributeDetails) Sets the value ofCfnCalculatedAttributeDefinitionProps.getAttributeDetails()- Parameters:
attributeDetails- Mathematical expression and a list of attribute items specified in that expression. This parameter is required.- Returns:
this
-
calculatedAttributeName
@Stability(Stable) public CfnCalculatedAttributeDefinitionProps.Builder calculatedAttributeName(String calculatedAttributeName) Sets the value ofCfnCalculatedAttributeDefinitionProps.getCalculatedAttributeName()- Parameters:
calculatedAttributeName- The name of an attribute defined in a profile object type. This parameter is required.- Returns:
this
-
domainName
@Stability(Stable) public CfnCalculatedAttributeDefinitionProps.Builder domainName(String domainName) Sets the value ofCfnCalculatedAttributeDefinitionProps.getDomainName()- Parameters:
domainName- The unique name of the domain. This parameter is required.- Returns:
this
-
statistic
Sets the value ofCfnCalculatedAttributeDefinitionProps.getStatistic()- Parameters:
statistic- The aggregation operation to perform for the calculated attribute. This parameter is required.- Returns:
this
-
conditions
@Stability(Stable) public CfnCalculatedAttributeDefinitionProps.Builder conditions(IResolvable conditions) Sets the value ofCfnCalculatedAttributeDefinitionProps.getConditions()- Parameters:
conditions- The conditions including range, object count, and threshold for the calculated attribute.- Returns:
this
-
conditions
@Stability(Stable) public CfnCalculatedAttributeDefinitionProps.Builder conditions(CfnCalculatedAttributeDefinition.ConditionsProperty conditions) Sets the value ofCfnCalculatedAttributeDefinitionProps.getConditions()- Parameters:
conditions- The conditions including range, object count, and threshold for the calculated attribute.- Returns:
this
-
description
@Stability(Stable) public CfnCalculatedAttributeDefinitionProps.Builder description(String description) Sets the value ofCfnCalculatedAttributeDefinitionProps.getDescription()- Parameters:
description- The description of the calculated attribute.- Returns:
this
-
displayName
@Stability(Stable) public CfnCalculatedAttributeDefinitionProps.Builder displayName(String displayName) Sets the value ofCfnCalculatedAttributeDefinitionProps.getDisplayName()- Parameters:
displayName- The display name of the calculated attribute.- Returns:
this
-
tags
@Stability(Stable) public CfnCalculatedAttributeDefinitionProps.Builder tags(List<? extends CfnTag> tags) Sets the value ofCfnCalculatedAttributeDefinitionProps.getTags()- Parameters:
tags- An array of key-value pairs to apply to this resource.- Returns:
this
-
useHistoricalData
@Stability(Stable) public CfnCalculatedAttributeDefinitionProps.Builder useHistoricalData(Boolean useHistoricalData) Sets the value ofCfnCalculatedAttributeDefinitionProps.getUseHistoricalData()- Parameters:
useHistoricalData- Whether historical data ingested before the Calculated Attribute was created should be included in calculations.- Returns:
this
-
useHistoricalData
@Stability(Stable) public CfnCalculatedAttributeDefinitionProps.Builder useHistoricalData(IResolvable useHistoricalData) Sets the value ofCfnCalculatedAttributeDefinitionProps.getUseHistoricalData()- Parameters:
useHistoricalData- Whether historical data ingested before the Calculated Attribute was created should be included in calculations.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnCalculatedAttributeDefinitionProps>- Returns:
- a new instance of
CfnCalculatedAttributeDefinitionProps - Throws:
NullPointerException- if any required attribute was not provided
-