Interface CommandParameter.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<CommandParameter.Builder,CommandParameter>,SdkBuilder<CommandParameter.Builder,CommandParameter>,SdkPojo
- Enclosing class:
- CommandParameter
public static interface CommandParameter.Builder extends SdkPojo, CopyableBuilder<CommandParameter.Builder,CommandParameter>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default CommandParameter.BuilderdefaultValue(Consumer<CommandParameterValue.Builder> defaultValue)The default value used to describe the command.CommandParameter.BuilderdefaultValue(CommandParameterValue defaultValue)The default value used to describe the command.CommandParameter.Builderdescription(String description)The description of the command parameter.CommandParameter.Buildername(String name)The name of a specific parameter used in a command and command execution.default CommandParameter.Buildervalue(Consumer<CommandParameterValue.Builder> value)The value used to describe the command.CommandParameter.Buildervalue(CommandParameterValue value)The value used to describe the command.-
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 Detail
-
name
CommandParameter.Builder name(String name)
The name of a specific parameter used in a command and command execution.
- Parameters:
name- The name of a specific parameter used in a command and command execution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
value
CommandParameter.Builder value(CommandParameterValue value)
The value used to describe the command. When you assign a value to a parameter, it will override any default value that you had already specified.
- Parameters:
value- The value used to describe the command. When you assign a value to a parameter, it will override any default value that you had already specified.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
value
default CommandParameter.Builder value(Consumer<CommandParameterValue.Builder> value)
The value used to describe the command. When you assign a value to a parameter, it will override any default value that you had already specified.
This is a convenience method that creates an instance of theCommandParameterValue.Builderavoiding the need to create one manually viaCommandParameterValue.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tovalue(CommandParameterValue).- Parameters:
value- a consumer that will call methods onCommandParameterValue.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
value(CommandParameterValue)
-
defaultValue
CommandParameter.Builder defaultValue(CommandParameterValue defaultValue)
The default value used to describe the command. This is the value assumed by the parameter if no other value is assigned to it.
- Parameters:
defaultValue- The default value used to describe the command. This is the value assumed by the parameter if no other value is assigned to it.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
defaultValue
default CommandParameter.Builder defaultValue(Consumer<CommandParameterValue.Builder> defaultValue)
The default value used to describe the command. This is the value assumed by the parameter if no other value is assigned to it.
This is a convenience method that creates an instance of theCommandParameterValue.Builderavoiding the need to create one manually viaCommandParameterValue.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todefaultValue(CommandParameterValue).- Parameters:
defaultValue- a consumer that will call methods onCommandParameterValue.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
defaultValue(CommandParameterValue)
-
description
CommandParameter.Builder description(String description)
The description of the command parameter.
- Parameters:
description- The description of the command parameter.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-