Class CfnEnvironment.TierProperty.Builder
java.lang.Object
software.amazon.awscdk.services.elasticbeanstalk.CfnEnvironment.TierProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEnvironment.TierProperty>
- Enclosing interface:
CfnEnvironment.TierProperty
@Stability(Stable)
public static final class CfnEnvironment.TierProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEnvironment.TierProperty>
A builder for
CfnEnvironment.TierProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnEnvironment.TierProperty.getName()
Sets the value ofCfnEnvironment.TierProperty.getType()
Sets the value ofCfnEnvironment.TierProperty.getVersion()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnEnvironment.TierProperty.getName()
- Parameters:
name
- The name of this environment tier. Valid values:- For Web server tier –
WebServer
- For Worker tier –
Worker
- For Web server tier –
- Returns:
this
-
type
Sets the value ofCfnEnvironment.TierProperty.getType()
- Parameters:
type
- The type of this environment tier. Valid values:- For Web server tier –
Standard
- For Worker tier –
SQS/HTTP
- For Web server tier –
- Returns:
this
-
version
Sets the value ofCfnEnvironment.TierProperty.getVersion()
- Parameters:
version
- The version of this environment tier. When you don't set a value to it, Elastic Beanstalk uses the latest compatible worker tier version.This member is deprecated. Any specific version that you set may become out of date. We recommend leaving it unspecified.
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnEnvironment.TierProperty>
- Returns:
- a new instance of
CfnEnvironment.TierProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-