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 default Experiment.BuildercreatedBy(Consumer<UserContext.Builder> createdBy)Who created the experiment.Experiment.BuildercreatedBy(UserContext createdBy)Who created the experiment.Experiment.BuildercreationTime(Instant creationTime)When the experiment was created.Experiment.Builderdescription(String description)The description of the experiment.Experiment.BuilderdisplayName(String displayName)The name of the experiment as displayed.Experiment.BuilderexperimentArn(String experimentArn)The Amazon Resource Name (ARN) of the experiment.Experiment.BuilderexperimentName(String experimentName)The name of the experiment.default Experiment.BuilderlastModifiedBy(Consumer<UserContext.Builder> lastModifiedBy)Sets the value of the LastModifiedBy property for this object.Experiment.BuilderlastModifiedBy(UserContext lastModifiedBy)Sets the value of the LastModifiedBy property for this object.Experiment.BuilderlastModifiedTime(Instant lastModifiedTime)When the experiment was last modified.default Experiment.Buildersource(Consumer<ExperimentSource.Builder> source)Sets the value of the Source property for this object.Experiment.Buildersource(ExperimentSource source)Sets the value of the Source property for this object.Experiment.Buildertags(Collection<Tag> tags)The list of tags that are associated with the experiment.Experiment.Buildertags(Consumer<Tag.Builder>... tags)The list of tags that are associated with the experiment.Experiment.Buildertags(Tag... tags)The list of tags that are associated with 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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
experimentName
Experiment.Builder experimentName(String experimentName)
The name of the experiment.
- Parameters:
experimentName- The name of the experiment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
experimentArn
Experiment.Builder experimentArn(String experimentArn)
The Amazon Resource Name (ARN) of the experiment.
- Parameters:
experimentArn- The Amazon Resource Name (ARN) of the experiment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
displayName
Experiment.Builder displayName(String displayName)
The name of the experiment as displayed. If
DisplayNameisn't specified,ExperimentNameis displayed.- Parameters:
displayName- The name of the experiment as displayed. IfDisplayNameisn't specified,ExperimentNameis displayed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
source
Experiment.Builder source(ExperimentSource source)
Sets the value of the Source property for this object.- Parameters:
source- The new value for the Source property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
source
default Experiment.Builder source(Consumer<ExperimentSource.Builder> source)
Sets the value of the Source property for this object. This is a convenience method that creates an instance of theExperimentSource.Builderavoiding the need to create one manually viaExperimentSource.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosource(ExperimentSource).- Parameters:
source- a consumer that will call methods onExperimentSource.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
source(ExperimentSource)
-
description
Experiment.Builder description(String description)
The description of the experiment.
- Parameters:
description- The description of the experiment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
creationTime
Experiment.Builder creationTime(Instant creationTime)
When the experiment was created.
- Parameters:
creationTime- When the experiment was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createdBy
Experiment.Builder createdBy(UserContext createdBy)
Who created the experiment.
- Parameters:
createdBy- Who created the experiment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createdBy
default Experiment.Builder createdBy(Consumer<UserContext.Builder> createdBy)
Who created the experiment.
This is a convenience method that creates an instance of theUserContext.Builderavoiding the need to create one manually viaUserContext.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocreatedBy(UserContext).- Parameters:
createdBy- a consumer that will call methods onUserContext.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
createdBy(UserContext)
-
lastModifiedTime
Experiment.Builder lastModifiedTime(Instant lastModifiedTime)
When the experiment was last modified.
- Parameters:
lastModifiedTime- When the experiment was last modified.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastModifiedBy
Experiment.Builder lastModifiedBy(UserContext lastModifiedBy)
Sets the value of the LastModifiedBy property for this object.- Parameters:
lastModifiedBy- The new value for the LastModifiedBy property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastModifiedBy
default Experiment.Builder lastModifiedBy(Consumer<UserContext.Builder> lastModifiedBy)
Sets the value of the LastModifiedBy property for this object. This is a convenience method that creates an instance of theUserContext.Builderavoiding the need to create one manually viaUserContext.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tolastModifiedBy(UserContext).- Parameters:
lastModifiedBy- a consumer that will call methods onUserContext.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
lastModifiedBy(UserContext)
-
tags
Experiment.Builder tags(Collection<Tag> tags)
The list of tags that are associated with the experiment. You can use Search API to search on the tags.
- Parameters:
tags- The list of tags that are associated with the experiment. You can use Search API to search on the tags.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Experiment.Builder tags(Tag... tags)
The list of tags that are associated with the experiment. You can use Search API to search on the tags.
- Parameters:
tags- The list of tags that are associated with the experiment. You can use Search API to search on the tags.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Experiment.Builder tags(Consumer<Tag.Builder>... tags)
The list of tags that are associated with the experiment. You can use Search API to search on the tags.
This is a convenience method that creates an instance of theTag.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#tags(List.) - Parameters:
tags- a consumer that will call methods onTag.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#tags(java.util.Collection)
-
-