Interface CommandCapability.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<CommandCapability.Builder,
,CommandCapability> SdkBuilder<CommandCapability.Builder,
,CommandCapability> SdkPojo
- Enclosing class:
CommandCapability
@Mutable
@NotThreadSafe
public static interface CommandCapability.Builder
extends SdkPojo, CopyableBuilder<CommandCapability.Builder,CommandCapability>
-
Method Summary
Modifier and TypeMethodDescriptionactions
(Collection<CapabilityAction> actions) Describe the command capability with the actions it supports.actions
(Consumer<CapabilityAction.Builder>... actions) Describe the command capability with the actions it supports.actions
(CapabilityAction... actions) Describe the command capability with the actions it supports.Describe the capability with an id.Describe the capability with an name.Describe the capability with a version.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, sdkFieldNameToField, sdkFields
-
Method Details
-
id
Describe the capability with an id.
- Parameters:
id
- Describe the capability with an id.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
Describe the capability with an name.
- Parameters:
name
- Describe the capability with an name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
version
Describe the capability with a version.
- Parameters:
version
- Describe the capability with a version.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
actions
Describe the command capability with the actions it supports.
- Parameters:
actions
- Describe the command capability with the actions it supports.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
actions
Describe the command capability with the actions it supports.
- Parameters:
actions
- Describe the command capability with the actions it supports.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
actions
Describe the command capability with the actions it supports.
This is a convenience method that creates an instance of theCapabilityAction.Builder
avoiding the need to create one manually viaCapabilityAction.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toactions(List<CapabilityAction>)
.- Parameters:
actions
- a consumer that will call methods onCapabilityAction.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-