/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace ApplicationInsights { namespace Model { /** *

Describes an anomaly or error with the application.

See Also:

* AWS * API Reference

*/ class AWS_APPLICATIONINSIGHTS_API Observation { public: Observation(); Observation(Aws::Utils::Json::JsonView jsonValue); Observation& operator=(Aws::Utils::Json::JsonView jsonValue); Aws::Utils::Json::JsonValue Jsonize() const; /** *

The ID of the observation type.

*/ inline const Aws::String& GetId() const{ return m_id; } /** *

The ID of the observation type.

*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *

The ID of the observation type.

*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *

The ID of the observation type.

*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *

The ID of the observation type.

*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *

The ID of the observation type.

*/ inline Observation& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

The ID of the observation type.

*/ inline Observation& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

The ID of the observation type.

*/ inline Observation& WithId(const char* value) { SetId(value); return *this;} /** *

The time when the observation was first detected, in epoch seconds.

*/ inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; } /** *

The time when the observation was first detected, in epoch seconds.

*/ inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; } /** *

The time when the observation was first detected, in epoch seconds.

*/ inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; } /** *

The time when the observation was first detected, in epoch seconds.

*/ inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); } /** *

The time when the observation was first detected, in epoch seconds.

*/ inline Observation& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;} /** *

The time when the observation was first detected, in epoch seconds.

*/ inline Observation& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;} /** *

The time when the observation ended, in epoch seconds.

*/ inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; } /** *

The time when the observation ended, in epoch seconds.

*/ inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; } /** *

The time when the observation ended, in epoch seconds.

*/ inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; } /** *

The time when the observation ended, in epoch seconds.

*/ inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); } /** *

The time when the observation ended, in epoch seconds.

*/ inline Observation& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;} /** *

The time when the observation ended, in epoch seconds.

*/ inline Observation& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;} /** *

The source type of the observation.

*/ inline const Aws::String& GetSourceType() const{ return m_sourceType; } /** *

The source type of the observation.

*/ inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; } /** *

The source type of the observation.

*/ inline void SetSourceType(const Aws::String& value) { m_sourceTypeHasBeenSet = true; m_sourceType = value; } /** *

The source type of the observation.

*/ inline void SetSourceType(Aws::String&& value) { m_sourceTypeHasBeenSet = true; m_sourceType = std::move(value); } /** *

The source type of the observation.

*/ inline void SetSourceType(const char* value) { m_sourceTypeHasBeenSet = true; m_sourceType.assign(value); } /** *

The source type of the observation.

*/ inline Observation& WithSourceType(const Aws::String& value) { SetSourceType(value); return *this;} /** *

The source type of the observation.

*/ inline Observation& WithSourceType(Aws::String&& value) { SetSourceType(std::move(value)); return *this;} /** *

The source type of the observation.

*/ inline Observation& WithSourceType(const char* value) { SetSourceType(value); return *this;} /** *

The source resource ARN of the observation.

*/ inline const Aws::String& GetSourceARN() const{ return m_sourceARN; } /** *

The source resource ARN of the observation.

*/ inline bool SourceARNHasBeenSet() const { return m_sourceARNHasBeenSet; } /** *

The source resource ARN of the observation.

*/ inline void SetSourceARN(const Aws::String& value) { m_sourceARNHasBeenSet = true; m_sourceARN = value; } /** *

The source resource ARN of the observation.

*/ inline void SetSourceARN(Aws::String&& value) { m_sourceARNHasBeenSet = true; m_sourceARN = std::move(value); } /** *

The source resource ARN of the observation.

*/ inline void SetSourceARN(const char* value) { m_sourceARNHasBeenSet = true; m_sourceARN.assign(value); } /** *

The source resource ARN of the observation.

*/ inline Observation& WithSourceARN(const Aws::String& value) { SetSourceARN(value); return *this;} /** *

The source resource ARN of the observation.

*/ inline Observation& WithSourceARN(Aws::String&& value) { SetSourceARN(std::move(value)); return *this;} /** *

The source resource ARN of the observation.

*/ inline Observation& WithSourceARN(const char* value) { SetSourceARN(value); return *this;} /** *

The log group name.

*/ inline const Aws::String& GetLogGroup() const{ return m_logGroup; } /** *

The log group name.

*/ inline bool LogGroupHasBeenSet() const { return m_logGroupHasBeenSet; } /** *

The log group name.

*/ inline void SetLogGroup(const Aws::String& value) { m_logGroupHasBeenSet = true; m_logGroup = value; } /** *

The log group name.

*/ inline void SetLogGroup(Aws::String&& value) { m_logGroupHasBeenSet = true; m_logGroup = std::move(value); } /** *

The log group name.

*/ inline void SetLogGroup(const char* value) { m_logGroupHasBeenSet = true; m_logGroup.assign(value); } /** *

The log group name.

*/ inline Observation& WithLogGroup(const Aws::String& value) { SetLogGroup(value); return *this;} /** *

The log group name.

*/ inline Observation& WithLogGroup(Aws::String&& value) { SetLogGroup(std::move(value)); return *this;} /** *

The log group name.

*/ inline Observation& WithLogGroup(const char* value) { SetLogGroup(value); return *this;} /** *

The timestamp in the CloudWatch Logs that specifies when the matched line * occurred.

*/ inline const Aws::Utils::DateTime& GetLineTime() const{ return m_lineTime; } /** *

The timestamp in the CloudWatch Logs that specifies when the matched line * occurred.

*/ inline bool LineTimeHasBeenSet() const { return m_lineTimeHasBeenSet; } /** *

The timestamp in the CloudWatch Logs that specifies when the matched line * occurred.

*/ inline void SetLineTime(const Aws::Utils::DateTime& value) { m_lineTimeHasBeenSet = true; m_lineTime = value; } /** *

The timestamp in the CloudWatch Logs that specifies when the matched line * occurred.

*/ inline void SetLineTime(Aws::Utils::DateTime&& value) { m_lineTimeHasBeenSet = true; m_lineTime = std::move(value); } /** *

The timestamp in the CloudWatch Logs that specifies when the matched line * occurred.

*/ inline Observation& WithLineTime(const Aws::Utils::DateTime& value) { SetLineTime(value); return *this;} /** *

The timestamp in the CloudWatch Logs that specifies when the matched line * occurred.

*/ inline Observation& WithLineTime(Aws::Utils::DateTime&& value) { SetLineTime(std::move(value)); return *this;} /** *

The log text of the observation.

*/ inline const Aws::String& GetLogText() const{ return m_logText; } /** *

The log text of the observation.

*/ inline bool LogTextHasBeenSet() const { return m_logTextHasBeenSet; } /** *

The log text of the observation.

*/ inline void SetLogText(const Aws::String& value) { m_logTextHasBeenSet = true; m_logText = value; } /** *

The log text of the observation.

*/ inline void SetLogText(Aws::String&& value) { m_logTextHasBeenSet = true; m_logText = std::move(value); } /** *

The log text of the observation.

*/ inline void SetLogText(const char* value) { m_logTextHasBeenSet = true; m_logText.assign(value); } /** *

The log text of the observation.

*/ inline Observation& WithLogText(const Aws::String& value) { SetLogText(value); return *this;} /** *

The log text of the observation.

*/ inline Observation& WithLogText(Aws::String&& value) { SetLogText(std::move(value)); return *this;} /** *

The log text of the observation.

*/ inline Observation& WithLogText(const char* value) { SetLogText(value); return *this;} /** *

The log filter of the observation.

*/ inline const LogFilter& GetLogFilter() const{ return m_logFilter; } /** *

The log filter of the observation.

*/ inline bool LogFilterHasBeenSet() const { return m_logFilterHasBeenSet; } /** *

The log filter of the observation.

*/ inline void SetLogFilter(const LogFilter& value) { m_logFilterHasBeenSet = true; m_logFilter = value; } /** *

The log filter of the observation.

*/ inline void SetLogFilter(LogFilter&& value) { m_logFilterHasBeenSet = true; m_logFilter = std::move(value); } /** *

The log filter of the observation.

*/ inline Observation& WithLogFilter(const LogFilter& value) { SetLogFilter(value); return *this;} /** *

The log filter of the observation.

*/ inline Observation& WithLogFilter(LogFilter&& value) { SetLogFilter(std::move(value)); return *this;} /** *

The namespace of the observation metric.

*/ inline const Aws::String& GetMetricNamespace() const{ return m_metricNamespace; } /** *

The namespace of the observation metric.

*/ inline bool MetricNamespaceHasBeenSet() const { return m_metricNamespaceHasBeenSet; } /** *

The namespace of the observation metric.

*/ inline void SetMetricNamespace(const Aws::String& value) { m_metricNamespaceHasBeenSet = true; m_metricNamespace = value; } /** *

The namespace of the observation metric.

*/ inline void SetMetricNamespace(Aws::String&& value) { m_metricNamespaceHasBeenSet = true; m_metricNamespace = std::move(value); } /** *

The namespace of the observation metric.

*/ inline void SetMetricNamespace(const char* value) { m_metricNamespaceHasBeenSet = true; m_metricNamespace.assign(value); } /** *

The namespace of the observation metric.

*/ inline Observation& WithMetricNamespace(const Aws::String& value) { SetMetricNamespace(value); return *this;} /** *

The namespace of the observation metric.

*/ inline Observation& WithMetricNamespace(Aws::String&& value) { SetMetricNamespace(std::move(value)); return *this;} /** *

The namespace of the observation metric.

*/ inline Observation& WithMetricNamespace(const char* value) { SetMetricNamespace(value); return *this;} /** *

The name of the observation metric.

*/ inline const Aws::String& GetMetricName() const{ return m_metricName; } /** *

The name of the observation metric.

*/ inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; } /** *

The name of the observation metric.

*/ inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; } /** *

The name of the observation metric.

*/ inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); } /** *

The name of the observation metric.

*/ inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); } /** *

The name of the observation metric.

*/ inline Observation& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;} /** *

The name of the observation metric.

*/ inline Observation& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;} /** *

The name of the observation metric.

*/ inline Observation& WithMetricName(const char* value) { SetMetricName(value); return *this;} /** *

The unit of the source observation metric.

*/ inline const Aws::String& GetUnit() const{ return m_unit; } /** *

The unit of the source observation metric.

*/ inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; } /** *

The unit of the source observation metric.

*/ inline void SetUnit(const Aws::String& value) { m_unitHasBeenSet = true; m_unit = value; } /** *

The unit of the source observation metric.

*/ inline void SetUnit(Aws::String&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); } /** *

The unit of the source observation metric.

*/ inline void SetUnit(const char* value) { m_unitHasBeenSet = true; m_unit.assign(value); } /** *

The unit of the source observation metric.

*/ inline Observation& WithUnit(const Aws::String& value) { SetUnit(value); return *this;} /** *

The unit of the source observation metric.

*/ inline Observation& WithUnit(Aws::String&& value) { SetUnit(std::move(value)); return *this;} /** *

The unit of the source observation metric.

*/ inline Observation& WithUnit(const char* value) { SetUnit(value); return *this;} /** *

The value of the source observation metric.

*/ inline double GetValue() const{ return m_value; } /** *

The value of the source observation metric.

*/ inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } /** *

The value of the source observation metric.

*/ inline void SetValue(double value) { m_valueHasBeenSet = true; m_value = value; } /** *

The value of the source observation metric.

*/ inline Observation& WithValue(double value) { SetValue(value); return *this;} /** *

The ID of the CloudWatch Event-based observation related to the detected * problem.

*/ inline const Aws::String& GetCloudWatchEventId() const{ return m_cloudWatchEventId; } /** *

The ID of the CloudWatch Event-based observation related to the detected * problem.

*/ inline bool CloudWatchEventIdHasBeenSet() const { return m_cloudWatchEventIdHasBeenSet; } /** *

The ID of the CloudWatch Event-based observation related to the detected * problem.

*/ inline void SetCloudWatchEventId(const Aws::String& value) { m_cloudWatchEventIdHasBeenSet = true; m_cloudWatchEventId = value; } /** *

The ID of the CloudWatch Event-based observation related to the detected * problem.

*/ inline void SetCloudWatchEventId(Aws::String&& value) { m_cloudWatchEventIdHasBeenSet = true; m_cloudWatchEventId = std::move(value); } /** *

The ID of the CloudWatch Event-based observation related to the detected * problem.

*/ inline void SetCloudWatchEventId(const char* value) { m_cloudWatchEventIdHasBeenSet = true; m_cloudWatchEventId.assign(value); } /** *

The ID of the CloudWatch Event-based observation related to the detected * problem.

*/ inline Observation& WithCloudWatchEventId(const Aws::String& value) { SetCloudWatchEventId(value); return *this;} /** *

The ID of the CloudWatch Event-based observation related to the detected * problem.

*/ inline Observation& WithCloudWatchEventId(Aws::String&& value) { SetCloudWatchEventId(std::move(value)); return *this;} /** *

The ID of the CloudWatch Event-based observation related to the detected * problem.

*/ inline Observation& WithCloudWatchEventId(const char* value) { SetCloudWatchEventId(value); return *this;} /** *

The source of the CloudWatch Event.

*/ inline const CloudWatchEventSource& GetCloudWatchEventSource() const{ return m_cloudWatchEventSource; } /** *

The source of the CloudWatch Event.

*/ inline bool CloudWatchEventSourceHasBeenSet() const { return m_cloudWatchEventSourceHasBeenSet; } /** *

The source of the CloudWatch Event.

*/ inline void SetCloudWatchEventSource(const CloudWatchEventSource& value) { m_cloudWatchEventSourceHasBeenSet = true; m_cloudWatchEventSource = value; } /** *

The source of the CloudWatch Event.

*/ inline void SetCloudWatchEventSource(CloudWatchEventSource&& value) { m_cloudWatchEventSourceHasBeenSet = true; m_cloudWatchEventSource = std::move(value); } /** *

The source of the CloudWatch Event.

*/ inline Observation& WithCloudWatchEventSource(const CloudWatchEventSource& value) { SetCloudWatchEventSource(value); return *this;} /** *

The source of the CloudWatch Event.

*/ inline Observation& WithCloudWatchEventSource(CloudWatchEventSource&& value) { SetCloudWatchEventSource(std::move(value)); return *this;} /** *

The detail type of the CloudWatch Event-based observation, for example, * EC2 Instance State-change Notification.

*/ inline const Aws::String& GetCloudWatchEventDetailType() const{ return m_cloudWatchEventDetailType; } /** *

The detail type of the CloudWatch Event-based observation, for example, * EC2 Instance State-change Notification.

*/ inline bool CloudWatchEventDetailTypeHasBeenSet() const { return m_cloudWatchEventDetailTypeHasBeenSet; } /** *

The detail type of the CloudWatch Event-based observation, for example, * EC2 Instance State-change Notification.

*/ inline void SetCloudWatchEventDetailType(const Aws::String& value) { m_cloudWatchEventDetailTypeHasBeenSet = true; m_cloudWatchEventDetailType = value; } /** *

The detail type of the CloudWatch Event-based observation, for example, * EC2 Instance State-change Notification.

*/ inline void SetCloudWatchEventDetailType(Aws::String&& value) { m_cloudWatchEventDetailTypeHasBeenSet = true; m_cloudWatchEventDetailType = std::move(value); } /** *

The detail type of the CloudWatch Event-based observation, for example, * EC2 Instance State-change Notification.

*/ inline void SetCloudWatchEventDetailType(const char* value) { m_cloudWatchEventDetailTypeHasBeenSet = true; m_cloudWatchEventDetailType.assign(value); } /** *

The detail type of the CloudWatch Event-based observation, for example, * EC2 Instance State-change Notification.

*/ inline Observation& WithCloudWatchEventDetailType(const Aws::String& value) { SetCloudWatchEventDetailType(value); return *this;} /** *

The detail type of the CloudWatch Event-based observation, for example, * EC2 Instance State-change Notification.

*/ inline Observation& WithCloudWatchEventDetailType(Aws::String&& value) { SetCloudWatchEventDetailType(std::move(value)); return *this;} /** *

The detail type of the CloudWatch Event-based observation, for example, * EC2 Instance State-change Notification.

*/ inline Observation& WithCloudWatchEventDetailType(const char* value) { SetCloudWatchEventDetailType(value); return *this;} /** *

The Amazon Resource Name (ARN) of the AWS Health Event-based * observation.

*/ inline const Aws::String& GetHealthEventArn() const{ return m_healthEventArn; } /** *

The Amazon Resource Name (ARN) of the AWS Health Event-based * observation.

*/ inline bool HealthEventArnHasBeenSet() const { return m_healthEventArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the AWS Health Event-based * observation.

*/ inline void SetHealthEventArn(const Aws::String& value) { m_healthEventArnHasBeenSet = true; m_healthEventArn = value; } /** *

The Amazon Resource Name (ARN) of the AWS Health Event-based * observation.

*/ inline void SetHealthEventArn(Aws::String&& value) { m_healthEventArnHasBeenSet = true; m_healthEventArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the AWS Health Event-based * observation.

*/ inline void SetHealthEventArn(const char* value) { m_healthEventArnHasBeenSet = true; m_healthEventArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the AWS Health Event-based * observation.

*/ inline Observation& WithHealthEventArn(const Aws::String& value) { SetHealthEventArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the AWS Health Event-based * observation.

*/ inline Observation& WithHealthEventArn(Aws::String&& value) { SetHealthEventArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the AWS Health Event-based * observation.

*/ inline Observation& WithHealthEventArn(const char* value) { SetHealthEventArn(value); return *this;} /** *

The service to which the AWS Health Event belongs, such as EC2.

*/ inline const Aws::String& GetHealthService() const{ return m_healthService; } /** *

The service to which the AWS Health Event belongs, such as EC2.

*/ inline bool HealthServiceHasBeenSet() const { return m_healthServiceHasBeenSet; } /** *

The service to which the AWS Health Event belongs, such as EC2.

*/ inline void SetHealthService(const Aws::String& value) { m_healthServiceHasBeenSet = true; m_healthService = value; } /** *

The service to which the AWS Health Event belongs, such as EC2.

*/ inline void SetHealthService(Aws::String&& value) { m_healthServiceHasBeenSet = true; m_healthService = std::move(value); } /** *

The service to which the AWS Health Event belongs, such as EC2.

*/ inline void SetHealthService(const char* value) { m_healthServiceHasBeenSet = true; m_healthService.assign(value); } /** *

The service to which the AWS Health Event belongs, such as EC2.

*/ inline Observation& WithHealthService(const Aws::String& value) { SetHealthService(value); return *this;} /** *

The service to which the AWS Health Event belongs, such as EC2.

*/ inline Observation& WithHealthService(Aws::String&& value) { SetHealthService(std::move(value)); return *this;} /** *

The service to which the AWS Health Event belongs, such as EC2.

*/ inline Observation& WithHealthService(const char* value) { SetHealthService(value); return *this;} /** *

The type of the AWS Health event, for example, * AWS_EC2_POWER_CONNECTIVITY_ISSUE.

*/ inline const Aws::String& GetHealthEventTypeCode() const{ return m_healthEventTypeCode; } /** *

The type of the AWS Health event, for example, * AWS_EC2_POWER_CONNECTIVITY_ISSUE.

*/ inline bool HealthEventTypeCodeHasBeenSet() const { return m_healthEventTypeCodeHasBeenSet; } /** *

The type of the AWS Health event, for example, * AWS_EC2_POWER_CONNECTIVITY_ISSUE.

*/ inline void SetHealthEventTypeCode(const Aws::String& value) { m_healthEventTypeCodeHasBeenSet = true; m_healthEventTypeCode = value; } /** *

The type of the AWS Health event, for example, * AWS_EC2_POWER_CONNECTIVITY_ISSUE.

*/ inline void SetHealthEventTypeCode(Aws::String&& value) { m_healthEventTypeCodeHasBeenSet = true; m_healthEventTypeCode = std::move(value); } /** *

The type of the AWS Health event, for example, * AWS_EC2_POWER_CONNECTIVITY_ISSUE.

*/ inline void SetHealthEventTypeCode(const char* value) { m_healthEventTypeCodeHasBeenSet = true; m_healthEventTypeCode.assign(value); } /** *

The type of the AWS Health event, for example, * AWS_EC2_POWER_CONNECTIVITY_ISSUE.

*/ inline Observation& WithHealthEventTypeCode(const Aws::String& value) { SetHealthEventTypeCode(value); return *this;} /** *

The type of the AWS Health event, for example, * AWS_EC2_POWER_CONNECTIVITY_ISSUE.

*/ inline Observation& WithHealthEventTypeCode(Aws::String&& value) { SetHealthEventTypeCode(std::move(value)); return *this;} /** *

The type of the AWS Health event, for example, * AWS_EC2_POWER_CONNECTIVITY_ISSUE.

*/ inline Observation& WithHealthEventTypeCode(const char* value) { SetHealthEventTypeCode(value); return *this;} /** *

The category of the AWS Health event, such as issue.

*/ inline const Aws::String& GetHealthEventTypeCategory() const{ return m_healthEventTypeCategory; } /** *

The category of the AWS Health event, such as issue.

*/ inline bool HealthEventTypeCategoryHasBeenSet() const { return m_healthEventTypeCategoryHasBeenSet; } /** *

The category of the AWS Health event, such as issue.

*/ inline void SetHealthEventTypeCategory(const Aws::String& value) { m_healthEventTypeCategoryHasBeenSet = true; m_healthEventTypeCategory = value; } /** *

The category of the AWS Health event, such as issue.

*/ inline void SetHealthEventTypeCategory(Aws::String&& value) { m_healthEventTypeCategoryHasBeenSet = true; m_healthEventTypeCategory = std::move(value); } /** *

The category of the AWS Health event, such as issue.

*/ inline void SetHealthEventTypeCategory(const char* value) { m_healthEventTypeCategoryHasBeenSet = true; m_healthEventTypeCategory.assign(value); } /** *

The category of the AWS Health event, such as issue.

*/ inline Observation& WithHealthEventTypeCategory(const Aws::String& value) { SetHealthEventTypeCategory(value); return *this;} /** *

The category of the AWS Health event, such as issue.

*/ inline Observation& WithHealthEventTypeCategory(Aws::String&& value) { SetHealthEventTypeCategory(std::move(value)); return *this;} /** *

The category of the AWS Health event, such as issue.

*/ inline Observation& WithHealthEventTypeCategory(const char* value) { SetHealthEventTypeCategory(value); return *this;} /** *

The description of the AWS Health event provided by the service, such as * Amazon EC2.

*/ inline const Aws::String& GetHealthEventDescription() const{ return m_healthEventDescription; } /** *

The description of the AWS Health event provided by the service, such as * Amazon EC2.

*/ inline bool HealthEventDescriptionHasBeenSet() const { return m_healthEventDescriptionHasBeenSet; } /** *

The description of the AWS Health event provided by the service, such as * Amazon EC2.

*/ inline void SetHealthEventDescription(const Aws::String& value) { m_healthEventDescriptionHasBeenSet = true; m_healthEventDescription = value; } /** *

The description of the AWS Health event provided by the service, such as * Amazon EC2.

*/ inline void SetHealthEventDescription(Aws::String&& value) { m_healthEventDescriptionHasBeenSet = true; m_healthEventDescription = std::move(value); } /** *

The description of the AWS Health event provided by the service, such as * Amazon EC2.

*/ inline void SetHealthEventDescription(const char* value) { m_healthEventDescriptionHasBeenSet = true; m_healthEventDescription.assign(value); } /** *

The description of the AWS Health event provided by the service, such as * Amazon EC2.

*/ inline Observation& WithHealthEventDescription(const Aws::String& value) { SetHealthEventDescription(value); return *this;} /** *

The description of the AWS Health event provided by the service, such as * Amazon EC2.

*/ inline Observation& WithHealthEventDescription(Aws::String&& value) { SetHealthEventDescription(std::move(value)); return *this;} /** *

The description of the AWS Health event provided by the service, such as * Amazon EC2.

*/ inline Observation& WithHealthEventDescription(const char* value) { SetHealthEventDescription(value); return *this;} /** *

The deployment ID of the CodeDeploy-based observation related to the * detected problem.

*/ inline const Aws::String& GetCodeDeployDeploymentId() const{ return m_codeDeployDeploymentId; } /** *

The deployment ID of the CodeDeploy-based observation related to the * detected problem.

*/ inline bool CodeDeployDeploymentIdHasBeenSet() const { return m_codeDeployDeploymentIdHasBeenSet; } /** *

The deployment ID of the CodeDeploy-based observation related to the * detected problem.

*/ inline void SetCodeDeployDeploymentId(const Aws::String& value) { m_codeDeployDeploymentIdHasBeenSet = true; m_codeDeployDeploymentId = value; } /** *

The deployment ID of the CodeDeploy-based observation related to the * detected problem.

*/ inline void SetCodeDeployDeploymentId(Aws::String&& value) { m_codeDeployDeploymentIdHasBeenSet = true; m_codeDeployDeploymentId = std::move(value); } /** *

The deployment ID of the CodeDeploy-based observation related to the * detected problem.

*/ inline void SetCodeDeployDeploymentId(const char* value) { m_codeDeployDeploymentIdHasBeenSet = true; m_codeDeployDeploymentId.assign(value); } /** *

The deployment ID of the CodeDeploy-based observation related to the * detected problem.

*/ inline Observation& WithCodeDeployDeploymentId(const Aws::String& value) { SetCodeDeployDeploymentId(value); return *this;} /** *

The deployment ID of the CodeDeploy-based observation related to the * detected problem.

*/ inline Observation& WithCodeDeployDeploymentId(Aws::String&& value) { SetCodeDeployDeploymentId(std::move(value)); return *this;} /** *

The deployment ID of the CodeDeploy-based observation related to the * detected problem.

*/ inline Observation& WithCodeDeployDeploymentId(const char* value) { SetCodeDeployDeploymentId(value); return *this;} /** *

The deployment group to which the CodeDeploy deployment belongs.

*/ inline const Aws::String& GetCodeDeployDeploymentGroup() const{ return m_codeDeployDeploymentGroup; } /** *

The deployment group to which the CodeDeploy deployment belongs.

*/ inline bool CodeDeployDeploymentGroupHasBeenSet() const { return m_codeDeployDeploymentGroupHasBeenSet; } /** *

The deployment group to which the CodeDeploy deployment belongs.

*/ inline void SetCodeDeployDeploymentGroup(const Aws::String& value) { m_codeDeployDeploymentGroupHasBeenSet = true; m_codeDeployDeploymentGroup = value; } /** *

The deployment group to which the CodeDeploy deployment belongs.

*/ inline void SetCodeDeployDeploymentGroup(Aws::String&& value) { m_codeDeployDeploymentGroupHasBeenSet = true; m_codeDeployDeploymentGroup = std::move(value); } /** *

The deployment group to which the CodeDeploy deployment belongs.

*/ inline void SetCodeDeployDeploymentGroup(const char* value) { m_codeDeployDeploymentGroupHasBeenSet = true; m_codeDeployDeploymentGroup.assign(value); } /** *

The deployment group to which the CodeDeploy deployment belongs.

*/ inline Observation& WithCodeDeployDeploymentGroup(const Aws::String& value) { SetCodeDeployDeploymentGroup(value); return *this;} /** *

The deployment group to which the CodeDeploy deployment belongs.

*/ inline Observation& WithCodeDeployDeploymentGroup(Aws::String&& value) { SetCodeDeployDeploymentGroup(std::move(value)); return *this;} /** *

The deployment group to which the CodeDeploy deployment belongs.

*/ inline Observation& WithCodeDeployDeploymentGroup(const char* value) { SetCodeDeployDeploymentGroup(value); return *this;} /** *

The status of the CodeDeploy deployment, for example SUCCESS or * FAILURE.

*/ inline const Aws::String& GetCodeDeployState() const{ return m_codeDeployState; } /** *

The status of the CodeDeploy deployment, for example SUCCESS or * FAILURE.

*/ inline bool CodeDeployStateHasBeenSet() const { return m_codeDeployStateHasBeenSet; } /** *

The status of the CodeDeploy deployment, for example SUCCESS or * FAILURE.

*/ inline void SetCodeDeployState(const Aws::String& value) { m_codeDeployStateHasBeenSet = true; m_codeDeployState = value; } /** *

The status of the CodeDeploy deployment, for example SUCCESS or * FAILURE.

*/ inline void SetCodeDeployState(Aws::String&& value) { m_codeDeployStateHasBeenSet = true; m_codeDeployState = std::move(value); } /** *

The status of the CodeDeploy deployment, for example SUCCESS or * FAILURE.

*/ inline void SetCodeDeployState(const char* value) { m_codeDeployStateHasBeenSet = true; m_codeDeployState.assign(value); } /** *

The status of the CodeDeploy deployment, for example SUCCESS or * FAILURE.

*/ inline Observation& WithCodeDeployState(const Aws::String& value) { SetCodeDeployState(value); return *this;} /** *

The status of the CodeDeploy deployment, for example SUCCESS or * FAILURE.

*/ inline Observation& WithCodeDeployState(Aws::String&& value) { SetCodeDeployState(std::move(value)); return *this;} /** *

The status of the CodeDeploy deployment, for example SUCCESS or * FAILURE.

*/ inline Observation& WithCodeDeployState(const char* value) { SetCodeDeployState(value); return *this;} /** *

The CodeDeploy application to which the deployment belongs.

*/ inline const Aws::String& GetCodeDeployApplication() const{ return m_codeDeployApplication; } /** *

The CodeDeploy application to which the deployment belongs.

*/ inline bool CodeDeployApplicationHasBeenSet() const { return m_codeDeployApplicationHasBeenSet; } /** *

The CodeDeploy application to which the deployment belongs.

*/ inline void SetCodeDeployApplication(const Aws::String& value) { m_codeDeployApplicationHasBeenSet = true; m_codeDeployApplication = value; } /** *

The CodeDeploy application to which the deployment belongs.

*/ inline void SetCodeDeployApplication(Aws::String&& value) { m_codeDeployApplicationHasBeenSet = true; m_codeDeployApplication = std::move(value); } /** *

The CodeDeploy application to which the deployment belongs.

*/ inline void SetCodeDeployApplication(const char* value) { m_codeDeployApplicationHasBeenSet = true; m_codeDeployApplication.assign(value); } /** *

The CodeDeploy application to which the deployment belongs.

*/ inline Observation& WithCodeDeployApplication(const Aws::String& value) { SetCodeDeployApplication(value); return *this;} /** *

The CodeDeploy application to which the deployment belongs.

*/ inline Observation& WithCodeDeployApplication(Aws::String&& value) { SetCodeDeployApplication(std::move(value)); return *this;} /** *

The CodeDeploy application to which the deployment belongs.

*/ inline Observation& WithCodeDeployApplication(const char* value) { SetCodeDeployApplication(value); return *this;} /** *

The instance group to which the CodeDeploy instance belongs.

*/ inline const Aws::String& GetCodeDeployInstanceGroupId() const{ return m_codeDeployInstanceGroupId; } /** *

The instance group to which the CodeDeploy instance belongs.

*/ inline bool CodeDeployInstanceGroupIdHasBeenSet() const { return m_codeDeployInstanceGroupIdHasBeenSet; } /** *

The instance group to which the CodeDeploy instance belongs.

*/ inline void SetCodeDeployInstanceGroupId(const Aws::String& value) { m_codeDeployInstanceGroupIdHasBeenSet = true; m_codeDeployInstanceGroupId = value; } /** *

The instance group to which the CodeDeploy instance belongs.

*/ inline void SetCodeDeployInstanceGroupId(Aws::String&& value) { m_codeDeployInstanceGroupIdHasBeenSet = true; m_codeDeployInstanceGroupId = std::move(value); } /** *

The instance group to which the CodeDeploy instance belongs.

*/ inline void SetCodeDeployInstanceGroupId(const char* value) { m_codeDeployInstanceGroupIdHasBeenSet = true; m_codeDeployInstanceGroupId.assign(value); } /** *

The instance group to which the CodeDeploy instance belongs.

*/ inline Observation& WithCodeDeployInstanceGroupId(const Aws::String& value) { SetCodeDeployInstanceGroupId(value); return *this;} /** *

The instance group to which the CodeDeploy instance belongs.

*/ inline Observation& WithCodeDeployInstanceGroupId(Aws::String&& value) { SetCodeDeployInstanceGroupId(std::move(value)); return *this;} /** *

The instance group to which the CodeDeploy instance belongs.

*/ inline Observation& WithCodeDeployInstanceGroupId(const char* value) { SetCodeDeployInstanceGroupId(value); return *this;} /** *

The state of the instance, such as STOPPING or * TERMINATING.

*/ inline const Aws::String& GetEc2State() const{ return m_ec2State; } /** *

The state of the instance, such as STOPPING or * TERMINATING.

*/ inline bool Ec2StateHasBeenSet() const { return m_ec2StateHasBeenSet; } /** *

The state of the instance, such as STOPPING or * TERMINATING.

*/ inline void SetEc2State(const Aws::String& value) { m_ec2StateHasBeenSet = true; m_ec2State = value; } /** *

The state of the instance, such as STOPPING or * TERMINATING.

*/ inline void SetEc2State(Aws::String&& value) { m_ec2StateHasBeenSet = true; m_ec2State = std::move(value); } /** *

The state of the instance, such as STOPPING or * TERMINATING.

*/ inline void SetEc2State(const char* value) { m_ec2StateHasBeenSet = true; m_ec2State.assign(value); } /** *

The state of the instance, such as STOPPING or * TERMINATING.

*/ inline Observation& WithEc2State(const Aws::String& value) { SetEc2State(value); return *this;} /** *

The state of the instance, such as STOPPING or * TERMINATING.

*/ inline Observation& WithEc2State(Aws::String&& value) { SetEc2State(std::move(value)); return *this;} /** *

The state of the instance, such as STOPPING or * TERMINATING.

*/ inline Observation& WithEc2State(const char* value) { SetEc2State(value); return *this;} /** *

The X-Ray request fault percentage for this node.

*/ inline int GetXRayFaultPercent() const{ return m_xRayFaultPercent; } /** *

The X-Ray request fault percentage for this node.

*/ inline bool XRayFaultPercentHasBeenSet() const { return m_xRayFaultPercentHasBeenSet; } /** *

The X-Ray request fault percentage for this node.

*/ inline void SetXRayFaultPercent(int value) { m_xRayFaultPercentHasBeenSet = true; m_xRayFaultPercent = value; } /** *

The X-Ray request fault percentage for this node.

*/ inline Observation& WithXRayFaultPercent(int value) { SetXRayFaultPercent(value); return *this;} /** *

The X-Ray request throttle percentage for this node.

*/ inline int GetXRayThrottlePercent() const{ return m_xRayThrottlePercent; } /** *

The X-Ray request throttle percentage for this node.

*/ inline bool XRayThrottlePercentHasBeenSet() const { return m_xRayThrottlePercentHasBeenSet; } /** *

The X-Ray request throttle percentage for this node.

*/ inline void SetXRayThrottlePercent(int value) { m_xRayThrottlePercentHasBeenSet = true; m_xRayThrottlePercent = value; } /** *

The X-Ray request throttle percentage for this node.

*/ inline Observation& WithXRayThrottlePercent(int value) { SetXRayThrottlePercent(value); return *this;} /** *

The X-Ray request error percentage for this node.

*/ inline int GetXRayErrorPercent() const{ return m_xRayErrorPercent; } /** *

The X-Ray request error percentage for this node.

*/ inline bool XRayErrorPercentHasBeenSet() const { return m_xRayErrorPercentHasBeenSet; } /** *

The X-Ray request error percentage for this node.

*/ inline void SetXRayErrorPercent(int value) { m_xRayErrorPercentHasBeenSet = true; m_xRayErrorPercent = value; } /** *

The X-Ray request error percentage for this node.

*/ inline Observation& WithXRayErrorPercent(int value) { SetXRayErrorPercent(value); return *this;} /** *

The X-Ray request count for this node.

*/ inline int GetXRayRequestCount() const{ return m_xRayRequestCount; } /** *

The X-Ray request count for this node.

*/ inline bool XRayRequestCountHasBeenSet() const { return m_xRayRequestCountHasBeenSet; } /** *

The X-Ray request count for this node.

*/ inline void SetXRayRequestCount(int value) { m_xRayRequestCountHasBeenSet = true; m_xRayRequestCount = value; } /** *

The X-Ray request count for this node.

*/ inline Observation& WithXRayRequestCount(int value) { SetXRayRequestCount(value); return *this;} /** *

The X-Ray node request average latency for this node.

*/ inline long long GetXRayRequestAverageLatency() const{ return m_xRayRequestAverageLatency; } /** *

The X-Ray node request average latency for this node.

*/ inline bool XRayRequestAverageLatencyHasBeenSet() const { return m_xRayRequestAverageLatencyHasBeenSet; } /** *

The X-Ray node request average latency for this node.

*/ inline void SetXRayRequestAverageLatency(long long value) { m_xRayRequestAverageLatencyHasBeenSet = true; m_xRayRequestAverageLatency = value; } /** *

The X-Ray node request average latency for this node.

*/ inline Observation& WithXRayRequestAverageLatency(long long value) { SetXRayRequestAverageLatency(value); return *this;} /** *

The name of the X-Ray node.

*/ inline const Aws::String& GetXRayNodeName() const{ return m_xRayNodeName; } /** *

The name of the X-Ray node.

*/ inline bool XRayNodeNameHasBeenSet() const { return m_xRayNodeNameHasBeenSet; } /** *

The name of the X-Ray node.

*/ inline void SetXRayNodeName(const Aws::String& value) { m_xRayNodeNameHasBeenSet = true; m_xRayNodeName = value; } /** *

The name of the X-Ray node.

*/ inline void SetXRayNodeName(Aws::String&& value) { m_xRayNodeNameHasBeenSet = true; m_xRayNodeName = std::move(value); } /** *

The name of the X-Ray node.

*/ inline void SetXRayNodeName(const char* value) { m_xRayNodeNameHasBeenSet = true; m_xRayNodeName.assign(value); } /** *

The name of the X-Ray node.

*/ inline Observation& WithXRayNodeName(const Aws::String& value) { SetXRayNodeName(value); return *this;} /** *

The name of the X-Ray node.

*/ inline Observation& WithXRayNodeName(Aws::String&& value) { SetXRayNodeName(std::move(value)); return *this;} /** *

The name of the X-Ray node.

*/ inline Observation& WithXRayNodeName(const char* value) { SetXRayNodeName(value); return *this;} /** *

The type of the X-Ray node.

*/ inline const Aws::String& GetXRayNodeType() const{ return m_xRayNodeType; } /** *

The type of the X-Ray node.

*/ inline bool XRayNodeTypeHasBeenSet() const { return m_xRayNodeTypeHasBeenSet; } /** *

The type of the X-Ray node.

*/ inline void SetXRayNodeType(const Aws::String& value) { m_xRayNodeTypeHasBeenSet = true; m_xRayNodeType = value; } /** *

The type of the X-Ray node.

*/ inline void SetXRayNodeType(Aws::String&& value) { m_xRayNodeTypeHasBeenSet = true; m_xRayNodeType = std::move(value); } /** *

The type of the X-Ray node.

*/ inline void SetXRayNodeType(const char* value) { m_xRayNodeTypeHasBeenSet = true; m_xRayNodeType.assign(value); } /** *

The type of the X-Ray node.

*/ inline Observation& WithXRayNodeType(const Aws::String& value) { SetXRayNodeType(value); return *this;} /** *

The type of the X-Ray node.

*/ inline Observation& WithXRayNodeType(Aws::String&& value) { SetXRayNodeType(std::move(value)); return *this;} /** *

The type of the X-Ray node.

*/ inline Observation& WithXRayNodeType(const char* value) { SetXRayNodeType(value); return *this;} private: Aws::String m_id; bool m_idHasBeenSet; Aws::Utils::DateTime m_startTime; bool m_startTimeHasBeenSet; Aws::Utils::DateTime m_endTime; bool m_endTimeHasBeenSet; Aws::String m_sourceType; bool m_sourceTypeHasBeenSet; Aws::String m_sourceARN; bool m_sourceARNHasBeenSet; Aws::String m_logGroup; bool m_logGroupHasBeenSet; Aws::Utils::DateTime m_lineTime; bool m_lineTimeHasBeenSet; Aws::String m_logText; bool m_logTextHasBeenSet; LogFilter m_logFilter; bool m_logFilterHasBeenSet; Aws::String m_metricNamespace; bool m_metricNamespaceHasBeenSet; Aws::String m_metricName; bool m_metricNameHasBeenSet; Aws::String m_unit; bool m_unitHasBeenSet; double m_value; bool m_valueHasBeenSet; Aws::String m_cloudWatchEventId; bool m_cloudWatchEventIdHasBeenSet; CloudWatchEventSource m_cloudWatchEventSource; bool m_cloudWatchEventSourceHasBeenSet; Aws::String m_cloudWatchEventDetailType; bool m_cloudWatchEventDetailTypeHasBeenSet; Aws::String m_healthEventArn; bool m_healthEventArnHasBeenSet; Aws::String m_healthService; bool m_healthServiceHasBeenSet; Aws::String m_healthEventTypeCode; bool m_healthEventTypeCodeHasBeenSet; Aws::String m_healthEventTypeCategory; bool m_healthEventTypeCategoryHasBeenSet; Aws::String m_healthEventDescription; bool m_healthEventDescriptionHasBeenSet; Aws::String m_codeDeployDeploymentId; bool m_codeDeployDeploymentIdHasBeenSet; Aws::String m_codeDeployDeploymentGroup; bool m_codeDeployDeploymentGroupHasBeenSet; Aws::String m_codeDeployState; bool m_codeDeployStateHasBeenSet; Aws::String m_codeDeployApplication; bool m_codeDeployApplicationHasBeenSet; Aws::String m_codeDeployInstanceGroupId; bool m_codeDeployInstanceGroupIdHasBeenSet; Aws::String m_ec2State; bool m_ec2StateHasBeenSet; int m_xRayFaultPercent; bool m_xRayFaultPercentHasBeenSet; int m_xRayThrottlePercent; bool m_xRayThrottlePercentHasBeenSet; int m_xRayErrorPercent; bool m_xRayErrorPercentHasBeenSet; int m_xRayRequestCount; bool m_xRayRequestCountHasBeenSet; long long m_xRayRequestAverageLatency; bool m_xRayRequestAverageLatencyHasBeenSet; Aws::String m_xRayNodeName; bool m_xRayNodeNameHasBeenSet; Aws::String m_xRayNodeType; bool m_xRayNodeTypeHasBeenSet; }; } // namespace Model } // namespace ApplicationInsights } // namespace Aws