AWS SDK for C++

AWS SDK for C++ Version 1.11.754

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