/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #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 a problem that is detected by correlating * observations.

See Also:

AWS * API Reference

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

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 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::Map& GetFeedback() const{ return m_feedback; } /** *

Feedback 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::Map& value) { m_feedbackHasBeenSet = true; m_feedback = value; } /** *

Feedback provided by the user about the problem.

*/ inline void SetFeedback(Aws::Map&& value) { m_feedbackHasBeenSet = true; m_feedback = std::move(value); } /** *

Feedback provided by the user about the problem.

*/ inline Problem& WithFeedback(const Aws::Map& value) { SetFeedback(value); return *this;} /** *

Feedback provided by the user about the problem.

*/ inline Problem& WithFeedback(Aws::Map&& value) { SetFeedback(std::move(value)); return *this;} /** *

Feedback 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; } private: Aws::String m_id; bool m_idHasBeenSet; Aws::String m_title; bool m_titleHasBeenSet; Aws::String m_insights; bool m_insightsHasBeenSet; Status m_status; bool m_statusHasBeenSet; Aws::String m_affectedResource; bool m_affectedResourceHasBeenSet; Aws::Utils::DateTime m_startTime; bool m_startTimeHasBeenSet; Aws::Utils::DateTime m_endTime; bool m_endTimeHasBeenSet; SeverityLevel m_severityLevel; bool m_severityLevelHasBeenSet; Aws::String m_resourceGroupName; bool m_resourceGroupNameHasBeenSet; Aws::Map m_feedback; bool m_feedbackHasBeenSet; }; } // namespace Model } // namespace ApplicationInsights } // namespace Aws