@Generated(value="software.amazon.awssdk:codegen") public final class CreateEnvironmentRequest extends ElasticBeanstalkRequest implements ToCopyableBuilder<CreateEnvironmentRequest.Builder,CreateEnvironmentRequest>
| Modifier and Type | Class and Description |
|---|---|
static interface |
CreateEnvironmentRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
applicationName()
The name of the application that is associated with this environment.
|
static CreateEnvironmentRequest.Builder |
builder() |
String |
cnamePrefix()
If specified, the environment attempts to use this value as the prefix for the CNAME in your Elastic Beanstalk
environment URL.
|
String |
description()
Your description for this environment.
|
String |
environmentName()
A unique name for the environment.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
String |
groupName()
The name of the group to which the target environment belongs.
|
int |
hashCode() |
boolean |
hasOptionSettings()
For responses, this returns true if the service returned a value for the OptionSettings property.
|
boolean |
hasOptionsToRemove()
For responses, this returns true if the service returned a value for the OptionsToRemove property.
|
boolean |
hasTags()
For responses, this returns true if the service returned a value for the Tags property.
|
String |
operationsRole()
The Amazon Resource Name (ARN) of an existing IAM role to be used as the environment's operations role.
|
List<ConfigurationOptionSetting> |
optionSettings()
If specified, AWS Elastic Beanstalk sets the specified configuration options to the requested value in the
configuration set for the new environment.
|
List<OptionSpecification> |
optionsToRemove()
A list of custom user-defined configuration options to remove from the configuration set for this new
environment.
|
String |
platformArn()
The Amazon Resource Name (ARN) of the custom platform to use with the environment.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends CreateEnvironmentRequest.Builder> |
serializableBuilderClass() |
String |
solutionStackName()
The name of an Elastic Beanstalk solution stack (platform version) to use with the environment.
|
List<Tag> |
tags()
Specifies the tags applied to resources in the environment.
|
String |
templateName()
The name of the Elastic Beanstalk configuration template to use with the environment.
|
EnvironmentTier |
tier()
Specifies the tier to use in creating this environment.
|
CreateEnvironmentRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
versionLabel()
The name of the application version to deploy.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String applicationName()
The name of the application that is associated with this environment.
public final 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 InvalidParameterValue error.
If you don't specify the CNAMEPrefix parameter, the environment name becomes part of the CNAME, and
therefore part of the visible URL for your application.
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
InvalidParameterValue error.
If you don't specify the CNAMEPrefix parameter, the environment name becomes part of the
CNAME, and therefore part of the visible URL for your application.
public final 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.
public final String description()
Your description for this environment.
public final 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.
public final 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.
public final boolean hasTags()
isEmpty() method on the property). This is useful
because the SDK will never return a null collection or map, but you may need to differentiate between the service
returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true
if a value for the property was specified in the request builder, and false if a value was not specified.public final List<Tag> tags()
Specifies the tags applied to resources in the environment.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasTags() method.
public final String versionLabel()
The name of the application version to deploy.
Default: If not specified, Elastic Beanstalk attempts to deploy the sample application.
Default: If not specified, Elastic Beanstalk attempts to deploy the sample application.
public final String templateName()
The name of the Elastic Beanstalk configuration template to use with the environment.
If you specify TemplateName, then don't specify SolutionStackName.
If you specify TemplateName, then don't specify SolutionStackName.
public final 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 specify PlatformArn or
TemplateName.
If you specify SolutionStackName, don't specify PlatformArn or
TemplateName.
public final 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 specify SolutionStackName.
If you specify PlatformArn, don't specify SolutionStackName.
public final boolean hasOptionSettings()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<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.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasOptionSettings() method.
public final boolean hasOptionsToRemove()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<OptionSpecification> optionsToRemove()
A list of custom user-defined configuration options to remove from the configuration set for this new environment.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasOptionsToRemove() method.
public final 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:PassRole permission for the role. For more information, see Operations roles in the
AWS Elastic Beanstalk Developer Guide.
iam:PassRole permission for the role. For more information, see Operations
roles in the AWS Elastic Beanstalk Developer Guide.public CreateEnvironmentRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<CreateEnvironmentRequest.Builder,CreateEnvironmentRequest>toBuilder in class ElasticBeanstalkRequestpublic static CreateEnvironmentRequest.Builder builder()
public static Class<? extends CreateEnvironmentRequest.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsRequestpublic final boolean equals(Object obj)
equals in class AwsRequestpublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2022. All rights reserved.