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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default EnvironmentResponse.Builder
error(Consumer<EnvironmentError.Builder> error)
Error messages for environment variables that couldn't be applied.EnvironmentResponse.Builder
error(EnvironmentError error)
Error messages for environment variables that couldn't be applied.EnvironmentResponse.Builder
variables(Map<String,String> variables)
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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
variables
EnvironmentResponse.Builder variables(Map<String,String> 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
EnvironmentResponse.Builder error(EnvironmentError 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
default EnvironmentResponse.Builder error(Consumer<EnvironmentError.Builder> 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:
error(EnvironmentError)
-
-