Interface CommandParameter.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<CommandParameter.Builder,,CommandParameter> SdkBuilder<CommandParameter.Builder,,CommandParameter> SdkPojo
- Enclosing class:
CommandParameter
-
Method Summary
Modifier and TypeMethodDescriptiondefault CommandParameter.BuilderdefaultValue(Consumer<CommandParameterValue.Builder> defaultValue) The default value used to describe the command.defaultValue(CommandParameterValue defaultValue) The default value used to describe the command.description(String description) The description of the command parameter.The name of a specific parameter used in a command and command execution.The type of the command parameter.type(CommandParameterType type) The type of the command parameter.default CommandParameter.BuilderParameter value that overrides the default value, if set.value(CommandParameterValue value) Parameter value that overrides the default value, if set.valueConditions(Collection<CommandParameterValueCondition> valueConditions) The list of conditions that a command parameter value must satisfy to create a command execution.valueConditions(Consumer<CommandParameterValueCondition.Builder>... valueConditions) The list of conditions that a command parameter value must satisfy to create a command execution.valueConditions(CommandParameterValueCondition... valueConditions) The list of conditions that a command parameter value must satisfy to create a command execution.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
-
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.
-
type
The type of the command parameter.
- Parameters:
type- The type of the command parameter.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
type
The type of the command parameter.
- Parameters:
type- The type of the command parameter.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
value
Parameter value that overrides the default value, if set.
- Parameters:
value- Parameter value that overrides the default value, if set.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
value
Parameter value that overrides the default value, if set.
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:
-
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
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:
-
valueConditions
CommandParameter.Builder valueConditions(Collection<CommandParameterValueCondition> valueConditions) The list of conditions that a command parameter value must satisfy to create a command execution.
- Parameters:
valueConditions- The list of conditions that a command parameter value must satisfy to create a command execution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
valueConditions
The list of conditions that a command parameter value must satisfy to create a command execution.
- Parameters:
valueConditions- The list of conditions that a command parameter value must satisfy to create a command execution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
valueConditions
CommandParameter.Builder valueConditions(Consumer<CommandParameterValueCondition.Builder>... valueConditions) The list of conditions that a command parameter value must satisfy to create a command execution.
This is a convenience method that creates an instance of theCommandParameterValueCondition.Builderavoiding the need to create one manually viaCommandParameterValueCondition.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tovalueConditions(List<CommandParameterValueCondition>).- Parameters:
valueConditions- a consumer that will call methods onCommandParameterValueCondition.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.
-