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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Component.Builderarn(String arn)The ARN of the component version.Component.BuildercomponentName(String componentName)The name of the component.default Component.BuilderlatestVersion(Consumer<ComponentLatestVersion.Builder> latestVersion)The latest version of the component and its details.Component.BuilderlatestVersion(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 Detail
-
arn
Component.Builder arn(String 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
Component.Builder componentName(String 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
Component.Builder latestVersion(ComponentLatestVersion 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
default Component.Builder latestVersion(Consumer<ComponentLatestVersion.Builder> 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:
latestVersion(ComponentLatestVersion)
-
-