Interface Component.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<Component.Builder,,Component> SdkBuilder<Component.Builder,,Component> SdkPojo
- Enclosing class:
Component
@Mutable
@NotThreadSafe
public static interface Component.Builder
extends SdkPojo, CopyableBuilder<Component.Builder,Component>
-
Method Summary
Modifier and TypeMethodDescriptionThe ARN of the component version.componentName(String componentName) The name of the component.default Component.BuilderlatestVersion(Consumer<ComponentLatestVersion.Builder> latestVersion) The latest version of the component and its details.latestVersion(ComponentLatestVersion latestVersion) The latest version of the component and its details.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
-
arn
-
componentName
The name of the component.
- Parameters:
componentName- The name of the component.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
latestVersion
The latest version of the component and its details.
- Parameters:
latestVersion- The latest version of the component and its details.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
latestVersion
The latest version of the component and its details.
This is a convenience method that creates an instance of theComponentLatestVersion.Builderavoiding the need to create one manually viaComponentLatestVersion.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tolatestVersion(ComponentLatestVersion).- Parameters:
latestVersion- a consumer that will call methods onComponentLatestVersion.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-