public String getEc2State() {
        return this.ec2State;
    }
<p>
The state of the instance, such as <code>STOPPING</code> or <code>TERMINATING</code>.
</p>

@return The state of the instance, such as <code>STOPPING</code> or <code>TERMINATING</code>.
aws-java-sdk-applicationinsights/src/main/java/com/amazonaws/services/applicationinsights/model/Observation.java