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:
  • Constructor Details

    • Monitoring

      public Monitoring()
  • Method Details

    • 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:
    • getState

      public String getState()

      Indicates whether monitoring is enabled for the instance.

      Returns:
      Indicates whether monitoring is enabled for the instance.
      See Also:
    • 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:
    • 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:
    • 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:
    • 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:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public Monitoring clone()
      Overrides:
      clone in class Object