Interface StartCommandExecutionResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CodeBuildResponse.Builder,CopyableBuilder<StartCommandExecutionResponse.Builder,,StartCommandExecutionResponse> SdkBuilder<StartCommandExecutionResponse.Builder,,StartCommandExecutionResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
StartCommandExecutionResponse
@Mutable
@NotThreadSafe
public static interface StartCommandExecutionResponse.Builder
extends CodeBuildResponse.Builder, SdkPojo, CopyableBuilder<StartCommandExecutionResponse.Builder,StartCommandExecutionResponse>
-
Method Summary
Modifier and TypeMethodDescriptioncommandExecution(Consumer<CommandExecution.Builder> commandExecution) Information about the requested command executions.commandExecution(CommandExecution commandExecution) Information about the requested command executions.Methods inherited from interface software.amazon.awssdk.services.codebuild.model.CodeBuildResponse.Builder
build, responseMetadata, responseMetadataMethods 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, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
commandExecution
Information about the requested command executions.
- Parameters:
commandExecution- Information about the requested command executions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
commandExecution
default StartCommandExecutionResponse.Builder commandExecution(Consumer<CommandExecution.Builder> commandExecution) Information about the requested command executions.
This is a convenience method that creates an instance of theCommandExecution.Builderavoiding the need to create one manually viaCommandExecution.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocommandExecution(CommandExecution).- Parameters:
commandExecution- a consumer that will call methods onCommandExecution.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-