AWS SDK for C++

AWS SDK for C++ Version 1.11.686

Loading...
Searching...
No Matches
RecommendationRelatedAnomaly.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/devops-guru/DevOpsGuru_EXPORTS.h>
10#include <aws/devops-guru/model/RecommendationRelatedAnomalyResource.h>
11#include <aws/devops-guru/model/RecommendationRelatedAnomalySourceDetail.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace DevOpsGuru {
23namespace Model {
24
32 public:
33 AWS_DEVOPSGURU_API RecommendationRelatedAnomaly() = default;
36 AWS_DEVOPSGURU_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline const Aws::Vector<RecommendationRelatedAnomalyResource>& GetResources() const { return m_resources; }
44 inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
45 template <typename ResourcesT = Aws::Vector<RecommendationRelatedAnomalyResource>>
46 void SetResources(ResourcesT&& value) {
47 m_resourcesHasBeenSet = true;
48 m_resources = std::forward<ResourcesT>(value);
49 }
50 template <typename ResourcesT = Aws::Vector<RecommendationRelatedAnomalyResource>>
52 SetResources(std::forward<ResourcesT>(value));
53 return *this;
54 }
55 template <typename ResourcesT = RecommendationRelatedAnomalyResource>
57 m_resourcesHasBeenSet = true;
58 m_resources.emplace_back(std::forward<ResourcesT>(value));
59 return *this;
60 }
62
64
68 inline const Aws::Vector<RecommendationRelatedAnomalySourceDetail>& GetSourceDetails() const { return m_sourceDetails; }
69 inline bool SourceDetailsHasBeenSet() const { return m_sourceDetailsHasBeenSet; }
70 template <typename SourceDetailsT = Aws::Vector<RecommendationRelatedAnomalySourceDetail>>
71 void SetSourceDetails(SourceDetailsT&& value) {
72 m_sourceDetailsHasBeenSet = true;
73 m_sourceDetails = std::forward<SourceDetailsT>(value);
74 }
75 template <typename SourceDetailsT = Aws::Vector<RecommendationRelatedAnomalySourceDetail>>
77 SetSourceDetails(std::forward<SourceDetailsT>(value));
78 return *this;
79 }
80 template <typename SourceDetailsT = RecommendationRelatedAnomalySourceDetail>
82 m_sourceDetailsHasBeenSet = true;
83 m_sourceDetails.emplace_back(std::forward<SourceDetailsT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::String& GetAnomalyId() const { return m_anomalyId; }
93 inline bool AnomalyIdHasBeenSet() const { return m_anomalyIdHasBeenSet; }
94 template <typename AnomalyIdT = Aws::String>
95 void SetAnomalyId(AnomalyIdT&& value) {
96 m_anomalyIdHasBeenSet = true;
97 m_anomalyId = std::forward<AnomalyIdT>(value);
98 }
99 template <typename AnomalyIdT = Aws::String>
101 SetAnomalyId(std::forward<AnomalyIdT>(value));
102 return *this;
103 }
105 private:
107 bool m_resourcesHasBeenSet = false;
108
110 bool m_sourceDetailsHasBeenSet = false;
111
112 Aws::String m_anomalyId;
113 bool m_anomalyIdHasBeenSet = false;
114};
115
116} // namespace Model
117} // namespace DevOpsGuru
118} // namespace Aws
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue