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

@param ec2State
       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