Class CfnExperimentDefinitionProps.Builder
java.lang.Object
software.amazon.awscdk.services.appconfig.CfnExperimentDefinitionProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnExperimentDefinitionProps>
- Enclosing interface:
CfnExperimentDefinitionProps
@Stability(Stable)
public static final class CfnExperimentDefinitionProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnExperimentDefinitionProps>
A builder for
CfnExperimentDefinitionProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapplicationIdentifier(String applicationIdentifier) Sets the value ofCfnExperimentDefinitionProps.getApplicationIdentifier()audienceDescription(String audienceDescription) Sets the value ofCfnExperimentDefinitionProps.getAudienceDescription()audienceRule(String audienceRule) Sets the value ofCfnExperimentDefinitionProps.getAudienceRule()build()Builds the configured instance.configurationProfileIdentifier(String configurationProfileIdentifier) Sets the value ofCfnExperimentDefinitionProps.getConfigurationProfileIdentifier()control(IResolvable control) Sets the value ofCfnExperimentDefinitionProps.getControl()Sets the value ofCfnExperimentDefinitionProps.getControl()environmentIdentifier(String environmentIdentifier) Sets the value ofCfnExperimentDefinitionProps.getEnvironmentIdentifier()Sets the value ofCfnExperimentDefinitionProps.getFlagKey()hypothesis(String hypothesis) Sets the value ofCfnExperimentDefinitionProps.getHypothesis()launchCriteria(String launchCriteria) Sets the value ofCfnExperimentDefinitionProps.getLaunchCriteria()Sets the value ofCfnExperimentDefinitionProps.getName()Sets the value ofCfnExperimentDefinitionProps.getTags()treatments(List<? extends Object> treatments) Sets the value ofCfnExperimentDefinitionProps.getTreatments()treatments(IResolvable treatments) Sets the value ofCfnExperimentDefinitionProps.getTreatments()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
applicationIdentifier
@Stability(Stable) public CfnExperimentDefinitionProps.Builder applicationIdentifier(String applicationIdentifier) Sets the value ofCfnExperimentDefinitionProps.getApplicationIdentifier()- Parameters:
applicationIdentifier- The application ID, name, or ARN. This parameter is required.- Returns:
this
-
audienceRule
Sets the value ofCfnExperimentDefinitionProps.getAudienceRule()- Parameters:
audienceRule- Rule expression defining the experiment audience. This parameter is required.- Returns:
this
-
configurationProfileIdentifier
@Stability(Stable) public CfnExperimentDefinitionProps.Builder configurationProfileIdentifier(String configurationProfileIdentifier) Sets the value ofCfnExperimentDefinitionProps.getConfigurationProfileIdentifier()- Parameters:
configurationProfileIdentifier- The configuration profile ID, name, or ARN. This parameter is required.- Returns:
this
-
control
Sets the value ofCfnExperimentDefinitionProps.getControl()- Parameters:
control- A treatment variant with weight and flag value. This parameter is required. The Key is auto-generated by the service.- Returns:
this
-
control
@Stability(Stable) public CfnExperimentDefinitionProps.Builder control(CfnExperimentDefinition.TreatmentProperty control) Sets the value ofCfnExperimentDefinitionProps.getControl()- Parameters:
control- A treatment variant with weight and flag value. This parameter is required. The Key is auto-generated by the service.- Returns:
this
-
environmentIdentifier
@Stability(Stable) public CfnExperimentDefinitionProps.Builder environmentIdentifier(String environmentIdentifier) Sets the value ofCfnExperimentDefinitionProps.getEnvironmentIdentifier()- Parameters:
environmentIdentifier- The environment ID, name, or ARN. This parameter is required.- Returns:
this
-
flagKey
Sets the value ofCfnExperimentDefinitionProps.getFlagKey()- Parameters:
flagKey- The key of the existing flag in the configuration profile to experiment on. This parameter is required.- Returns:
this
-
name
Sets the value ofCfnExperimentDefinitionProps.getName()- Parameters:
name- A name for the experiment definition. This parameter is required.- Returns:
this
-
treatments
Sets the value ofCfnExperimentDefinitionProps.getTreatments()- Parameters:
treatments- Treatment variants (1-5). This parameter is required.- Returns:
this
-
treatments
@Stability(Stable) public CfnExperimentDefinitionProps.Builder treatments(List<? extends Object> treatments) Sets the value ofCfnExperimentDefinitionProps.getTreatments()- Parameters:
treatments- Treatment variants (1-5). This parameter is required.- Returns:
this
-
audienceDescription
@Stability(Stable) public CfnExperimentDefinitionProps.Builder audienceDescription(String audienceDescription) Sets the value ofCfnExperimentDefinitionProps.getAudienceDescription()- Parameters:
audienceDescription- Human-readable description of the audience.- Returns:
this
-
hypothesis
Sets the value ofCfnExperimentDefinitionProps.getHypothesis()- Parameters:
hypothesis- The hypothesis of the experiment.- Returns:
this
-
launchCriteria
@Stability(Stable) public CfnExperimentDefinitionProps.Builder launchCriteria(String launchCriteria) Sets the value ofCfnExperimentDefinitionProps.getLaunchCriteria()- Parameters:
launchCriteria- Criteria for launching the experiment.- Returns:
this
-
tags
Sets the value ofCfnExperimentDefinitionProps.getTags()- Parameters:
tags- Tags to associate with the experiment definition.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnExperimentDefinitionProps>- Returns:
- a new instance of
CfnExperimentDefinitionProps - Throws:
NullPointerException- if any required attribute was not provided
-