Interface Environment.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Environment.Builder,
,Environment> SdkBuilder<Environment.Builder,
,Environment> SdkPojo
- Enclosing class:
Environment
public static interface Environment.Builder
extends SdkPojo, CopyableBuilder<Environment.Builder,Environment>
-
Method Summary
Modifier and TypeMethodDescriptionapplicationId
(String applicationId) The application ID.description
(String description) The description of the environment.The environment ID.monitors
(Collection<Monitor> monitors) Amazon CloudWatch alarms monitored during the deployment.monitors
(Consumer<Monitor.Builder>... monitors) Amazon CloudWatch alarms monitored during the deployment.Amazon CloudWatch alarms monitored during the deployment.The name of the environment.The state of the environment.state
(EnvironmentState state) The state of the environment.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
-
applicationId
The application ID.
- Parameters:
applicationId
- The application ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
id
The environment ID.
- Parameters:
id
- The environment ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
The name of the environment.
- Parameters:
name
- The name of the environment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
The description of the environment.
- Parameters:
description
- The description of the environment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
state
The state of the environment. An environment can be in one of the following states:
READY_FOR_DEPLOYMENT
,DEPLOYING
,ROLLING_BACK
, orROLLED_BACK
- Parameters:
state
- The state of the environment. An environment can be in one of the following states:READY_FOR_DEPLOYMENT
,DEPLOYING
,ROLLING_BACK
, orROLLED_BACK
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
state
The state of the environment. An environment can be in one of the following states:
READY_FOR_DEPLOYMENT
,DEPLOYING
,ROLLING_BACK
, orROLLED_BACK
- Parameters:
state
- The state of the environment. An environment can be in one of the following states:READY_FOR_DEPLOYMENT
,DEPLOYING
,ROLLING_BACK
, orROLLED_BACK
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
monitors
Amazon CloudWatch alarms monitored during the deployment.
- Parameters:
monitors
- Amazon CloudWatch alarms monitored during the deployment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
monitors
Amazon CloudWatch alarms monitored during the deployment.
- Parameters:
monitors
- Amazon CloudWatch alarms monitored during the deployment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
monitors
Amazon CloudWatch alarms monitored during the deployment.
This is a convenience method that creates an instance of theMonitor.Builder
avoiding the need to create one manually viaMonitor.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tomonitors(List<Monitor>)
.- Parameters:
monitors
- a consumer that will call methods onMonitor.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-