Interface CreateEnvironmentRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateEnvironmentRequest.Builder,CreateEnvironmentRequest>,ElasticBeanstalkRequest.Builder,SdkBuilder<CreateEnvironmentRequest.Builder,CreateEnvironmentRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- CreateEnvironmentRequest
public static interface CreateEnvironmentRequest.Builder extends ElasticBeanstalkRequest.Builder, SdkPojo, CopyableBuilder<CreateEnvironmentRequest.Builder,CreateEnvironmentRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description CreateEnvironmentRequest.BuilderapplicationName(String applicationName)The name of the application that is associated with this environment.CreateEnvironmentRequest.BuildercnamePrefix(String cnamePrefix)If specified, the environment attempts to use this value as the prefix for the CNAME in your Elastic Beanstalk environment URL.CreateEnvironmentRequest.Builderdescription(String description)Your description for this environment.CreateEnvironmentRequest.BuilderenvironmentName(String environmentName)A unique name for the environment.CreateEnvironmentRequest.BuildergroupName(String groupName)The name of the group to which the target environment belongs.CreateEnvironmentRequest.BuilderoperationsRole(String operationsRole)The Amazon Resource Name (ARN) of an existing IAM role to be used as the environment's operations role.CreateEnvironmentRequest.BuilderoptionSettings(Collection<ConfigurationOptionSetting> optionSettings)If specified, AWS Elastic Beanstalk sets the specified configuration options to the requested value in the configuration set for the new environment.CreateEnvironmentRequest.BuilderoptionSettings(Consumer<ConfigurationOptionSetting.Builder>... optionSettings)If specified, AWS Elastic Beanstalk sets the specified configuration options to the requested value in the configuration set for the new environment.CreateEnvironmentRequest.BuilderoptionSettings(ConfigurationOptionSetting... optionSettings)If specified, AWS Elastic Beanstalk sets the specified configuration options to the requested value in the configuration set for the new environment.CreateEnvironmentRequest.BuilderoptionsToRemove(Collection<OptionSpecification> optionsToRemove)A list of custom user-defined configuration options to remove from the configuration set for this new environment.CreateEnvironmentRequest.BuilderoptionsToRemove(Consumer<OptionSpecification.Builder>... optionsToRemove)A list of custom user-defined configuration options to remove from the configuration set for this new environment.CreateEnvironmentRequest.BuilderoptionsToRemove(OptionSpecification... optionsToRemove)A list of custom user-defined configuration options to remove from the configuration set for this new environment.CreateEnvironmentRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)CreateEnvironmentRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)CreateEnvironmentRequest.BuilderplatformArn(String platformArn)The Amazon Resource Name (ARN) of the custom platform to use with the environment.CreateEnvironmentRequest.BuildersolutionStackName(String solutionStackName)The name of an Elastic Beanstalk solution stack (platform version) to use with the environment.CreateEnvironmentRequest.Buildertags(Collection<Tag> tags)Specifies the tags applied to resources in the environment.CreateEnvironmentRequest.Buildertags(Consumer<Tag.Builder>... tags)Specifies the tags applied to resources in the environment.CreateEnvironmentRequest.Buildertags(Tag... tags)Specifies the tags applied to resources in the environment.CreateEnvironmentRequest.BuildertemplateName(String templateName)The name of the Elastic Beanstalk configuration template to use with the environment.default CreateEnvironmentRequest.Buildertier(Consumer<EnvironmentTier.Builder> tier)Specifies the tier to use in creating this environment.CreateEnvironmentRequest.Buildertier(EnvironmentTier tier)Specifies the tier to use in creating this environment.CreateEnvironmentRequest.BuilderversionLabel(String versionLabel)The name of the application version to deploy.-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.elasticbeanstalk.model.ElasticBeanstalkRequest.Builder
build
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
applicationName
CreateEnvironmentRequest.Builder applicationName(String applicationName)
The name of the application that is associated with this environment.
- Parameters:
applicationName- The name of the application that is associated with this environment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
environmentName
CreateEnvironmentRequest.Builder environmentName(String environmentName)
A unique name for the environment.
Constraint: Must be from 4 to 40 characters in length. The name can contain only letters, numbers, and hyphens. It can't start or end with a hyphen. This name must be unique within a region in your account. If the specified name already exists in the region, Elastic Beanstalk returns an
InvalidParameterValueerror.If you don't specify the
CNAMEPrefixparameter, the environment name becomes part of the CNAME, and therefore part of the visible URL for your application.- Parameters:
environmentName- A unique name for the environment.Constraint: Must be from 4 to 40 characters in length. The name can contain only letters, numbers, and hyphens. It can't start or end with a hyphen. This name must be unique within a region in your account. If the specified name already exists in the region, Elastic Beanstalk returns an
InvalidParameterValueerror.If you don't specify the
CNAMEPrefixparameter, the environment name becomes part of the CNAME, and therefore part of the visible URL for your application.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
groupName
CreateEnvironmentRequest.Builder groupName(String groupName)
The name of the group to which the target environment belongs. Specify a group name only if the environment's name is specified in an environment manifest and not with the environment name parameter. See Environment Manifest (env.yaml) for details.
- Parameters:
groupName- The name of the group to which the target environment belongs. Specify a group name only if the environment's name is specified in an environment manifest and not with the environment name parameter. See Environment Manifest (env.yaml) for details.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
CreateEnvironmentRequest.Builder description(String description)
Your description for this environment.
- Parameters:
description- Your description for this environment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cnamePrefix
CreateEnvironmentRequest.Builder cnamePrefix(String cnamePrefix)
If specified, the environment attempts to use this value as the prefix for the CNAME in your Elastic Beanstalk environment URL. If not specified, the CNAME is generated automatically by appending a random alphanumeric string to the environment name.
- Parameters:
cnamePrefix- If specified, the environment attempts to use this value as the prefix for the CNAME in your Elastic Beanstalk environment URL. If not specified, the CNAME is generated automatically by appending a random alphanumeric string to the environment name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tier
CreateEnvironmentRequest.Builder tier(EnvironmentTier tier)
Specifies the tier to use in creating this environment. The environment tier that you choose determines whether Elastic Beanstalk provisions resources to support a web application that handles HTTP(S) requests or a web application that handles background-processing tasks.
- Parameters:
tier- Specifies the tier to use in creating this environment. The environment tier that you choose determines whether Elastic Beanstalk provisions resources to support a web application that handles HTTP(S) requests or a web application that handles background-processing tasks.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tier
default CreateEnvironmentRequest.Builder tier(Consumer<EnvironmentTier.Builder> tier)
Specifies the tier to use in creating this environment. The environment tier that you choose determines whether Elastic Beanstalk provisions resources to support a web application that handles HTTP(S) requests or a web application that handles background-processing tasks.
This is a convenience method that creates an instance of theEnvironmentTier.Builderavoiding the need to create one manually viaEnvironmentTier.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totier(EnvironmentTier).- Parameters:
tier- a consumer that will call methods onEnvironmentTier.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
tier(EnvironmentTier)
-
tags
CreateEnvironmentRequest.Builder tags(Collection<Tag> tags)
Specifies the tags applied to resources in the environment.
- Parameters:
tags- Specifies the tags applied to resources in the environment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
CreateEnvironmentRequest.Builder tags(Tag... tags)
Specifies the tags applied to resources in the environment.
- Parameters:
tags- Specifies the tags applied to resources in the environment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
CreateEnvironmentRequest.Builder tags(Consumer<Tag.Builder>... tags)
Specifies the tags applied to resources in the environment.
This is a convenience method that creates an instance of theTag.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#tags(List.) - Parameters:
tags- a consumer that will call methods onTag.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#tags(java.util.Collection)
-
versionLabel
CreateEnvironmentRequest.Builder versionLabel(String versionLabel)
The name of the application version to deploy.
Default: If not specified, Elastic Beanstalk attempts to deploy the sample application.
- Parameters:
versionLabel- The name of the application version to deploy.Default: If not specified, Elastic Beanstalk attempts to deploy the sample application.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
templateName
CreateEnvironmentRequest.Builder templateName(String templateName)
The name of the Elastic Beanstalk configuration template to use with the environment.
If you specify
TemplateName, then don't specifySolutionStackName.- Parameters:
templateName- The name of the Elastic Beanstalk configuration template to use with the environment.If you specify
TemplateName, then don't specifySolutionStackName.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
solutionStackName
CreateEnvironmentRequest.Builder solutionStackName(String solutionStackName)
The name of an Elastic Beanstalk solution stack (platform version) to use with the environment. If specified, Elastic Beanstalk sets the configuration values to the default values associated with the specified solution stack. For a list of current solution stacks, see Elastic Beanstalk Supported Platforms in the AWS Elastic Beanstalk Platforms guide.
If you specify
SolutionStackName, don't specifyPlatformArnorTemplateName.- Parameters:
solutionStackName- The name of an Elastic Beanstalk solution stack (platform version) to use with the environment. If specified, Elastic Beanstalk sets the configuration values to the default values associated with the specified solution stack. For a list of current solution stacks, see Elastic Beanstalk Supported Platforms in the AWS Elastic Beanstalk Platforms guide.If you specify
SolutionStackName, don't specifyPlatformArnorTemplateName.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
platformArn
CreateEnvironmentRequest.Builder platformArn(String platformArn)
The Amazon Resource Name (ARN) of the custom platform to use with the environment. For more information, see Custom Platforms in the AWS Elastic Beanstalk Developer Guide.
If you specify
PlatformArn, don't specifySolutionStackName.- Parameters:
platformArn- The Amazon Resource Name (ARN) of the custom platform to use with the environment. For more information, see Custom Platforms in the AWS Elastic Beanstalk Developer Guide.If you specify
PlatformArn, don't specifySolutionStackName.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
optionSettings
CreateEnvironmentRequest.Builder optionSettings(Collection<ConfigurationOptionSetting> optionSettings)
If specified, AWS Elastic Beanstalk sets the specified configuration options to the requested value in the configuration set for the new environment. These override the values obtained from the solution stack or the configuration template.
- Parameters:
optionSettings- If specified, AWS Elastic Beanstalk sets the specified configuration options to the requested value in the configuration set for the new environment. These override the values obtained from the solution stack or the configuration template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
optionSettings
CreateEnvironmentRequest.Builder optionSettings(ConfigurationOptionSetting... optionSettings)
If specified, AWS Elastic Beanstalk sets the specified configuration options to the requested value in the configuration set for the new environment. These override the values obtained from the solution stack or the configuration template.
- Parameters:
optionSettings- If specified, AWS Elastic Beanstalk sets the specified configuration options to the requested value in the configuration set for the new environment. These override the values obtained from the solution stack or the configuration template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
optionSettings
CreateEnvironmentRequest.Builder optionSettings(Consumer<ConfigurationOptionSetting.Builder>... optionSettings)
If specified, AWS Elastic Beanstalk sets the specified configuration options to the requested value in the configuration set for the new environment. These override the values obtained from the solution stack or the configuration template.
This is a convenience method that creates an instance of theConfigurationOptionSetting.Builderavoiding the need to create one manually viaConfigurationOptionSetting.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#optionSettings(List.) - Parameters:
optionSettings- a consumer that will call methods onConfigurationOptionSetting.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#optionSettings(java.util.Collection)
-
optionsToRemove
CreateEnvironmentRequest.Builder optionsToRemove(Collection<OptionSpecification> optionsToRemove)
A list of custom user-defined configuration options to remove from the configuration set for this new environment.
- Parameters:
optionsToRemove- A list of custom user-defined configuration options to remove from the configuration set for this new environment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
optionsToRemove
CreateEnvironmentRequest.Builder optionsToRemove(OptionSpecification... optionsToRemove)
A list of custom user-defined configuration options to remove from the configuration set for this new environment.
- Parameters:
optionsToRemove- A list of custom user-defined configuration options to remove from the configuration set for this new environment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
optionsToRemove
CreateEnvironmentRequest.Builder optionsToRemove(Consumer<OptionSpecification.Builder>... optionsToRemove)
A list of custom user-defined configuration options to remove from the configuration set for this new environment.
This is a convenience method that creates an instance of theOptionSpecification.Builderavoiding the need to create one manually viaOptionSpecification.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#optionsToRemove(List.) - Parameters:
optionsToRemove- a consumer that will call methods onOptionSpecification.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#optionsToRemove(java.util.Collection)
-
operationsRole
CreateEnvironmentRequest.Builder operationsRole(String operationsRole)
The Amazon Resource Name (ARN) of an existing IAM role to be used as the environment's operations role. If specified, Elastic Beanstalk uses the operations role for permissions to downstream services during this call and during subsequent calls acting on this environment. To specify an operations role, you must have the
iam:PassRolepermission for the role. For more information, see Operations roles in the AWS Elastic Beanstalk Developer Guide.- Parameters:
operationsRole- The Amazon Resource Name (ARN) of an existing IAM role to be used as the environment's operations role. If specified, Elastic Beanstalk uses the operations role for permissions to downstream services during this call and during subsequent calls acting on this environment. To specify an operations role, you must have theiam:PassRolepermission for the role. For more information, see Operations roles in the AWS Elastic Beanstalk Developer Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateEnvironmentRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
CreateEnvironmentRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-