Package com.amazonaws.services.ec2.model
Class Monitoring
- java.lang.Object
-
- com.amazonaws.services.ec2.model.Monitoring
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class Monitoring extends Object implements Serializable, Cloneable
Describes the monitoring for the instance.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Monitoring()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Monitoring
clone()
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.
-
-
-
Method Detail
-
setState
public void setState(String state)
Indicates whether monitoring is enabled for the instance.
- Parameters:
state
- Indicates whether monitoring is enabled for the instance.- See Also:
MonitoringState
-
getState
public String getState()
Indicates whether monitoring is enabled for the instance.
- Returns:
- 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.
- Parameters:
state
- Indicates whether monitoring is enabled for the instance.- Returns:
- Returns a reference to this 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.
- 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.
- Parameters:
state
- Indicates whether monitoring is enabled for the instance.- Returns:
- Returns a reference to this 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 classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public Monitoring clone()
-
-