com.amazonaws.services.elasticbeanstalk.model
Class RestartAppServerRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.elasticbeanstalk.model.RestartAppServerRequest

public class RestartAppServerRequest
extends AmazonWebServiceRequest

Container for the parameters to the RestartAppServer operation.

Causes the environment to restart the application container server running on each Amazon EC2 instance.

See Also:
AWSElasticBeanstalk.restartAppServer(RestartAppServerRequest)

Constructor Summary
RestartAppServerRequest()
          Default constructor for a new RestartAppServerRequest object.
 
Method Summary
 java.lang.String getEnvironmentId()
          The ID of the environment to restart the server for.
 java.lang.String getEnvironmentName()
          The name of the environment to restart the server for.
 void setEnvironmentId(java.lang.String environmentId)
          The ID of the environment to restart the server for.
 void setEnvironmentName(java.lang.String environmentName)
          The name of the environment to restart the server for.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 RestartAppServerRequest withEnvironmentId(java.lang.String environmentId)
          The ID of the environment to restart the server for.
 RestartAppServerRequest withEnvironmentName(java.lang.String environmentName)
          The name of the environment to restart the server for.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RestartAppServerRequest

public RestartAppServerRequest()
Default constructor for a new RestartAppServerRequest object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.

Method Detail

getEnvironmentId

public java.lang.String getEnvironmentId()
The ID of the environment to restart the server for.

Returns:
The ID of the environment to restart the server for.

setEnvironmentId

public void setEnvironmentId(java.lang.String environmentId)
The ID of the environment to restart the server for.

Parameters:
environmentId - The ID of the environment to restart the server for.

withEnvironmentId

public RestartAppServerRequest withEnvironmentId(java.lang.String environmentId)
The ID of the environment to restart the server for.

Returns a reference to this object so that method calls can be chained together.

Parameters:
environmentId - The ID of the environment to restart the server for.
Returns:
A reference to this updated object so that method calls can be chained together.

getEnvironmentName

public java.lang.String getEnvironmentName()
The name of the environment to restart the server for.

Constraints:
Length: 4 - 23

Returns:
The name of the environment to restart the server for.

setEnvironmentName

public void setEnvironmentName(java.lang.String environmentName)
The name of the environment to restart the server for.

Constraints:
Length: 4 - 23

Parameters:
environmentName - The name of the environment to restart the server for.

withEnvironmentName

public RestartAppServerRequest withEnvironmentName(java.lang.String environmentName)
The name of the environment to restart the server for.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 4 - 23

Parameters:
environmentName - The name of the environment to restart the server for.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.