@Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        if (getId() != null)
            sb.append("Id: ").append(getId()).append(",");
        if (getStartTime() != null)
            sb.append("StartTime: ").append(getStartTime()).append(",");
        if (getEndTime() != null)
            sb.append("EndTime: ").append(getEndTime()).append(",");
        if (getSourceType() != null)
            sb.append("SourceType: ").append(getSourceType()).append(",");
        if (getSourceARN() != null)
            sb.append("SourceARN: ").append(getSourceARN()).append(",");
        if (getLogGroup() != null)
            sb.append("LogGroup: ").append(getLogGroup()).append(",");
        if (getLineTime() != null)
            sb.append("LineTime: ").append(getLineTime()).append(",");
        if (getLogText() != null)
            sb.append("LogText: ").append(getLogText()).append(",");
        if (getLogFilter() != null)
            sb.append("LogFilter: ").append(getLogFilter()).append(",");
        if (getMetricNamespace() != null)
            sb.append("MetricNamespace: ").append(getMetricNamespace()).append(",");
        if (getMetricName() != null)
            sb.append("MetricName: ").append(getMetricName()).append(",");
        if (getUnit() != null)
            sb.append("Unit: ").append(getUnit()).append(",");
        if (getValue() != null)
            sb.append("Value: ").append(getValue()).append(",");
        if (getCloudWatchEventId() != null)
            sb.append("CloudWatchEventId: ").append(getCloudWatchEventId()).append(",");
        if (getCloudWatchEventSource() != null)
            sb.append("CloudWatchEventSource: ").append(getCloudWatchEventSource()).append(",");
        if (getCloudWatchEventDetailType() != null)
            sb.append("CloudWatchEventDetailType: ").append(getCloudWatchEventDetailType()).append(",");
        if (getHealthEventArn() != null)
            sb.append("HealthEventArn: ").append(getHealthEventArn()).append(",");
        if (getHealthService() != null)
            sb.append("HealthService: ").append(getHealthService()).append(",");
        if (getHealthEventTypeCode() != null)
            sb.append("HealthEventTypeCode: ").append(getHealthEventTypeCode()).append(",");
        if (getHealthEventTypeCategory() != null)
            sb.append("HealthEventTypeCategory: ").append(getHealthEventTypeCategory()).append(",");
        if (getHealthEventDescription() != null)
            sb.append("HealthEventDescription: ").append(getHealthEventDescription()).append(",");
        if (getCodeDeployDeploymentId() != null)
            sb.append("CodeDeployDeploymentId: ").append(getCodeDeployDeploymentId()).append(",");
        if (getCodeDeployDeploymentGroup() != null)
            sb.append("CodeDeployDeploymentGroup: ").append(getCodeDeployDeploymentGroup()).append(",");
        if (getCodeDeployState() != null)
            sb.append("CodeDeployState: ").append(getCodeDeployState()).append(",");
        if (getCodeDeployApplication() != null)
            sb.append("CodeDeployApplication: ").append(getCodeDeployApplication()).append(",");
        if (getCodeDeployInstanceGroupId() != null)
            sb.append("CodeDeployInstanceGroupId: ").append(getCodeDeployInstanceGroupId()).append(",");
        if (getEc2State() != null)
            sb.append("Ec2State: ").append(getEc2State()).append(",");
        if (getRdsEventCategories() != null)
            sb.append("RdsEventCategories: ").append(getRdsEventCategories()).append(",");
        if (getRdsEventMessage() != null)
            sb.append("RdsEventMessage: ").append(getRdsEventMessage()).append(",");
        if (getS3EventName() != null)
            sb.append("S3EventName: ").append(getS3EventName()).append(",");
        if (getStatesExecutionArn() != null)
            sb.append("StatesExecutionArn: ").append(getStatesExecutionArn()).append(",");
        if (getStatesArn() != null)
            sb.append("StatesArn: ").append(getStatesArn()).append(",");
        if (getStatesStatus() != null)
            sb.append("StatesStatus: ").append(getStatesStatus()).append(",");
        if (getStatesInput() != null)
            sb.append("StatesInput: ").append(getStatesInput()).append(",");
        if (getEbsEvent() != null)
            sb.append("EbsEvent: ").append(getEbsEvent()).append(",");
        if (getEbsResult() != null)
            sb.append("EbsResult: ").append(getEbsResult()).append(",");
        if (getEbsCause() != null)
            sb.append("EbsCause: ").append(getEbsCause()).append(",");
        if (getEbsRequestId() != null)
            sb.append("EbsRequestId: ").append(getEbsRequestId()).append(",");
        if (getXRayFaultPercent() != null)
            sb.append("XRayFaultPercent: ").append(getXRayFaultPercent()).append(",");
        if (getXRayThrottlePercent() != null)
            sb.append("XRayThrottlePercent: ").append(getXRayThrottlePercent()).append(",");
        if (getXRayErrorPercent() != null)
            sb.append("XRayErrorPercent: ").append(getXRayErrorPercent()).append(",");
        if (getXRayRequestCount() != null)
            sb.append("XRayRequestCount: ").append(getXRayRequestCount()).append(",");
        if (getXRayRequestAverageLatency() != null)
            sb.append("XRayRequestAverageLatency: ").append(getXRayRequestAverageLatency()).append(",");
        if (getXRayNodeName() != null)
            sb.append("XRayNodeName: ").append(getXRayNodeName()).append(",");
        if (getXRayNodeType() != null)
            sb.append("XRayNodeType: ").append(getXRayNodeType());
        sb.append("}");
        return sb.toString();
    }
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
redacted from this string using a placeholder value.

@return A string representation of this object.

@see java.lang.Object#toString()
aws-java-sdk-applicationinsights/src/main/java/com/amazonaws/services/applicationinsights/model/Observation.java