Interface Component.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Component.Builder,
,Component> SdkBuilder<Component.Builder,
,Component> SdkPojo
- Enclosing class:
Component
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.Builder
latestVersion
(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
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 Details
-
arn
The ARN of the component version.
- Parameters:
arn
- The ARN of the component version.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.Builder
avoiding the need to create one manually viaComponentLatestVersion.builder()
.When the
Consumer
completes,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:
-