Interface Capability.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<Capability.Builder,,Capability> SdkBuilder<Capability.Builder,,Capability> SdkPojo
- Enclosing class:
Capability
@Mutable
@NotThreadSafe
public static interface Capability.Builder
extends SdkPojo, CopyableBuilder<Capability.Builder,Capability>
-
Method Summary
Modifier and TypeMethodDescriptiondefault Capability.Builderdefinition(Consumer<CapabilityDefinition.Builder> definition) The type-specific details of the requested capability.definition(CapabilityDefinition definition) The type-specific details of the requested capability.A unique identifier for this capability within the extension's configuration.A description of why the extension needs this capability and how it will be used.Whether this capability is mandatory for the extension to function.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
-
id
A unique identifier for this capability within the extension's configuration.
- Parameters:
id- A unique identifier for this capability within the extension's configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
purpose
A description of why the extension needs this capability and how it will be used.
- Parameters:
purpose- A description of why the extension needs this capability and how it will be used.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
required
Whether this capability is mandatory for the extension to function. Defaults to false.
- Parameters:
required- Whether this capability is mandatory for the extension to function. Defaults to false.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
definition
The type-specific details of the requested capability.
- Parameters:
definition- The type-specific details of the requested capability.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
definition
The type-specific details of the requested capability.
This is a convenience method that creates an instance of theCapabilityDefinition.Builderavoiding the need to create one manually viaCapabilityDefinition.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todefinition(CapabilityDefinition).- Parameters:
definition- a consumer that will call methods onCapabilityDefinition.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-