AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
RecommendationRelatedAnomaly.h
1
6#pragma once
7#include <aws/devops-guru/DevOpsGuru_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/devops-guru/model/RecommendationRelatedAnomalyResource.h>
11#include <aws/devops-guru/model/RecommendationRelatedAnomalySourceDetail.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace DevOpsGuru
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_DEVOPSGURU_API RecommendationRelatedAnomaly() = default;
41 AWS_DEVOPSGURU_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline const Aws::Vector<RecommendationRelatedAnomalyResource>& GetResources() const { return m_resources; }
50 inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
51 template<typename ResourcesT = Aws::Vector<RecommendationRelatedAnomalyResource>>
52 void SetResources(ResourcesT&& value) { m_resourcesHasBeenSet = true; m_resources = std::forward<ResourcesT>(value); }
53 template<typename ResourcesT = Aws::Vector<RecommendationRelatedAnomalyResource>>
54 RecommendationRelatedAnomaly& WithResources(ResourcesT&& value) { SetResources(std::forward<ResourcesT>(value)); return *this;}
55 template<typename ResourcesT = RecommendationRelatedAnomalyResource>
56 RecommendationRelatedAnomaly& AddResources(ResourcesT&& value) { m_resourcesHasBeenSet = true; m_resources.emplace_back(std::forward<ResourcesT>(value)); return *this; }
58
60
64 inline const Aws::Vector<RecommendationRelatedAnomalySourceDetail>& GetSourceDetails() const { return m_sourceDetails; }
65 inline bool SourceDetailsHasBeenSet() const { return m_sourceDetailsHasBeenSet; }
66 template<typename SourceDetailsT = Aws::Vector<RecommendationRelatedAnomalySourceDetail>>
67 void SetSourceDetails(SourceDetailsT&& value) { m_sourceDetailsHasBeenSet = true; m_sourceDetails = std::forward<SourceDetailsT>(value); }
68 template<typename SourceDetailsT = Aws::Vector<RecommendationRelatedAnomalySourceDetail>>
69 RecommendationRelatedAnomaly& WithSourceDetails(SourceDetailsT&& value) { SetSourceDetails(std::forward<SourceDetailsT>(value)); return *this;}
70 template<typename SourceDetailsT = RecommendationRelatedAnomalySourceDetail>
71 RecommendationRelatedAnomaly& AddSourceDetails(SourceDetailsT&& value) { m_sourceDetailsHasBeenSet = true; m_sourceDetails.emplace_back(std::forward<SourceDetailsT>(value)); return *this; }
73
75
78 inline const Aws::String& GetAnomalyId() const { return m_anomalyId; }
79 inline bool AnomalyIdHasBeenSet() const { return m_anomalyIdHasBeenSet; }
80 template<typename AnomalyIdT = Aws::String>
81 void SetAnomalyId(AnomalyIdT&& value) { m_anomalyIdHasBeenSet = true; m_anomalyId = std::forward<AnomalyIdT>(value); }
82 template<typename AnomalyIdT = Aws::String>
83 RecommendationRelatedAnomaly& WithAnomalyId(AnomalyIdT&& value) { SetAnomalyId(std::forward<AnomalyIdT>(value)); return *this;}
85 private:
86
88 bool m_resourcesHasBeenSet = false;
89
91 bool m_sourceDetailsHasBeenSet = false;
92
93 Aws::String m_anomalyId;
94 bool m_anomalyIdHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace DevOpsGuru
99} // 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