/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes a problem that is detected by correlating
* observations.See Also:
AWS
* API Reference
The ID of the problem.
*/ inline const Aws::String& GetId() const{ return m_id; } /** *The ID of the problem.
*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *The ID of the problem.
*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *The ID of the problem.
*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *The ID of the problem.
*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *The ID of the problem.
*/ inline Problem& WithId(const Aws::String& value) { SetId(value); return *this;} /** *The ID of the problem.
*/ inline Problem& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *The ID of the problem.
*/ inline Problem& WithId(const char* value) { SetId(value); return *this;} /** *The name of the problem.
*/ inline const Aws::String& GetTitle() const{ return m_title; } /** *The name of the problem.
*/ inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; } /** *The name of the problem.
*/ inline void SetTitle(const Aws::String& value) { m_titleHasBeenSet = true; m_title = value; } /** *The name of the problem.
*/ inline void SetTitle(Aws::String&& value) { m_titleHasBeenSet = true; m_title = std::move(value); } /** *The name of the problem.
*/ inline void SetTitle(const char* value) { m_titleHasBeenSet = true; m_title.assign(value); } /** *The name of the problem.
*/ inline Problem& WithTitle(const Aws::String& value) { SetTitle(value); return *this;} /** *The name of the problem.
*/ inline Problem& WithTitle(Aws::String&& value) { SetTitle(std::move(value)); return *this;} /** *The name of the problem.
*/ inline Problem& WithTitle(const char* value) { SetTitle(value); return *this;} /** *A detailed analysis of the problem using machine learning.
*/ inline const Aws::String& GetInsights() const{ return m_insights; } /** *A detailed analysis of the problem using machine learning.
*/ inline bool InsightsHasBeenSet() const { return m_insightsHasBeenSet; } /** *A detailed analysis of the problem using machine learning.
*/ inline void SetInsights(const Aws::String& value) { m_insightsHasBeenSet = true; m_insights = value; } /** *A detailed analysis of the problem using machine learning.
*/ inline void SetInsights(Aws::String&& value) { m_insightsHasBeenSet = true; m_insights = std::move(value); } /** *A detailed analysis of the problem using machine learning.
*/ inline void SetInsights(const char* value) { m_insightsHasBeenSet = true; m_insights.assign(value); } /** *A detailed analysis of the problem using machine learning.
*/ inline Problem& WithInsights(const Aws::String& value) { SetInsights(value); return *this;} /** *A detailed analysis of the problem using machine learning.
*/ inline Problem& WithInsights(Aws::String&& value) { SetInsights(std::move(value)); return *this;} /** *A detailed analysis of the problem using machine learning.
*/ inline Problem& WithInsights(const char* value) { SetInsights(value); return *this;} /** *The status of the problem.
*/ inline const Status& GetStatus() const{ return m_status; } /** *The status of the problem.
*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *The status of the problem.
*/ inline void SetStatus(const Status& value) { m_statusHasBeenSet = true; m_status = value; } /** *The status of the problem.
*/ inline void SetStatus(Status&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *The status of the problem.
*/ inline Problem& WithStatus(const Status& value) { SetStatus(value); return *this;} /** *The status of the problem.
*/ inline Problem& WithStatus(Status&& value) { SetStatus(std::move(value)); return *this;} /** *The resource affected by the problem.
*/ inline const Aws::String& GetAffectedResource() const{ return m_affectedResource; } /** *The resource affected by the problem.
*/ inline bool AffectedResourceHasBeenSet() const { return m_affectedResourceHasBeenSet; } /** *The resource affected by the problem.
*/ inline void SetAffectedResource(const Aws::String& value) { m_affectedResourceHasBeenSet = true; m_affectedResource = value; } /** *The resource affected by the problem.
*/ inline void SetAffectedResource(Aws::String&& value) { m_affectedResourceHasBeenSet = true; m_affectedResource = std::move(value); } /** *The resource affected by the problem.
*/ inline void SetAffectedResource(const char* value) { m_affectedResourceHasBeenSet = true; m_affectedResource.assign(value); } /** *The resource affected by the problem.
*/ inline Problem& WithAffectedResource(const Aws::String& value) { SetAffectedResource(value); return *this;} /** *The resource affected by the problem.
*/ inline Problem& WithAffectedResource(Aws::String&& value) { SetAffectedResource(std::move(value)); return *this;} /** *The resource affected by the problem.
*/ inline Problem& WithAffectedResource(const char* value) { SetAffectedResource(value); return *this;} /** *The time when the problem started, in epoch seconds.
*/ inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; } /** *The time when the problem started, in epoch seconds.
*/ inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; } /** *The time when the problem started, in epoch seconds.
*/ inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; } /** *The time when the problem started, in epoch seconds.
*/ inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); } /** *The time when the problem started, in epoch seconds.
*/ inline Problem& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;} /** *The time when the problem started, in epoch seconds.
*/ inline Problem& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;} /** *The time when the problem ended, in epoch seconds.
*/ inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; } /** *The time when the problem ended, in epoch seconds.
*/ inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; } /** *The time when the problem ended, in epoch seconds.
*/ inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; } /** *The time when the problem ended, in epoch seconds.
*/ inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); } /** *The time when the problem ended, in epoch seconds.
*/ inline Problem& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;} /** *The time when the problem ended, in epoch seconds.
*/ inline Problem& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;} /** *A measure of the level of impact of the problem.
*/ inline const SeverityLevel& GetSeverityLevel() const{ return m_severityLevel; } /** *A measure of the level of impact of the problem.
*/ inline bool SeverityLevelHasBeenSet() const { return m_severityLevelHasBeenSet; } /** *A measure of the level of impact of the problem.
*/ inline void SetSeverityLevel(const SeverityLevel& value) { m_severityLevelHasBeenSet = true; m_severityLevel = value; } /** *A measure of the level of impact of the problem.
*/ inline void SetSeverityLevel(SeverityLevel&& value) { m_severityLevelHasBeenSet = true; m_severityLevel = std::move(value); } /** *A measure of the level of impact of the problem.
*/ inline Problem& WithSeverityLevel(const SeverityLevel& value) { SetSeverityLevel(value); return *this;} /** *A measure of the level of impact of the problem.
*/ inline Problem& WithSeverityLevel(SeverityLevel&& value) { SetSeverityLevel(std::move(value)); return *this;} /** *The AWS account ID for the owner of the resource group affected by the * problem.
*/ inline const Aws::String& GetAccountId() const{ return m_accountId; } /** *The AWS account ID for the owner of the resource group affected by the * problem.
*/ inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; } /** *The AWS account ID for the owner of the resource group affected by the * problem.
*/ inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; } /** *The AWS account ID for the owner of the resource group affected by the * problem.
*/ inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); } /** *The AWS account ID for the owner of the resource group affected by the * problem.
*/ inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); } /** *The AWS account ID for the owner of the resource group affected by the * problem.
*/ inline Problem& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;} /** *The AWS account ID for the owner of the resource group affected by the * problem.
*/ inline Problem& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;} /** *The AWS account ID for the owner of the resource group affected by the * problem.
*/ inline Problem& WithAccountId(const char* value) { SetAccountId(value); return *this;} /** *The name of the resource group affected by the problem.
*/ inline const Aws::String& GetResourceGroupName() const{ return m_resourceGroupName; } /** *The name of the resource group affected by the problem.
*/ inline bool ResourceGroupNameHasBeenSet() const { return m_resourceGroupNameHasBeenSet; } /** *The name of the resource group affected by the problem.
*/ inline void SetResourceGroupName(const Aws::String& value) { m_resourceGroupNameHasBeenSet = true; m_resourceGroupName = value; } /** *The name of the resource group affected by the problem.
*/ inline void SetResourceGroupName(Aws::String&& value) { m_resourceGroupNameHasBeenSet = true; m_resourceGroupName = std::move(value); } /** *The name of the resource group affected by the problem.
*/ inline void SetResourceGroupName(const char* value) { m_resourceGroupNameHasBeenSet = true; m_resourceGroupName.assign(value); } /** *The name of the resource group affected by the problem.
*/ inline Problem& WithResourceGroupName(const Aws::String& value) { SetResourceGroupName(value); return *this;} /** *The name of the resource group affected by the problem.
*/ inline Problem& WithResourceGroupName(Aws::String&& value) { SetResourceGroupName(std::move(value)); return *this;} /** *The name of the resource group affected by the problem.
*/ inline Problem& WithResourceGroupName(const char* value) { SetResourceGroupName(value); return *this;} /** *Feedback provided by the user about the problem.
*/ inline const Aws::MapFeedback provided by the user about the problem.
*/ inline bool FeedbackHasBeenSet() const { return m_feedbackHasBeenSet; } /** *Feedback provided by the user about the problem.
*/ inline void SetFeedback(const Aws::MapFeedback provided by the user about the problem.
*/ inline void SetFeedback(Aws::MapFeedback provided by the user about the problem.
*/ inline Problem& WithFeedback(const Aws::MapFeedback provided by the user about the problem.
*/ inline Problem& WithFeedback(Aws::MapFeedback provided by the user about the problem.
*/ inline Problem& AddFeedback(const FeedbackKey& key, const FeedbackValue& value) { m_feedbackHasBeenSet = true; m_feedback.emplace(key, value); return *this; } /** *Feedback provided by the user about the problem.
*/ inline Problem& AddFeedback(FeedbackKey&& key, const FeedbackValue& value) { m_feedbackHasBeenSet = true; m_feedback.emplace(std::move(key), value); return *this; } /** *Feedback provided by the user about the problem.
*/ inline Problem& AddFeedback(const FeedbackKey& key, FeedbackValue&& value) { m_feedbackHasBeenSet = true; m_feedback.emplace(key, std::move(value)); return *this; } /** *Feedback provided by the user about the problem.
*/ inline Problem& AddFeedback(FeedbackKey&& key, FeedbackValue&& value) { m_feedbackHasBeenSet = true; m_feedback.emplace(std::move(key), std::move(value)); return *this; } /** *The number of times that the same problem reoccurred after the first time it * was resolved.
*/ inline long long GetRecurringCount() const{ return m_recurringCount; } /** *The number of times that the same problem reoccurred after the first time it * was resolved.
*/ inline bool RecurringCountHasBeenSet() const { return m_recurringCountHasBeenSet; } /** *The number of times that the same problem reoccurred after the first time it * was resolved.
*/ inline void SetRecurringCount(long long value) { m_recurringCountHasBeenSet = true; m_recurringCount = value; } /** *The number of times that the same problem reoccurred after the first time it * was resolved.
*/ inline Problem& WithRecurringCount(long long value) { SetRecurringCount(value); return *this;} /** *The last time that the problem reoccurred after its last resolution.
*/ inline const Aws::Utils::DateTime& GetLastRecurrenceTime() const{ return m_lastRecurrenceTime; } /** *The last time that the problem reoccurred after its last resolution.
*/ inline bool LastRecurrenceTimeHasBeenSet() const { return m_lastRecurrenceTimeHasBeenSet; } /** *The last time that the problem reoccurred after its last resolution.
*/ inline void SetLastRecurrenceTime(const Aws::Utils::DateTime& value) { m_lastRecurrenceTimeHasBeenSet = true; m_lastRecurrenceTime = value; } /** *The last time that the problem reoccurred after its last resolution.
*/ inline void SetLastRecurrenceTime(Aws::Utils::DateTime&& value) { m_lastRecurrenceTimeHasBeenSet = true; m_lastRecurrenceTime = std::move(value); } /** *The last time that the problem reoccurred after its last resolution.
*/ inline Problem& WithLastRecurrenceTime(const Aws::Utils::DateTime& value) { SetLastRecurrenceTime(value); return *this;} /** *The last time that the problem reoccurred after its last resolution.
*/ inline Problem& WithLastRecurrenceTime(Aws::Utils::DateTime&& value) { SetLastRecurrenceTime(std::move(value)); return *this;} /** *Specifies whether or not you can view the problem. Updates to ignored * problems do not generate notifications.
*/ inline const Visibility& GetVisibility() const{ return m_visibility; } /** *Specifies whether or not you can view the problem. Updates to ignored * problems do not generate notifications.
*/ inline bool VisibilityHasBeenSet() const { return m_visibilityHasBeenSet; } /** *Specifies whether or not you can view the problem. Updates to ignored * problems do not generate notifications.
*/ inline void SetVisibility(const Visibility& value) { m_visibilityHasBeenSet = true; m_visibility = value; } /** *Specifies whether or not you can view the problem. Updates to ignored * problems do not generate notifications.
*/ inline void SetVisibility(Visibility&& value) { m_visibilityHasBeenSet = true; m_visibility = std::move(value); } /** *Specifies whether or not you can view the problem. Updates to ignored * problems do not generate notifications.
*/ inline Problem& WithVisibility(const Visibility& value) { SetVisibility(value); return *this;} /** *Specifies whether or not you can view the problem. Updates to ignored * problems do not generate notifications.
*/ inline Problem& WithVisibility(Visibility&& value) { SetVisibility(std::move(value)); return *this;} /** *Specifies how the problem was resolved. If the value is
* AUTOMATIC
, the system resolved the problem. If the value is
* MANUAL
, the user resolved the problem. If the value is
* UNRESOLVED
, then the problem is not resolved.
Specifies how the problem was resolved. If the value is
* AUTOMATIC
, the system resolved the problem. If the value is
* MANUAL
, the user resolved the problem. If the value is
* UNRESOLVED
, then the problem is not resolved.
Specifies how the problem was resolved. If the value is
* AUTOMATIC
, the system resolved the problem. If the value is
* MANUAL
, the user resolved the problem. If the value is
* UNRESOLVED
, then the problem is not resolved.
Specifies how the problem was resolved. If the value is
* AUTOMATIC
, the system resolved the problem. If the value is
* MANUAL
, the user resolved the problem. If the value is
* UNRESOLVED
, then the problem is not resolved.
Specifies how the problem was resolved. If the value is
* AUTOMATIC
, the system resolved the problem. If the value is
* MANUAL
, the user resolved the problem. If the value is
* UNRESOLVED
, then the problem is not resolved.
Specifies how the problem was resolved. If the value is
* AUTOMATIC
, the system resolved the problem. If the value is
* MANUAL
, the user resolved the problem. If the value is
* UNRESOLVED
, then the problem is not resolved.