@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AwsEc2InstanceMonitoringDetails extends Object implements Serializable, Cloneable, StructuredPojo
The type of monitoring that’s turned on for an Amazon EC2 instance.
Constructor and Description |
---|
AwsEc2InstanceMonitoringDetails() |
Modifier and Type | Method and Description |
---|---|
AwsEc2InstanceMonitoringDetails |
clone() |
boolean |
equals(Object obj) |
String |
getState()
Indicates whether detailed monitoring is turned on.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setState(String state)
Indicates whether detailed monitoring is turned on.
|
String |
toString()
Returns a string representation of this object.
|
AwsEc2InstanceMonitoringDetails |
withState(String state)
Indicates whether detailed monitoring is turned on.
|
public void setState(String state)
Indicates whether detailed monitoring is turned on. Otherwise, basic monitoring is turned on.
state
- Indicates whether detailed monitoring is turned on. Otherwise, basic monitoring is turned on.public String getState()
Indicates whether detailed monitoring is turned on. Otherwise, basic monitoring is turned on.
public AwsEc2InstanceMonitoringDetails withState(String state)
Indicates whether detailed monitoring is turned on. Otherwise, basic monitoring is turned on.
state
- Indicates whether detailed monitoring is turned on. Otherwise, basic monitoring is turned on.public String toString()
toString
in class Object
Object.toString()
public AwsEc2InstanceMonitoringDetails clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.