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