public Observation withCloudWatchEventDetailType(String cloudWatchEventDetailType) {
        setCloudWatchEventDetailType(cloudWatchEventDetailType);
        return this;
    }
<p>
The detail type of the CloudWatch Event-based observation, for example,
<code>EC2 Instance State-change Notification</code>.
</p>

@param cloudWatchEventDetailType
       The detail type of the CloudWatch Event-based observation, for example,
       <code>EC2 Instance State-change Notification</code>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-applicationinsights/src/main/java/com/amazonaws/services/applicationinsights/model/Observation.java