com.amazonaws.services.ec2.model
Class ReportInstanceStatusRequest

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

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

Container for the parameters to the ReportInstanceStatus operation.

Submits feedback about the status of an instance. The instance must be in the running state. If your experience with the instance differs from the instance status returned by DescribeInstanceStatus, use ReportInstanceStatus to report your experience with the instance. Amazon EC2 collects this information to improve the accuracy of status checks.

See Also:
AmazonEC2.reportInstanceStatus(ReportInstanceStatusRequest), Serialized Form

Constructor Summary
ReportInstanceStatusRequest()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getDescription()
          Descriptive text about the health state of your instance.
 Request<ReportInstanceStatusRequest> getDryRunRequest()
          This method is intended for internal use only.
 java.util.Date getEndTime()
          The time at which the reported instance health state ended.
 java.util.List<java.lang.String> getInstances()
          One or more instances.
 java.util.List<java.lang.String> getReasonCodes()
          One or more reason codes that describes the health state of your instance.
 java.util.Date getStartTime()
          The time at which the reported instance health state began.
 java.lang.String getStatus()
          The status of all instances listed.
 int hashCode()
           
 void setDescription(java.lang.String description)
          Descriptive text about the health state of your instance.
 void setEndTime(java.util.Date endTime)
          The time at which the reported instance health state ended.
 void setInstances(java.util.Collection<java.lang.String> instances)
          One or more instances.
 void setReasonCodes(java.util.Collection<java.lang.String> reasonCodes)
          One or more reason codes that describes the health state of your instance.
 void setStartTime(java.util.Date startTime)
          The time at which the reported instance health state began.
 void setStatus(ReportStatusType status)
          The status of all instances listed.
 void setStatus(java.lang.String status)
          The status of all instances listed.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 ReportInstanceStatusRequest withDescription(java.lang.String description)
          Descriptive text about the health state of your instance.
 ReportInstanceStatusRequest withEndTime(java.util.Date endTime)
          The time at which the reported instance health state ended.
 ReportInstanceStatusRequest withInstances(java.util.Collection<java.lang.String> instances)
          One or more instances.
 ReportInstanceStatusRequest withInstances(java.lang.String... instances)
          One or more instances.
 ReportInstanceStatusRequest withReasonCodes(java.util.Collection<java.lang.String> reasonCodes)
          One or more reason codes that describes the health state of your instance.
 ReportInstanceStatusRequest withReasonCodes(ReportInstanceReasonCodes... reasonCodes)
          One or more reason codes that describes the health state of your instance.
 ReportInstanceStatusRequest withReasonCodes(java.lang.String... reasonCodes)
          One or more reason codes that describes the health state of your instance.
 ReportInstanceStatusRequest withStartTime(java.util.Date startTime)
          The time at which the reported instance health state began.
 ReportInstanceStatusRequest withStatus(ReportStatusType status)
          The status of all instances listed.
 ReportInstanceStatusRequest withStatus(java.lang.String status)
          The status of all instances listed.
 
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

ReportInstanceStatusRequest

public ReportInstanceStatusRequest()
Method Detail

getInstances

public java.util.List<java.lang.String> getInstances()
One or more instances.

Returns:
One or more instances.

setInstances

public void setInstances(java.util.Collection<java.lang.String> instances)
One or more instances.

Parameters:
instances - One or more instances.

withInstances

public ReportInstanceStatusRequest withInstances(java.lang.String... instances)
One or more instances.

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

Parameters:
instances - One or more instances.
Returns:
A reference to this updated object so that method calls can be chained together.

withInstances

public ReportInstanceStatusRequest withInstances(java.util.Collection<java.lang.String> instances)
One or more instances.

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

Parameters:
instances - One or more instances.
Returns:
A reference to this updated object so that method calls can be chained together.

getStatus

public java.lang.String getStatus()
The status of all instances listed.

Constraints:
Allowed Values: ok, impaired

Returns:
The status of all instances listed.
See Also:
ReportStatusType

setStatus

public void setStatus(java.lang.String status)
The status of all instances listed.

Constraints:
Allowed Values: ok, impaired

Parameters:
status - The status of all instances listed.
See Also:
ReportStatusType

withStatus

public ReportInstanceStatusRequest withStatus(java.lang.String status)
The status of all instances listed.

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

Constraints:
Allowed Values: ok, impaired

Parameters:
status - The status of all instances listed.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
ReportStatusType

setStatus

public void setStatus(ReportStatusType status)
The status of all instances listed.

Constraints:
Allowed Values: ok, impaired

Parameters:
status - The status of all instances listed.
See Also:
ReportStatusType

withStatus

public ReportInstanceStatusRequest withStatus(ReportStatusType status)
The status of all instances listed.

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

Constraints:
Allowed Values: ok, impaired

Parameters:
status - The status of all instances listed.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
ReportStatusType

getStartTime

public java.util.Date getStartTime()
The time at which the reported instance health state began.

Returns:
The time at which the reported instance health state began.

setStartTime

public void setStartTime(java.util.Date startTime)
The time at which the reported instance health state began.

Parameters:
startTime - The time at which the reported instance health state began.

withStartTime

public ReportInstanceStatusRequest withStartTime(java.util.Date startTime)
The time at which the reported instance health state began.

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

Parameters:
startTime - The time at which the reported instance health state began.
Returns:
A reference to this updated object so that method calls can be chained together.

getEndTime

