Interface ExperimentTarget.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ExperimentTarget.Builder,,ExperimentTarget> SdkBuilder<ExperimentTarget.Builder,,ExperimentTarget> SdkPojo
- Enclosing class:
ExperimentTarget
-
Method Summary
Modifier and TypeMethodDescriptiondefault ExperimentTarget.Builderdefinition(Consumer<TargetDefinition.Builder> definition) The kind of target and its identity.definition(TargetDefinition definition) The kind of target and its identity.environment(String environment) The environment the target runs in, for example beta or prod.A display name for the target.serviceName(String serviceName) The service.name of the target's spans.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
-
name
A display name for the target.
- Parameters:
name- A display name for the target.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
serviceName
The service.name of the target's spans. Copied, with environment, into every case and run record. Control characters, apostrophes and backslashes are not allowed, because this value and environment are matched against span attributes and interpolated into telemetry query filters.
- Parameters:
serviceName- The service.name of the target's spans. Copied, with environment, into every case and run record. Control characters, apostrophes and backslashes are not allowed, because this value and environment are matched against span attributes and interpolated into telemetry query filters.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
environment
The environment the target runs in, for example beta or prod. Copied, with serviceName, into every case and run record.
- Parameters:
environment- The environment the target runs in, for example beta or prod. Copied, with serviceName, into every case and run record.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
definition
The kind of target and its identity. Cannot be changed after the experiment is created.
- Parameters:
definition- The kind of target and its identity. Cannot be changed after the experiment is created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
definition
The kind of target and its identity. Cannot be changed after the experiment is created.
This is a convenience method that creates an instance of theTargetDefinition.Builderavoiding the need to create one manually viaTargetDefinition.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todefinition(TargetDefinition).- Parameters:
definition- a consumer that will call methods onTargetDefinition.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-