public class Monitoring extends Object implements Serializable
Describes the monitoring status of an Amazon EC2 instance.
Constructor and Description |
---|
Monitoring() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getState()
The state of monitoring on an Amazon EC2 instance (ex: enabled,
disabled).
|
int |
hashCode() |
void |
setState(MonitoringState state)
The state of monitoring on an Amazon EC2 instance (ex: enabled,
disabled).
|
void |
setState(String state)
The state of monitoring on an Amazon EC2 instance (ex: enabled,
disabled).
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Monitoring |
withState(MonitoringState state)
The state of monitoring on an Amazon EC2 instance (ex: enabled,
disabled).
|
Monitoring |
withState(String state)
The state of monitoring on an Amazon EC2 instance (ex: enabled,
disabled).
|
public String getState()
Constraints:
Allowed Values: disabled, enabled, pending
MonitoringState
public void setState(String state)
Constraints:
Allowed Values: disabled, enabled, pending
state
- The state of monitoring on an Amazon EC2 instance (ex: enabled,
disabled).MonitoringState
public Monitoring withState(String state)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: disabled, enabled, pending
state
- The state of monitoring on an Amazon EC2 instance (ex: enabled,
disabled).MonitoringState
public void setState(MonitoringState state)
Constraints:
Allowed Values: disabled, enabled, pending
state
- The state of monitoring on an Amazon EC2 instance (ex: enabled,
disabled).MonitoringState
public Monitoring withState(MonitoringState state)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: disabled, enabled, pending
state
- The state of monitoring on an Amazon EC2 instance (ex: enabled,
disabled).MonitoringState
public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.