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

Describes observations related to the problem.

See Also:

AWS * API Reference

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

The list of observations related to the problem.

*/ inline const Aws::Vector& GetObservationList() const{ return m_observationList; } /** *

The list of observations related to the problem.

*/ inline bool ObservationListHasBeenSet() const { return m_observationListHasBeenSet; } /** *

The list of observations related to the problem.

*/ inline void SetObservationList(const Aws::Vector& value) { m_observationListHasBeenSet = true; m_observationList = value; } /** *

The list of observations related to the problem.

*/ inline void SetObservationList(Aws::Vector&& value) { m_observationListHasBeenSet = true; m_observationList = std::move(value); } /** *

The list of observations related to the problem.

*/ inline RelatedObservations& WithObservationList(const Aws::Vector& value) { SetObservationList(value); return *this;} /** *

The list of observations related to the problem.

*/ inline RelatedObservations& WithObservationList(Aws::Vector&& value) { SetObservationList(std::move(value)); return *this;} /** *

The list of observations related to the problem.

*/ inline RelatedObservations& AddObservationList(const Observation& value) { m_observationListHasBeenSet = true; m_observationList.push_back(value); return *this; } /** *

The list of observations related to the problem.

*/ inline RelatedObservations& AddObservationList(Observation&& value) { m_observationListHasBeenSet = true; m_observationList.push_back(std::move(value)); return *this; } private: Aws::Vector m_observationList; bool m_observationListHasBeenSet = false; }; } // namespace Model } // namespace ApplicationInsights } // namespace Aws