|
Did this page help you?Yes No Tell us about it... |
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.elasticbeanstalk.model.CreateEnvironmentRequest
public class CreateEnvironmentRequest
Container for the parameters to the CreateEnvironment operation
.
Launches an environment for the specified application using the specified configuration.
AWSElasticBeanstalk.createEnvironment(CreateEnvironmentRequest)
,
Serialized FormConstructor Summary | |
---|---|
CreateEnvironmentRequest()
Default constructor for a new CreateEnvironmentRequest object. |
|
CreateEnvironmentRequest(String applicationName,
String environmentName)
Constructs a new CreateEnvironmentRequest object. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
String |
getApplicationName()
The name of the application that contains the version to be deployed. |
String |
getCNAMEPrefix()
If specified, the environment attempts to use this value as the prefix for the CNAME. |
String |
getDescription()
Describes this environment. |
String |
getEnvironmentName()
A unique name for the deployment environment. |
List<ConfigurationOptionSetting> |
getOptionSettings()
If specified, AWS Elastic Beanstalk sets the specified configuration options to the requested value in the configuration set for the new environment. |
List<OptionSpecification> |
getOptionsToRemove()
A list of custom user-defined configuration options to remove from the configuration set for this new environment. |
String |
getSolutionStackName()
This is an alternative to specifying a configuration name. |
String |
getTemplateName()
The name of the configuration template to use in deployment. |
String |
getVersionLabel()
The name of the application version to deploy. |
int |
hashCode()
|
void |
setApplicationName(String applicationName)
The name of the application that contains the version to be deployed. |
void |
setCNAMEPrefix(String cNAMEPrefix)
If specified, the environment attempts to use this value as the prefix for the CNAME. |
void |
setDescription(String description)
Describes this environment. |
void |
setEnvironmentName(String environmentName)
A unique name for the deployment environment. |
void |
setOptionSettings(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. |
void |
setOptionsToRemove(Collection<OptionSpecification> optionsToRemove)
A list of custom user-defined configuration options to remove from the configuration set for this new environment. |
void |
setSolutionStackName(String solutionStackName)
This is an alternative to specifying a configuration name. |
void |
setTemplateName(String templateName)
The name of the configuration template to use in deployment. |
void |
setVersionLabel(String versionLabel)
The name of the application version to deploy. |
String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
CreateEnvironmentRequest |
withApplicationName(String applicationName)
The name of the application that contains the version to be deployed. |
CreateEnvironmentRequest |
withCNAMEPrefix(String cNAMEPrefix)
If specified, the environment attempts to use this value as the prefix for the CNAME. |
CreateEnvironmentRequest |
withDescription(String description)
Describes this environment. |
CreateEnvironmentRequest |
withEnvironmentName(String environmentName)
A unique name for the deployment environment. |
CreateEnvironmentRequest |
withOptionSettings(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 |
withOptionSettings(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 |
withOptionsToRemove(Collection<OptionSpecification> optionsToRemove)
A list of custom user-defined configuration options to remove from the configuration set for this new environment. |
CreateEnvironmentRequest |
withOptionsToRemove(OptionSpecification... optionsToRemove)
A list of custom user-defined configuration options to remove from the configuration set for this new environment. |
CreateEnvironmentRequest |
withSolutionStackName(String solutionStackName)
This is an alternative to specifying a configuration name. |
CreateEnvironmentRequest |
withTemplateName(String templateName)
The name of the configuration template to use in deployment. |
CreateEnvironmentRequest |
withVersionLabel(String versionLabel)
The name of the application version to deploy. |
Methods inherited from class com.amazonaws.AmazonWebServiceRequest |
---|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CreateEnvironmentRequest()
public CreateEnvironmentRequest(String applicationName, String environmentName)
applicationName
- The name of the application that contains the
version to be deployed. If no application is found with this name,
CreateEnvironment
returns an
InvalidParameterValue
error.
environmentName
- A unique name for the deployment environment.
Used in the application URL. Constraint: Must be from 4 to 23
characters in length. The name can contain only letters, numbers, and
hyphens. It cannot start or end with a hyphen. This name must be
unique in your account. If the specified name already exists, AWS
Elastic Beanstalk returns an InvalidParameterValue
error.
Default: If the CNAME parameter is not specified, the environment name becomes part of the CNAME, and therefore part of the visible URL for your application.
Method Detail |
---|
public String getApplicationName()
If no application is found with this name,
CreateEnvironment
returns an
InvalidParameterValue
error.
Constraints:
Length: 1 - 100
If no application is found with this name,
CreateEnvironment
returns an
InvalidParameterValue
error.
public void setApplicationName(String applicationName)
If no application is found with this name,
CreateEnvironment
returns an
InvalidParameterValue
error.
Constraints:
Length: 1 - 100
applicationName
- The name of the application that contains the version to be deployed.
If no application is found with this name,
CreateEnvironment
returns an
InvalidParameterValue
error.
public CreateEnvironmentRequest withApplicationName(String applicationName)
If no application is found with this name,
CreateEnvironment
returns an
InvalidParameterValue
error.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 100
applicationName
- The name of the application that contains the version to be deployed.
If no application is found with this name,
CreateEnvironment
returns an
InvalidParameterValue
error.
public String getVersionLabel()
If the specified
application has no associated application versions, AWS Elastic
Beanstalk UpdateEnvironment
returns an
InvalidParameterValue
error.
Default: If not specified, AWS Elastic Beanstalk attempts to launch the most recently created application version.
Constraints:
Length: 1 - 100
If the specified
application has no associated application versions, AWS Elastic
Beanstalk UpdateEnvironment
returns an
InvalidParameterValue
error.
Default: If not specified, AWS Elastic Beanstalk attempts to launch the most recently created application version.
public void setVersionLabel(String versionLabel)
If the specified
application has no associated application versions, AWS Elastic
Beanstalk UpdateEnvironment
returns an
InvalidParameterValue
error.
Default: If not specified, AWS Elastic Beanstalk attempts to launch the most recently created application version.
Constraints:
Length: 1 - 100
versionLabel
- The name of the application version to deploy. If the specified
application has no associated application versions, AWS Elastic
Beanstalk UpdateEnvironment
returns an
InvalidParameterValue
error.
Default: If not specified, AWS Elastic Beanstalk attempts to launch the most recently created application version.
public CreateEnvironmentRequest withVersionLabel(String versionLabel)
If the specified
application has no associated application versions, AWS Elastic
Beanstalk UpdateEnvironment
returns an
InvalidParameterValue
error.
Default: If not specified, AWS Elastic Beanstalk attempts to launch the most recently created application version.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 100
versionLabel
- The name of the application version to deploy. If the specified
application has no associated application versions, AWS Elastic
Beanstalk UpdateEnvironment
returns an
InvalidParameterValue
error.
Default: If not specified, AWS Elastic Beanstalk attempts to launch the most recently created application version.
public String getEnvironmentName()
Constraint: Must be from 4 to 23 characters in length. The
name can contain only letters, numbers, and hyphens. It cannot start
or end with a hyphen. This name must be unique in your account. If the
specified name already exists, AWS Elastic Beanstalk returns an
InvalidParameterValue
error.
Default: If the CNAME parameter is not specified, the environment name becomes part of the CNAME, and therefore part of the visible URL for your application.
Constraints:
Length: 4 - 23
Constraint: Must be from 4 to 23 characters in length. The
name can contain only letters, numbers, and hyphens. It cannot start
or end with a hyphen. This name must be unique in your account. If the
specified name already exists, AWS Elastic Beanstalk returns an
InvalidParameterValue
error.
Default: If the CNAME parameter is not specified, the environment name becomes part of the CNAME, and therefore part of the visible URL for your application.
public void setEnvironmentName(String environmentName)
Constraint: Must be from 4 to 23 characters in length. The
name can contain only letters, numbers, and hyphens. It cannot start
or end with a hyphen. This name must be unique in your account. If the
specified name already exists, AWS Elastic Beanstalk returns an
InvalidParameterValue
error.
Default: If the CNAME parameter is not specified, the environment name becomes part of the CNAME, and therefore part of the visible URL for your application.
Constraints:
Length: 4 - 23
environmentName
- A unique name for the deployment environment. Used in the application
URL. Constraint: Must be from 4 to 23 characters in length. The
name can contain only letters, numbers, and hyphens. It cannot start
or end with a hyphen. This name must be unique in your account. If the
specified name already exists, AWS Elastic Beanstalk returns an
InvalidParameterValue
error.
Default: If the CNAME parameter is not specified, the environment name becomes part of the CNAME, and therefore part of the visible URL for your application.
public CreateEnvironmentRequest withEnvironmentName(String environmentName)
Constraint: Must be from 4 to 23 characters in length. The
name can contain only letters, numbers, and hyphens. It cannot start
or end with a hyphen. This name must be unique in your account. If the
specified name already exists, AWS Elastic Beanstalk returns an
InvalidParameterValue
error.
Default: If the CNAME parameter is not specified, the environment name becomes part of the CNAME, and therefore part of the visible URL for your application.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 4 - 23
environmentName
- A unique name for the deployment environment. Used in the application
URL. Constraint: Must be from 4 to 23 characters in length. The
name can contain only letters, numbers, and hyphens. It cannot start
or end with a hyphen. This name must be unique in your account. If the
specified name already exists, AWS Elastic Beanstalk returns an
InvalidParameterValue
error.
Default: If the CNAME parameter is not specified, the environment name becomes part of the CNAME, and therefore part of the visible URL for your application.
public String getTemplateName()
InvalidParameterValue
error. Condition:
You must specify either this parameter or a
SolutionStackName
, but not both. If you specify both, AWS
Elastic Beanstalk returns an InvalidParameterCombination
error. If you do not specify either, AWS Elastic Beanstalk returns a
MissingRequiredParameter
error.
Constraints:
Length: 1 - 100
InvalidParameterValue
error. Condition:
You must specify either this parameter or a
SolutionStackName
, but not both. If you specify both, AWS
Elastic Beanstalk returns an InvalidParameterCombination
error. If you do not specify either, AWS Elastic Beanstalk returns a
MissingRequiredParameter
error.
public void setTemplateName(String templateName)
InvalidParameterValue
error. Condition:
You must specify either this parameter or a
SolutionStackName
, but not both. If you specify both, AWS
Elastic Beanstalk returns an InvalidParameterCombination
error. If you do not specify either, AWS Elastic Beanstalk returns a
MissingRequiredParameter
error.
Constraints:
Length: 1 - 100
templateName
- The name of the configuration template to use in deployment. If no
configuration template is found with this name, AWS Elastic Beanstalk
returns an InvalidParameterValue
error. Condition:
You must specify either this parameter or a
SolutionStackName
, but not both. If you specify both, AWS
Elastic Beanstalk returns an InvalidParameterCombination
error. If you do not specify either, AWS Elastic Beanstalk returns a
MissingRequiredParameter
error.
public CreateEnvironmentRequest withTemplateName(String templateName)
InvalidParameterValue
error. Condition:
You must specify either this parameter or a
SolutionStackName
, but not both. If you specify both, AWS
Elastic Beanstalk returns an InvalidParameterCombination
error. If you do not specify either, AWS Elastic Beanstalk returns a
MissingRequiredParameter
error.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 100
templateName
- The name of the configuration template to use in deployment. If no
configuration template is found with this name, AWS Elastic Beanstalk
returns an InvalidParameterValue
error. Condition:
You must specify either this parameter or a
SolutionStackName
, but not both. If you specify both, AWS
Elastic Beanstalk returns an InvalidParameterCombination
error. If you do not specify either, AWS Elastic Beanstalk returns a
MissingRequiredParameter
error.
public String getSolutionStackName()
Condition: You must specify either this or a
TemplateName
, but not both. If you specify both, AWS
Elastic Beanstalk returns an InvalidParameterCombination
error. If you do not specify either, AWS Elastic Beanstalk returns a
MissingRequiredParameter
error.
Constraints:
Length: 0 - 100
Condition: You must specify either this or a
TemplateName
, but not both. If you specify both, AWS
Elastic Beanstalk returns an InvalidParameterCombination
error. If you do not specify either, AWS Elastic Beanstalk returns a
MissingRequiredParameter
error.
public void setSolutionStackName(String solutionStackName)
Condition: You must specify either this or a
TemplateName
, but not both. If you specify both, AWS
Elastic Beanstalk returns an InvalidParameterCombination
error. If you do not specify either, AWS Elastic Beanstalk returns a
MissingRequiredParameter
error.
Constraints:
Length: 0 - 100
solutionStackName
- This is an alternative to specifying a configuration name. If
specified, AWS Elastic Beanstalk sets the configuration values to the
default values associated with the specified solution stack.
Condition: You must specify either this or a
TemplateName
, but not both. If you specify both, AWS
Elastic Beanstalk returns an InvalidParameterCombination
error. If you do not specify either, AWS Elastic Beanstalk returns a
MissingRequiredParameter
error.
public CreateEnvironmentRequest withSolutionStackName(String solutionStackName)
Condition: You must specify either this or a
TemplateName
, but not both. If you specify both, AWS
Elastic Beanstalk returns an InvalidParameterCombination
error. If you do not specify either, AWS Elastic Beanstalk returns a
MissingRequiredParameter
error.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 100
solutionStackName
- This is an alternative to specifying a configuration name. If
specified, AWS Elastic Beanstalk sets the configuration values to the
default values associated with the specified solution stack.
Condition: You must specify either this or a
TemplateName
, but not both. If you specify both, AWS
Elastic Beanstalk returns an InvalidParameterCombination
error. If you do not specify either, AWS Elastic Beanstalk returns a
MissingRequiredParameter
error.
public String getCNAMEPrefix()
Constraints:
Length: 4 - 63
public void setCNAMEPrefix(String cNAMEPrefix)
Constraints:
Length: 4 - 63
cNAMEPrefix
- If specified, the environment attempts to use this value as the prefix
for the CNAME. If not specified, the environment uses the environment
name.public CreateEnvironmentRequest withCNAMEPrefix(String cNAMEPrefix)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 4 - 63
cNAMEPrefix
- If specified, the environment attempts to use this value as the prefix
for the CNAME. If not specified, the environment uses the environment
name.
public String getDescription()
Constraints:
Length: 0 - 200
public void setDescription(String description)
Constraints:
Length: 0 - 200
description
- Describes this environment.public CreateEnvironmentRequest withDescription(String description)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 200
description
- Describes this environment.
public List<ConfigurationOptionSetting> getOptionSettings()
public void setOptionSettings(Collection<ConfigurationOptionSetting> optionSettings)
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.public CreateEnvironmentRequest withOptionSettings(ConfigurationOptionSetting... optionSettings)
Returns a reference to this object so that method calls can be chained together.
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.
public CreateEnvironmentRequest withOptionSettings(Collection<ConfigurationOptionSetting> optionSettings)
Returns a reference to this object so that method calls can be chained together.
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.
public List<OptionSpecification> getOptionsToRemove()
public void setOptionsToRemove(Collection<OptionSpecification> optionsToRemove)
optionsToRemove
- A list of custom user-defined configuration options to remove from the
configuration set for this new environment.public CreateEnvironmentRequest withOptionsToRemove(OptionSpecification... optionsToRemove)
Returns a reference to this object so that method calls can be chained together.
optionsToRemove
- A list of custom user-defined configuration options to remove from the
configuration set for this new environment.
public CreateEnvironmentRequest withOptionsToRemove(Collection<OptionSpecification> optionsToRemove)
Returns a reference to this object so that method calls can be chained together.
optionsToRemove
- A list of custom user-defined configuration options to remove from the
configuration set for this new environment.
public String toString()
toString
in class Object
Object.toString()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |