public class RestartAppServerRequest extends AmazonWebServiceRequest implements Serializable
RestartAppServer operation.
Causes the environment to restart the application container server running on each Amazon EC2 instance.
NOOP| Constructor and Description |
|---|
RestartAppServerRequest()
Default constructor for a new RestartAppServerRequest object.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getEnvironmentId()
The ID of the environment to restart the server for.
|
String |
getEnvironmentName()
The name of the environment to restart the server for.
|
int |
hashCode() |
void |
setEnvironmentId(String environmentId)
The ID of the environment to restart the server for.
|
void |
setEnvironmentName(String environmentName)
The name of the environment to restart the server for.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
RestartAppServerRequest |
withEnvironmentId(String environmentId)
The ID of the environment to restart the server for.
|
RestartAppServerRequest |
withEnvironmentName(String environmentName)
The name of the environment to restart the server for.
|
copyBaseTo, copyPrivateRequestParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic RestartAppServerRequest()
public String getEnvironmentId()
Condition:
You must specify either this or an EnvironmentName, or both. If you do
not specify either, AWS Elastic Beanstalk returns
MissingRequiredParameter error.
Condition:
You must specify either this or an EnvironmentName, or both. If you do
not specify either, AWS Elastic Beanstalk returns
MissingRequiredParameter error.
public void setEnvironmentId(String environmentId)
Condition:
You must specify either this or an EnvironmentName, or both. If you do
not specify either, AWS Elastic Beanstalk returns
MissingRequiredParameter error.
environmentId - The ID of the environment to restart the server for. Condition:
You must specify either this or an EnvironmentName, or both. If you do
not specify either, AWS Elastic Beanstalk returns
MissingRequiredParameter error.
public RestartAppServerRequest withEnvironmentId(String environmentId)
Condition:
You must specify either this or an EnvironmentName, or both. If you do
not specify either, AWS Elastic Beanstalk returns
MissingRequiredParameter error.
Returns a reference to this object so that method calls can be chained together.
environmentId - The ID of the environment to restart the server for. Condition:
You must specify either this or an EnvironmentName, or both. If you do
not specify either, AWS Elastic Beanstalk returns
MissingRequiredParameter error.
public String getEnvironmentName()
Condition:
You must specify either this or an EnvironmentId, or both. If you do
not specify either, AWS Elastic Beanstalk returns
MissingRequiredParameter error.
Constraints:
Length: 4 - 23
Condition:
You must specify either this or an EnvironmentId, or both. If you do
not specify either, AWS Elastic Beanstalk returns
MissingRequiredParameter error.
public void setEnvironmentName(String environmentName)
Condition:
You must specify either this or an EnvironmentId, or both. If you do
not specify either, AWS Elastic Beanstalk returns
MissingRequiredParameter error.
Constraints:
Length: 4 - 23
environmentName - The name of the environment to restart the server for. Condition:
You must specify either this or an EnvironmentId, or both. If you do
not specify either, AWS Elastic Beanstalk returns
MissingRequiredParameter error.
public RestartAppServerRequest withEnvironmentName(String environmentName)
Condition:
You must specify either this or an EnvironmentId, or both. If you do
not specify either, AWS Elastic Beanstalk returns
MissingRequiredParameter error.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 4 - 23
environmentName - The name of the environment to restart the server for. Condition:
You must specify either this or an EnvironmentId, or both. If you do
not specify either, AWS Elastic Beanstalk returns
MissingRequiredParameter error.
public String toString()
toString in class ObjectObject.toString()Copyright © 2015. All rights reserved.