public java.util.Date getEndTime()
The time at which the reported instance health state ended.

Returns:
The time at which the reported instance health state ended.

setEndTime

public void setEndTime(java.util.Date endTime)
The time at which the reported instance health state ended.

Parameters:
endTime - The time at which the reported instance health state ended.

withEndTime

public ReportInstanceStatusRequest withEndTime(java.util.Date endTime)
The time at which the reported instance health state ended.

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

Parameters:
endTime - The time at which the reported instance health state ended.
Returns:
A reference to this updated object so that method calls can be chained together.

getReasonCodes

public java.util.List<java.lang.String> getReasonCodes()
One or more reason codes that describes the health state of your instance.

Returns:
One or more reason codes that describes the health state of your instance.
  • instance-stuck-in-state: My instance is stuck in a state.

  • unresponsive: My instance is unresponsive.

  • not-accepting-credentials: My instance is not accepting my credentials.

  • password-not-available: A password is not available for my instance.

  • performance-network: My instance is experiencing performance problems which I believe are network related.

  • performance-instance-store: My instance is experiencing performance problems which I believe are related to the instance stores.

  • performance-ebs-volume: My instance is experiencing performance problems which I believe are related to an EBS volume.

  • performance-other: My instance is experiencing performance problems.

  • other: [explain using the description parameter]


setReasonCodes

public void setReasonCodes(java.util.Collection<java.lang.String> reasonCodes)
One or more reason codes that describes the health state of your instance.

Parameters:
reasonCodes - One or more reason codes that describes the health state of your instance.
  • instance-stuck-in-state: My instance is stuck in a state.

  • unresponsive: My instance is unresponsive.

  • not-accepting-credentials: My instance is not accepting my credentials.

  • password-not-available: A password is not available for my instance.

  • performance-network: My instance is experiencing performance problems which I believe are network related.

  • performance-instance-store: My instance is experiencing performance problems which I believe are related to the instance stores.

  • performance-ebs-volume: My instance is experiencing performance problems which I believe are related to an EBS volume.

  • performance-other: My instance is experiencing performance problems.

  • other: [explain using the description parameter]


withReasonCodes

public ReportInstanceStatusRequest withReasonCodes(java.lang.String... reasonCodes)
One or more reason codes that describes the health state of your instance.

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

Parameters:
reasonCodes - One or more reason codes that describes the health state of your instance.
  • instance-stuck-in-state: My instance is stuck in a state.

  • unresponsive: My instance is unresponsive.

  • not-accepting-credentials: My instance is not accepting my credentials.

  • password-not-available: A password is not available for my instance.

  • performance-network: My instance is experiencing performance problems which I believe are network related.

  • performance-instance-store: My instance is experiencing performance problems which I believe are related to the instance stores.

  • performance-ebs-volume: My instance is experiencing performance problems which I believe are related to an EBS volume.

  • performance-other: My instance is experiencing performance problems.

  • other: [explain using the description parameter]

Returns:
A reference to this updated object so that method calls can be chained together.

withReasonCodes

public ReportInstanceStatusRequest withReasonCodes(java.util.Collection<java.lang.String> reasonCodes)
One or more reason codes that describes the health state of your instance.

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

Parameters:
reasonCodes - One or more reason codes that describes the health state of your instance.
  • instance-stuck-in-state: My instance is stuck in a state.

  • unresponsive: My instance is unresponsive.

  • not-accepting-credentials: My instance is not accepting my credentials.

  • password-not-available: A password is not available for my instance.

  • performance-network: My instance is experiencing performance problems which I believe are network related.

  • performance-instance-store: My instance is experiencing performance problems which I believe are related to the instance stores.

  • performance-ebs-volume: My instance is experiencing performance problems which I believe are related to an EBS volume.

  • performance-other: My instance is experiencing performance problems.

  • other: [explain using the description parameter]

Returns:
A reference to this updated object so that method calls can be chained together.

withReasonCodes

public ReportInstanceStatusRequest withReasonCodes(ReportInstanceReasonCodes... reasonCodes)
One or more reason codes that describes the health state of your instance.

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

Parameters:
reasonCodes - One or more reason codes that describes the health state of your instance.
  • instance-stuck-in-state: My instance is stuck in a state.

  • unresponsive: My instance is unresponsive.

  • not-accepting-credentials: My instance is not accepting my credentials.

  • password-not-available: A password is not available for my instance.

  • performance-network: My instance is experiencing performance problems which I believe are network related.

  • performance-instance-store: My instance is experiencing performance problems which I believe are related to the instance stores.

  • performance-ebs-volume: My instance is experiencing performance problems which I believe are related to an EBS volume.

  • performance-other: My instance is experiencing performance problems.

  • other: [explain using the description parameter]

Returns:
A reference to this updated object so that method calls can be chained together.

getDescription

public java.lang.String getDescription()
Descriptive text about the health state of your instance.

Returns:
Descriptive text about the health state of your instance.

setDescription

public void setDescription(java.lang.String description)
Descriptive text about the health state of your instance.

Parameters:
description - Descriptive text about the health state of your instance.

withDescription

public ReportInstanceStatusRequest withDescription(java.lang.String description)
Descriptive text about the health state of your instance.

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

Parameters:
description - Descriptive text about the health state of your instance.
Returns:
A reference to this updated object so that method calls can be chained together.

getDryRunRequest

public Request<ReportInstanceStatusRequest> 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<ReportInstanceStatusRequest>

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.