com.amazonaws.services.ec2.model
Class GetConsoleOutputRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.ec2.model.GetConsoleOutputRequest

public class GetConsoleOutputRequest
extends AmazonWebServiceRequest

Container for the parameters to the GetConsoleOutput operation.

The GetConsoleOutput operation retrieves console output for the specified instance.

Instance console output is buffered and posted shortly after instance boot, reboot, and termination. Amazon EC2 preserves the most recent 64 KB output which will be available for at least one hour after the most recent post.

See Also:
AmazonEC2.getConsoleOutput(GetConsoleOutputRequest)

Constructor Summary
GetConsoleOutputRequest()
          Default constructor for a new GetConsoleOutputRequest object.
GetConsoleOutputRequest(String instanceId)
          Constructs a new GetConsoleOutputRequest object.
 
Method Summary
 boolean equals(Object obj)
           
 String getInstanceId()
          The ID of the instance for which you want console output.
 int hashCode()
           
 void setInstanceId(String instanceId)
          The ID of the instance for which you want console output.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 GetConsoleOutputRequest withInstanceId(String instanceId)
          The ID of the instance for which you want console output.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, setDelegationToken, setRequestCredentials
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GetConsoleOutputRequest

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


GetConsoleOutputRequest

public GetConsoleOutputRequest(String instanceId)
Constructs a new GetConsoleOutputRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
instanceId - The ID of the instance for which you want console output.
Method Detail

getInstanceId

public String getInstanceId()
The ID of the instance for which you want console output.

Returns:
The ID of the instance for which you want console output.

setInstanceId

public void setInstanceId(String instanceId)
The ID of the instance for which you want console output.

Parameters:
instanceId - The ID of the instance for which you want console output.

withInstanceId

public GetConsoleOutputRequest withInstanceId(String instanceId)
The ID of the instance for which you want console output.

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

Parameters:
instanceId - The ID of the instance for which you want console output.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

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

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


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