com.amazonaws.services.ec2.model
Class Monitoring

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

public class Monitoring
extends Object
implements Serializable

Describes the monitoring for the instance.

See Also:
Serialized Form

Constructor Summary
Monitoring()
           
 
Method Summary
 boolean equals(Object obj)
           
 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(String state)
          Indicates whether monitoring is enabled for the instance.
 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(String state)
          Indicates whether monitoring is enabled for the instance.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Monitoring

public Monitoring()
Method Detail

getState

public 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(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(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 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 © 2016. All rights reserved.