Interface UpdatedHarnessEnvironmentArtifact.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<UpdatedHarnessEnvironmentArtifact.Builder,,UpdatedHarnessEnvironmentArtifact> SdkBuilder<UpdatedHarnessEnvironmentArtifact.Builder,,UpdatedHarnessEnvironmentArtifact> SdkPojo
- Enclosing class:
UpdatedHarnessEnvironmentArtifact
@Mutable
@NotThreadSafe
public static interface UpdatedHarnessEnvironmentArtifact.Builder
extends SdkPojo, CopyableBuilder<UpdatedHarnessEnvironmentArtifact.Builder,UpdatedHarnessEnvironmentArtifact>
-
Method Summary
Modifier and TypeMethodDescriptionoptionalValue(Consumer<HarnessEnvironmentArtifact.Builder> optionalValue) The updated environment artifact value, or null to clear the existing configuration.optionalValue(HarnessEnvironmentArtifact optionalValue) The updated environment artifact value, or null to clear the existing configuration.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
-
optionalValue
The updated environment artifact value, or null to clear the existing configuration.
- Parameters:
optionalValue- The updated environment artifact value, or null to clear the existing configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
optionalValue
default UpdatedHarnessEnvironmentArtifact.Builder optionalValue(Consumer<HarnessEnvironmentArtifact.Builder> optionalValue) The updated environment artifact value, or null to clear the existing configuration.
This is a convenience method that creates an instance of theHarnessEnvironmentArtifact.Builderavoiding the need to create one manually viaHarnessEnvironmentArtifact.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tooptionalValue(HarnessEnvironmentArtifact).- Parameters:
optionalValue- a consumer that will call methods onHarnessEnvironmentArtifact.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-