Interface Experiment.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Experiment.Builder,Experiment>,SdkBuilder<Experiment.Builder,Experiment>,SdkPojo
- Enclosing class:
- Experiment
public static interface Experiment.Builder extends SdkPojo, CopyableBuilder<Experiment.Builder,Experiment>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Experiment.Builderactions(Map<String,ExperimentAction> actions)The actions for the experiment.Experiment.Builderarn(String arn)The Amazon Resource Name (ARN) of the experiment.Experiment.BuildercreationTime(Instant creationTime)The time that the experiment was created.Experiment.BuilderendTime(Instant endTime)The time that the experiment ended.default Experiment.BuilderexperimentOptions(Consumer<ExperimentOptions.Builder> experimentOptions)The experiment options for the experiment.Experiment.BuilderexperimentOptions(ExperimentOptions experimentOptions)The experiment options for the experiment.Experiment.BuilderexperimentTemplateId(String experimentTemplateId)The ID of the experiment template.Experiment.Builderid(String id)The ID of the experiment.default Experiment.BuilderlogConfiguration(Consumer<ExperimentLogConfiguration.Builder> logConfiguration)The configuration for experiment logging.Experiment.BuilderlogConfiguration(ExperimentLogConfiguration logConfiguration)The configuration for experiment logging.Experiment.BuilderroleArn(String roleArn)The Amazon Resource Name (ARN) of an IAM role that grants the FIS service permission to perform service actions on your behalf.Experiment.BuilderstartTime(Instant startTime)The time that the experiment started.default Experiment.Builderstate(Consumer<ExperimentState.Builder> state)The state of the experiment.Experiment.Builderstate(ExperimentState state)The state of the experiment.Experiment.BuilderstopConditions(Collection<ExperimentStopCondition> stopConditions)The stop conditions for the experiment.Experiment.BuilderstopConditions(Consumer<ExperimentStopCondition.Builder>... stopConditions)The stop conditions for the experiment.Experiment.BuilderstopConditions(ExperimentStopCondition... stopConditions)The stop conditions for the experiment.Experiment.Buildertags(Map<String,String> tags)The tags for the experiment.Experiment.BuildertargetAccountConfigurationsCount(Long targetAccountConfigurationsCount)The count of target account configurations for the experiment.Experiment.Buildertargets(Map<String,ExperimentTarget> targets)The targets for the experiment.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
id
Experiment.Builder id(String id)
The ID of the experiment.
- Parameters:
id- The ID of the experiment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
arn
Experiment.Builder arn(String arn)
The Amazon Resource Name (ARN) of the experiment.
- Parameters:
arn- The Amazon Resource Name (ARN) of the experiment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
experimentTemplateId
Experiment.Builder experimentTemplateId(String experimentTemplateId)
The ID of the experiment template.
- Parameters:
experimentTemplateId- The ID of the experiment template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
roleArn
Experiment.Builder roleArn(String roleArn)
The Amazon Resource Name (ARN) of an IAM role that grants the FIS service permission to perform service actions on your behalf.
- Parameters:
roleArn- The Amazon Resource Name (ARN) of an IAM role that grants the FIS service permission to perform service actions on your behalf.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
state
Experiment.Builder state(ExperimentState state)
The state of the experiment.
- Parameters:
state- The state of the experiment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
state
default Experiment.Builder state(Consumer<ExperimentState.Builder> state)
The state of the experiment.
This is a convenience method that creates an instance of theExperimentState.Builderavoiding the need to create one manually viaExperimentState.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tostate(ExperimentState).- Parameters:
state- a consumer that will call methods onExperimentState.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
state(ExperimentState)
-
targets
Experiment.Builder targets(Map<String,ExperimentTarget> targets)
The targets for the experiment.
- Parameters:
targets- The targets for the experiment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
actions
Experiment.Builder actions(Map<String,ExperimentAction> actions)
The actions for the experiment.
- Parameters:
actions- The actions for the experiment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
stopConditions
Experiment.Builder stopConditions(Collection<ExperimentStopCondition> stopConditions)
The stop conditions for the experiment.
- Parameters:
stopConditions- The stop conditions for the experiment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
stopConditions
Experiment.Builder stopConditions(ExperimentStopCondition... stopConditions)
The stop conditions for the experiment.
- Parameters:
stopConditions- The stop conditions for the experiment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
stopConditions
Experiment.Builder stopConditions(Consumer<ExperimentStopCondition.Builder>... stopConditions)
The stop conditions for the experiment.
This is a convenience method that creates an instance of theExperimentStopCondition.Builderavoiding the need to create one manually viaExperimentStopCondition.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#stopConditions(List.) - Parameters:
stopConditions- a consumer that will call methods onExperimentStopCondition.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#stopConditions(java.util.Collection)
-
creationTime
Experiment.Builder creationTime(Instant creationTime)
The time that the experiment was created.
- Parameters:
creationTime- The time that the experiment was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
startTime
Experiment.Builder startTime(Instant startTime)
The time that the experiment started.
- Parameters:
startTime- The time that the experiment started.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
endTime
Experiment.Builder endTime(Instant endTime)
The time that the experiment ended.
- Parameters:
endTime- The time that the experiment ended.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Experiment.Builder tags(Map<String,String> tags)
The tags for the experiment.
- Parameters:
tags- The tags for the experiment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
logConfiguration
Experiment.Builder logConfiguration(ExperimentLogConfiguration logConfiguration)
The configuration for experiment logging.
- Parameters:
logConfiguration- The configuration for experiment logging.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
logConfiguration
default Experiment.Builder logConfiguration(Consumer<ExperimentLogConfiguration.Builder> logConfiguration)
The configuration for experiment logging.
This is a convenience method that creates an instance of theExperimentLogConfiguration.Builderavoiding the need to create one manually viaExperimentLogConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tologConfiguration(ExperimentLogConfiguration).- Parameters:
logConfiguration- a consumer that will call methods onExperimentLogConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
logConfiguration(ExperimentLogConfiguration)
-
experimentOptions
Experiment.Builder experimentOptions(ExperimentOptions experimentOptions)
The experiment options for the experiment.
- Parameters:
experimentOptions- The experiment options for the experiment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
experimentOptions
default Experiment.Builder experimentOptions(Consumer<ExperimentOptions.Builder> experimentOptions)
The experiment options for the experiment.
This is a convenience method that creates an instance of theExperimentOptions.Builderavoiding the need to create one manually viaExperimentOptions.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toexperimentOptions(ExperimentOptions).- Parameters:
experimentOptions- a consumer that will call methods onExperimentOptions.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
experimentOptions(ExperimentOptions)
-
targetAccountConfigurationsCount
Experiment.Builder targetAccountConfigurationsCount(Long targetAccountConfigurationsCount)
The count of target account configurations for the experiment.
- Parameters:
targetAccountConfigurationsCount- The count of target account configurations for the experiment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-