com.amazonaws.services.ec2.model
Class Monitoring

java.lang.Object
  extended by com.amazonaws.services.ec2.model.Monitoring
All Implemented Interfaces:
java.io.Serializable

public class Monitoring
extends java.lang.Object
implements java.io.Serializable

Describes the monitoring for the instance.

See Also:
Serialized Form

Constructor Summary
Monitoring()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getState()
          Indicates whether monitoring is enabled for the instance.
 int hashCode()
           
 void setState(MonitoringState state)
          Indicates whether monitoring is enabled for the instance.
 void setState(java.lang.String state)
          Indicates whether monitoring is enabled for the instance.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 Monitoring withState(MonitoringState state)
          Indicates whether monitoring is enabled for the instance.
 Monitoring withState(java.lang.String state)
          Indicates whether monitoring is enabled for the instance.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Monitoring

public Monitoring()
Method Detail

getState

public java.lang.String getState()
Indicates whether monitoring is enabled for the instance.

Constraints:
Allowed Values: disabled, enabled, pending

Returns:
Indicates whether monitoring is enabled for the instance.
See Also:
MonitoringState

setState

public void setState(java.lang.String state)
Indicates whether monitoring is enabled for the instance.

Constraints:
Allowed Values: disabled, enabled, pending

Parameters:
state - Indicates whether monitoring is enabled for the instance.
See Also:
MonitoringState

withState

public Monitoring withState(java.lang.String state)
Indicates whether monitoring is enabled for the instance.

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

Constraints:
Allowed Values: disabled, enabled, pending

Parameters:
state - Indicates whether monitoring is enabled for the instance.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
MonitoringState

setState

public void setState(MonitoringState state)
Indicates whether monitoring is enabled for the instance.

Constraints:
Allowed Values: disabled, enabled, pending

Parameters:
state - Indicates whether monitoring is enabled for the instance.
See Also:
MonitoringState

withState

public Monitoring withState(MonitoringState state)
Indicates whether monitoring is enabled for the instance.

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

Constraints:
Allowed Values: disabled, enabled, pending

Parameters:
state - Indicates whether monitoring is enabled for the instance.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
MonitoringState

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.