com.amazonaws.services.ec2.model
Class GetConsoleOutputRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.ec2.model.GetConsoleOutputRequest
All Implemented Interfaces:
DryRunSupportedRequest<GetConsoleOutputRequest>, java.io.Serializable

public class GetConsoleOutputRequest
extends AmazonWebServiceRequest
implements java.io.Serializable, DryRunSupportedRequest<GetConsoleOutputRequest>

Container for the parameters to the GetConsoleOutput operation.

Gets the console output for the specified instance.

Instances do not have a physical monitor through which you can view their console output. They also lack physical controls that allow you to power up, reboot, or shut them down. To allow these actions, we provide them through the Amazon EC2 API and command line interface.

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

For Linux/Unix instances, the instance console output displays the exact console output that would normally be displayed on a physical monitor attached to a machine. This output is buffered because the instance produces it and then posts it to a store where the instance's owner can retrieve it.

For Windows instances, the instance console output displays the last three system event log errors.

See Also:
AmazonEC2.getConsoleOutput(GetConsoleOutputRequest), Serialized Form

Constructor Summary
GetConsoleOutputRequest()
          Default constructor for a new GetConsoleOutputRequest object.
GetConsoleOutputRequest(java.lang.String instanceId)
          Constructs a new GetConsoleOutputRequest object.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 Request<GetConsoleOutputRequest> getDryRunRequest()
          This method is intended for internal use only.
 java.lang.String getInstanceId()
          The ID of the instance.
 int hashCode()
           
 void setInstanceId(java.lang.String instanceId)
          The ID of the instance.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 GetConsoleOutputRequest withInstanceId(java.lang.String instanceId)
          The ID of the instance.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setDelegationToken, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
 
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(java.lang.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.
Method Detail

getInstanceId

public java.lang.String getInstanceId()
The ID of the instance.

Returns:
The ID of the instance.

setInstanceId

public void setInstanceId(java.lang.String instanceId)
The ID of the instance.

Parameters:
instanceId - The ID of the instance.

withInstanceId

public GetConsoleOutputRequest withInstanceId(java.lang.String instanceId)
The ID of the instance.

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

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

getDryRunRequest

public Request<GetConsoleOutputRequest> getDryRunRequest()
This method is intended for internal use only. Returns the marshaled request configured with additional parameters to enable operation dry-run.

Specified by:
getDryRunRequest in interface DryRunSupportedRequest<GetConsoleOutputRequest>

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()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


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