AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
RelatedObservations.h
1
6#pragma once
7#include <aws/application-insights/ApplicationInsights_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/application-insights/model/Observation.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ApplicationInsights
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_APPLICATIONINSIGHTS_API RelatedObservations() = default;
36 AWS_APPLICATIONINSIGHTS_API RelatedObservations(Aws::Utils::Json::JsonView jsonValue);
37 AWS_APPLICATIONINSIGHTS_API RelatedObservations& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_APPLICATIONINSIGHTS_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::Vector<Observation>& GetObservationList() const { return m_observationList; }
46 inline bool ObservationListHasBeenSet() const { return m_observationListHasBeenSet; }
47 template<typename ObservationListT = Aws::Vector<Observation>>
48 void SetObservationList(ObservationListT&& value) { m_observationListHasBeenSet = true; m_observationList = std::forward<ObservationListT>(value); }
49 template<typename ObservationListT = Aws::Vector<Observation>>
50 RelatedObservations& WithObservationList(ObservationListT&& value) { SetObservationList(std::forward<ObservationListT>(value)); return *this;}
51 template<typename ObservationListT = Observation>
52 RelatedObservations& AddObservationList(ObservationListT&& value) { m_observationListHasBeenSet = true; m_observationList.emplace_back(std::forward<ObservationListT>(value)); return *this; }
54 private:
55
56 Aws::Vector<Observation> m_observationList;
57 bool m_observationListHasBeenSet = false;
58 };
59
60} // namespace Model
61} // namespace ApplicationInsights
62} // namespace Aws
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue