AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RecommendationItem.h
1
6#pragma once
7#include <aws/resiliencehub/ResilienceHub_EXPORTS.h>
8#include <aws/resiliencehub/model/ExcludeRecommendationReason.h>
9#include <aws/core/utils/memory/stl/AWSString.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 ResilienceHub
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_RESILIENCEHUB_API RecommendationItem();
36 AWS_RESILIENCEHUB_API RecommendationItem(Aws::Utils::Json::JsonView jsonValue);
37 AWS_RESILIENCEHUB_API RecommendationItem& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_RESILIENCEHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline bool GetAlreadyImplemented() const{ return m_alreadyImplemented; }
46 inline bool AlreadyImplementedHasBeenSet() const { return m_alreadyImplementedHasBeenSet; }
47 inline void SetAlreadyImplemented(bool value) { m_alreadyImplementedHasBeenSet = true; m_alreadyImplemented = value; }
48 inline RecommendationItem& WithAlreadyImplemented(bool value) { SetAlreadyImplemented(value); return *this;}
50
52
55 inline const ExcludeRecommendationReason& GetExcludeReason() const{ return m_excludeReason; }
56 inline bool ExcludeReasonHasBeenSet() const { return m_excludeReasonHasBeenSet; }
57 inline void SetExcludeReason(const ExcludeRecommendationReason& value) { m_excludeReasonHasBeenSet = true; m_excludeReason = value; }
58 inline void SetExcludeReason(ExcludeRecommendationReason&& value) { m_excludeReasonHasBeenSet = true; m_excludeReason = std::move(value); }
60 inline RecommendationItem& WithExcludeReason(ExcludeRecommendationReason&& value) { SetExcludeReason(std::move(value)); return *this;}
62
64
67 inline bool GetExcluded() const{ return m_excluded; }
68 inline bool ExcludedHasBeenSet() const { return m_excludedHasBeenSet; }
69 inline void SetExcluded(bool value) { m_excludedHasBeenSet = true; m_excluded = value; }
70 inline RecommendationItem& WithExcluded(bool value) { SetExcluded(value); return *this;}
72
74
77 inline const Aws::String& GetResourceId() const{ return m_resourceId; }
78 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
79 inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
80 inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
81 inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
82 inline RecommendationItem& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
83 inline RecommendationItem& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
84 inline RecommendationItem& WithResourceId(const char* value) { SetResourceId(value); return *this;}
86
88
91 inline const Aws::String& GetTargetAccountId() const{ return m_targetAccountId; }
92 inline bool TargetAccountIdHasBeenSet() const { return m_targetAccountIdHasBeenSet; }
93 inline void SetTargetAccountId(const Aws::String& value) { m_targetAccountIdHasBeenSet = true; m_targetAccountId = value; }
94 inline void SetTargetAccountId(Aws::String&& value) { m_targetAccountIdHasBeenSet = true; m_targetAccountId = std::move(value); }
95 inline void SetTargetAccountId(const char* value) { m_targetAccountIdHasBeenSet = true; m_targetAccountId.assign(value); }
96 inline RecommendationItem& WithTargetAccountId(const Aws::String& value) { SetTargetAccountId(value); return *this;}
97 inline RecommendationItem& WithTargetAccountId(Aws::String&& value) { SetTargetAccountId(std::move(value)); return *this;}
98 inline RecommendationItem& WithTargetAccountId(const char* value) { SetTargetAccountId(value); return *this;}
100
102
105 inline const Aws::String& GetTargetRegion() const{ return m_targetRegion; }
106 inline bool TargetRegionHasBeenSet() const { return m_targetRegionHasBeenSet; }
107 inline void SetTargetRegion(const Aws::String& value) { m_targetRegionHasBeenSet = true; m_targetRegion = value; }
108 inline void SetTargetRegion(Aws::String&& value) { m_targetRegionHasBeenSet = true; m_targetRegion = std::move(value); }
109 inline void SetTargetRegion(const char* value) { m_targetRegionHasBeenSet = true; m_targetRegion.assign(value); }
110 inline RecommendationItem& WithTargetRegion(const Aws::String& value) { SetTargetRegion(value); return *this;}
111 inline RecommendationItem& WithTargetRegion(Aws::String&& value) { SetTargetRegion(std::move(value)); return *this;}
112 inline RecommendationItem& WithTargetRegion(const char* value) { SetTargetRegion(value); return *this;}
114 private:
115
116 bool m_alreadyImplemented;
117 bool m_alreadyImplementedHasBeenSet = false;
118
119 ExcludeRecommendationReason m_excludeReason;
120 bool m_excludeReasonHasBeenSet = false;
121
122 bool m_excluded;
123 bool m_excludedHasBeenSet = false;
124
125 Aws::String m_resourceId;
126 bool m_resourceIdHasBeenSet = false;
127
128 Aws::String m_targetAccountId;
129 bool m_targetAccountIdHasBeenSet = false;
130
131 Aws::String m_targetRegion;
132 bool m_targetRegionHasBeenSet = false;
133 };
134
135} // namespace Model
136} // namespace ResilienceHub
137} // namespace Aws
AWS_RESILIENCEHUB_API Aws::Utils::Json::JsonValue Jsonize() const
RecommendationItem & WithResourceId(const Aws::String &value)
RecommendationItem & WithTargetRegion(Aws::String &&value)
void SetExcludeReason(ExcludeRecommendationReason &&value)
RecommendationItem & WithTargetRegion(const Aws::String &value)
RecommendationItem & WithExcluded(bool value)
RecommendationItem & WithTargetAccountId(const char *value)
RecommendationItem & WithTargetAccountId(const Aws::String &value)
AWS_RESILIENCEHUB_API RecommendationItem & operator=(Aws::Utils::Json::JsonView jsonValue)
RecommendationItem & WithExcludeReason(const ExcludeRecommendationReason &value)
RecommendationItem & WithTargetAccountId(Aws::String &&value)
void SetTargetAccountId(const Aws::String &value)
RecommendationItem & WithExcludeReason(ExcludeRecommendationReason &&value)
void SetExcludeReason(const ExcludeRecommendationReason &value)
AWS_RESILIENCEHUB_API RecommendationItem(Aws::Utils::Json::JsonView jsonValue)
const ExcludeRecommendationReason & GetExcludeReason() const
RecommendationItem & WithTargetRegion(const char *value)
RecommendationItem & WithAlreadyImplemented(bool value)
RecommendationItem & WithResourceId(const char *value)
RecommendationItem & WithResourceId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue