Interface ExperimentRule.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ExperimentRule.Builder,,ExperimentRule> SdkBuilder<ExperimentRule.Builder,,ExperimentRule> SdkPojo
- Enclosing class:
ExperimentRule
-
Method Summary
Modifier and TypeMethodDescriptioncaseCriteria(Collection<CaseCriterion> caseCriteria) The conditions each case must meet to pass, up to 20.caseCriteria(Consumer<CaseCriterion.Builder>... caseCriteria) The conditions each case must meet to pass, up to 20.caseCriteria(CaseCriterion... caseCriteria) The conditions each case must meet to pass, up to 20.contentHash(String contentHash) A SHA-256 hash of the rule's caseCriteria and gates, in the form sha256:<64 hex digits>.gates(Collection<RunGate> gates) The run-level checks the run must meet to pass, from 1 to 20.gates(Consumer<RunGate.Builder>... gates) The run-level checks the run must meet to pass, from 1 to 20.The run-level checks the run must meet to pass, from 1 to 20.The name of the rule, from 1 to 256 characters.The origin of the rule.source(RuleSource source) The origin of the rule.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
source
The origin of the rule. Informational only; it does not change how the rule is applied.
- Parameters:
source- The origin of the rule. Informational only; it does not change how the rule is applied.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
source
The origin of the rule. Informational only; it does not change how the rule is applied.
- Parameters:
source- The origin of the rule. Informational only; it does not change how the rule is applied.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
name
The name of the rule, from 1 to 256 characters.
- Parameters:
name- The name of the rule, from 1 to 256 characters.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
caseCriteria
The conditions each case must meet to pass, up to 20. May be empty when the rule gates only on run-level metrics.
- Parameters:
caseCriteria- The conditions each case must meet to pass, up to 20. May be empty when the rule gates only on run-level metrics.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
caseCriteria
The conditions each case must meet to pass, up to 20. May be empty when the rule gates only on run-level metrics.
- Parameters:
caseCriteria- The conditions each case must meet to pass, up to 20. May be empty when the rule gates only on run-level metrics.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
caseCriteria
The conditions each case must meet to pass, up to 20. May be empty when the rule gates only on run-level metrics.
This is a convenience method that creates an instance of theCaseCriterion.Builderavoiding the need to create one manually viaCaseCriterion.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocaseCriteria(List<CaseCriterion>).- Parameters:
caseCriteria- a consumer that will call methods onCaseCriterion.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
gates
The run-level checks the run must meet to pass, from 1 to 20.
- Parameters:
gates- The run-level checks the run must meet to pass, from 1 to 20.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
gates
The run-level checks the run must meet to pass, from 1 to 20.
- Parameters:
gates- The run-level checks the run must meet to pass, from 1 to 20.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
gates
The run-level checks the run must meet to pass, from 1 to 20.
This is a convenience method that creates an instance of theRunGate.Builderavoiding the need to create one manually viaRunGate.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed togates(List<RunGate>).- Parameters:
gates- a consumer that will call methods onRunGate.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
contentHash
A SHA-256 hash of the rule's caseCriteria and gates, in the form sha256:<64 hex digits>. Output only; ignored on input. Member order and explicit default values do not affect the hash; list order does.
- Parameters:
contentHash- A SHA-256 hash of the rule's caseCriteria and gates, in the form sha256:<64 hex digits>. Output only; ignored on input. Member order and explicit default values do not affect the hash; list order does.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-