Interface EnvironmentResponse.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<EnvironmentResponse.Builder,
,EnvironmentResponse> SdkBuilder<EnvironmentResponse.Builder,
,EnvironmentResponse> SdkPojo
- Enclosing class:
EnvironmentResponse
public static interface EnvironmentResponse.Builder
extends SdkPojo, CopyableBuilder<EnvironmentResponse.Builder,EnvironmentResponse>
-
Method Summary
Modifier and TypeMethodDescriptiondefault EnvironmentResponse.Builder
error
(Consumer<EnvironmentError.Builder> error) Error messages for environment variables that couldn't be applied.error
(EnvironmentError error) Error messages for environment variables that couldn't be applied.Environment variable key-value pairs.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, sdkFields
-
Method Details
-
variables
Environment variable key-value pairs. Omitted from CloudTrail logs.
- Parameters:
variables
- Environment variable key-value pairs. Omitted from CloudTrail logs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
error
Error messages for environment variables that couldn't be applied.
- Parameters:
error
- Error messages for environment variables that couldn't be applied.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
error
Error messages for environment variables that couldn't be applied.
This is a convenience method that creates an instance of theEnvironmentError.Builder
avoiding the need to create one manually viaEnvironmentError.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toerror(EnvironmentError)
.- Parameters:
error
- a consumer that will call methods onEnvironmentError.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-