AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
WorkloadSummary.h
1
6#pragma once
7#include <aws/wellarchitected/WellArchitected_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/wellarchitected/model/WorkloadImprovementStatus.h>
13#include <aws/wellarchitected/model/Risk.h>
14#include <aws/wellarchitected/model/WorkloadProfile.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace WellArchitected
28{
29namespace Model
30{
31
38 {
39 public:
40 AWS_WELLARCHITECTED_API WorkloadSummary();
41 AWS_WELLARCHITECTED_API WorkloadSummary(Aws::Utils::Json::JsonView jsonValue);
42 AWS_WELLARCHITECTED_API WorkloadSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
48 inline const Aws::String& GetWorkloadId() const{ return m_workloadId; }
49 inline bool WorkloadIdHasBeenSet() const { return m_workloadIdHasBeenSet; }
50 inline void SetWorkloadId(const Aws::String& value) { m_workloadIdHasBeenSet = true; m_workloadId = value; }
51 inline void SetWorkloadId(Aws::String&& value) { m_workloadIdHasBeenSet = true; m_workloadId = std::move(value); }
52 inline void SetWorkloadId(const char* value) { m_workloadIdHasBeenSet = true; m_workloadId.assign(value); }
53 inline WorkloadSummary& WithWorkloadId(const Aws::String& value) { SetWorkloadId(value); return *this;}
54 inline WorkloadSummary& WithWorkloadId(Aws::String&& value) { SetWorkloadId(std::move(value)); return *this;}
55 inline WorkloadSummary& WithWorkloadId(const char* value) { SetWorkloadId(value); return *this;}
57
59
60 inline const Aws::String& GetWorkloadArn() const{ return m_workloadArn; }
61 inline bool WorkloadArnHasBeenSet() const { return m_workloadArnHasBeenSet; }
62 inline void SetWorkloadArn(const Aws::String& value) { m_workloadArnHasBeenSet = true; m_workloadArn = value; }
63 inline void SetWorkloadArn(Aws::String&& value) { m_workloadArnHasBeenSet = true; m_workloadArn = std::move(value); }
64 inline void SetWorkloadArn(const char* value) { m_workloadArnHasBeenSet = true; m_workloadArn.assign(value); }
65 inline WorkloadSummary& WithWorkloadArn(const Aws::String& value) { SetWorkloadArn(value); return *this;}
66 inline WorkloadSummary& WithWorkloadArn(Aws::String&& value) { SetWorkloadArn(std::move(value)); return *this;}
67 inline WorkloadSummary& WithWorkloadArn(const char* value) { SetWorkloadArn(value); return *this;}
69
71
72 inline const Aws::String& GetWorkloadName() const{ return m_workloadName; }
73 inline bool WorkloadNameHasBeenSet() const { return m_workloadNameHasBeenSet; }
74 inline void SetWorkloadName(const Aws::String& value) { m_workloadNameHasBeenSet = true; m_workloadName = value; }
75 inline void SetWorkloadName(Aws::String&& value) { m_workloadNameHasBeenSet = true; m_workloadName = std::move(value); }
76 inline void SetWorkloadName(const char* value) { m_workloadNameHasBeenSet = true; m_workloadName.assign(value); }
77 inline WorkloadSummary& WithWorkloadName(const Aws::String& value) { SetWorkloadName(value); return *this;}
78 inline WorkloadSummary& WithWorkloadName(Aws::String&& value) { SetWorkloadName(std::move(value)); return *this;}
79 inline WorkloadSummary& WithWorkloadName(const char* value) { SetWorkloadName(value); return *this;}
81
83
84 inline const Aws::String& GetOwner() const{ return m_owner; }
85 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
86 inline void SetOwner(const Aws::String& value) { m_ownerHasBeenSet = true; m_owner = value; }
87 inline void SetOwner(Aws::String&& value) { m_ownerHasBeenSet = true; m_owner = std::move(value); }
88 inline void SetOwner(const char* value) { m_ownerHasBeenSet = true; m_owner.assign(value); }
89 inline WorkloadSummary& WithOwner(const Aws::String& value) { SetOwner(value); return *this;}
90 inline WorkloadSummary& WithOwner(Aws::String&& value) { SetOwner(std::move(value)); return *this;}
91 inline WorkloadSummary& WithOwner(const char* value) { SetOwner(value); return *this;}
93
95
96 inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; }
97 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
98 inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAtHasBeenSet = true; m_updatedAt = value; }
99 inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::move(value); }
100 inline WorkloadSummary& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;}
101 inline WorkloadSummary& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;}
103
105
106 inline const Aws::Vector<Aws::String>& GetLenses() const{ return m_lenses; }
107 inline bool LensesHasBeenSet() const { return m_lensesHasBeenSet; }
108 inline void SetLenses(const Aws::Vector<Aws::String>& value) { m_lensesHasBeenSet = true; m_lenses = value; }
109 inline void SetLenses(Aws::Vector<Aws::String>&& value) { m_lensesHasBeenSet = true; m_lenses = std::move(value); }
110 inline WorkloadSummary& WithLenses(const Aws::Vector<Aws::String>& value) { SetLenses(value); return *this;}
111 inline WorkloadSummary& WithLenses(Aws::Vector<Aws::String>&& value) { SetLenses(std::move(value)); return *this;}
112 inline WorkloadSummary& AddLenses(const Aws::String& value) { m_lensesHasBeenSet = true; m_lenses.push_back(value); return *this; }
113 inline WorkloadSummary& AddLenses(Aws::String&& value) { m_lensesHasBeenSet = true; m_lenses.push_back(std::move(value)); return *this; }
114 inline WorkloadSummary& AddLenses(const char* value) { m_lensesHasBeenSet = true; m_lenses.push_back(value); return *this; }
116
118
119 inline const Aws::Map<Risk, int>& GetRiskCounts() const{ return m_riskCounts; }
120 inline bool RiskCountsHasBeenSet() const { return m_riskCountsHasBeenSet; }
121 inline void SetRiskCounts(const Aws::Map<Risk, int>& value) { m_riskCountsHasBeenSet = true; m_riskCounts = value; }
122 inline void SetRiskCounts(Aws::Map<Risk, int>&& value) { m_riskCountsHasBeenSet = true; m_riskCounts = std::move(value); }
123 inline WorkloadSummary& WithRiskCounts(const Aws::Map<Risk, int>& value) { SetRiskCounts(value); return *this;}
124 inline WorkloadSummary& WithRiskCounts(Aws::Map<Risk, int>&& value) { SetRiskCounts(std::move(value)); return *this;}
125 inline WorkloadSummary& AddRiskCounts(const Risk& key, int value) { m_riskCountsHasBeenSet = true; m_riskCounts.emplace(key, value); return *this; }
126 inline WorkloadSummary& AddRiskCounts(Risk&& key, int value) { m_riskCountsHasBeenSet = true; m_riskCounts.emplace(std::move(key), value); return *this; }
128
130
131 inline const WorkloadImprovementStatus& GetImprovementStatus() const{ return m_improvementStatus; }
132 inline bool ImprovementStatusHasBeenSet() const { return m_improvementStatusHasBeenSet; }
133 inline void SetImprovementStatus(const WorkloadImprovementStatus& value) { m_improvementStatusHasBeenSet = true; m_improvementStatus = value; }
134 inline void SetImprovementStatus(WorkloadImprovementStatus&& value) { m_improvementStatusHasBeenSet = true; m_improvementStatus = std::move(value); }
136 inline WorkloadSummary& WithImprovementStatus(WorkloadImprovementStatus&& value) { SetImprovementStatus(std::move(value)); return *this;}
138
140
143 inline const Aws::Vector<WorkloadProfile>& GetProfiles() const{ return m_profiles; }
144 inline bool ProfilesHasBeenSet() const { return m_profilesHasBeenSet; }
145 inline void SetProfiles(const Aws::Vector<WorkloadProfile>& value) { m_profilesHasBeenSet = true; m_profiles = value; }
146 inline void SetProfiles(Aws::Vector<WorkloadProfile>&& value) { m_profilesHasBeenSet = true; m_profiles = std::move(value); }
147 inline WorkloadSummary& WithProfiles(const Aws::Vector<WorkloadProfile>& value) { SetProfiles(value); return *this;}
148 inline WorkloadSummary& WithProfiles(Aws::Vector<WorkloadProfile>&& value) { SetProfiles(std::move(value)); return *this;}
149 inline WorkloadSummary& AddProfiles(const WorkloadProfile& value) { m_profilesHasBeenSet = true; m_profiles.push_back(value); return *this; }
150 inline WorkloadSummary& AddProfiles(WorkloadProfile&& value) { m_profilesHasBeenSet = true; m_profiles.push_back(std::move(value)); return *this; }
152
154
155 inline const Aws::Map<Risk, int>& GetPrioritizedRiskCounts() const{ return m_prioritizedRiskCounts; }
156 inline bool PrioritizedRiskCountsHasBeenSet() const { return m_prioritizedRiskCountsHasBeenSet; }
157 inline void SetPrioritizedRiskCounts(const Aws::Map<Risk, int>& value) { m_prioritizedRiskCountsHasBeenSet = true; m_prioritizedRiskCounts = value; }
158 inline void SetPrioritizedRiskCounts(Aws::Map<Risk, int>&& value) { m_prioritizedRiskCountsHasBeenSet = true; m_prioritizedRiskCounts = std::move(value); }
161 inline WorkloadSummary& AddPrioritizedRiskCounts(const Risk& key, int value) { m_prioritizedRiskCountsHasBeenSet = true; m_prioritizedRiskCounts.emplace(key, value); return *this; }
162 inline WorkloadSummary& AddPrioritizedRiskCounts(Risk&& key, int value) { m_prioritizedRiskCountsHasBeenSet = true; m_prioritizedRiskCounts.emplace(std::move(key), value); return *this; }
164 private:
165
166 Aws::String m_workloadId;
167 bool m_workloadIdHasBeenSet = false;
168
169 Aws::String m_workloadArn;
170 bool m_workloadArnHasBeenSet = false;
171
172 Aws::String m_workloadName;
173 bool m_workloadNameHasBeenSet = false;
174
175 Aws::String m_owner;
176 bool m_ownerHasBeenSet = false;
177
178 Aws::Utils::DateTime m_updatedAt;
179 bool m_updatedAtHasBeenSet = false;
180
182 bool m_lensesHasBeenSet = false;
183
184 Aws::Map<Risk, int> m_riskCounts;
185 bool m_riskCountsHasBeenSet = false;
186
187 WorkloadImprovementStatus m_improvementStatus;
188 bool m_improvementStatusHasBeenSet = false;
189
191 bool m_profilesHasBeenSet = false;
192
193 Aws::Map<Risk, int> m_prioritizedRiskCounts;
194 bool m_prioritizedRiskCountsHasBeenSet = false;
195 };
196
197} // namespace Model
198} // namespace WellArchitected
199} // namespace Aws
WorkloadSummary & AddProfiles(const WorkloadProfile &value)
WorkloadSummary & WithWorkloadId(const char *value)
const Aws::Vector< Aws::String > & GetLenses() const
const Aws::String & GetWorkloadName() const
void SetWorkloadArn(const Aws::String &value)
WorkloadSummary & WithOwner(Aws::String &&value)
const Aws::Map< Risk, int > & GetPrioritizedRiskCounts() const
void SetRiskCounts(const Aws::Map< Risk, int > &value)
WorkloadSummary & WithLenses(const Aws::Vector< Aws::String > &value)
WorkloadSummary & WithImprovementStatus(const WorkloadImprovementStatus &value)
WorkloadSummary & WithOwner(const Aws::String &value)
WorkloadSummary & AddPrioritizedRiskCounts(const Risk &key, int value)
void SetImprovementStatus(WorkloadImprovementStatus &&value)
AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< WorkloadProfile > & GetProfiles() const
WorkloadSummary & WithUpdatedAt(const Aws::Utils::DateTime &value)
WorkloadSummary & WithPrioritizedRiskCounts(const Aws::Map< Risk, int > &value)
void SetProfiles(Aws::Vector< WorkloadProfile > &&value)
WorkloadSummary & WithUpdatedAt(Aws::Utils::DateTime &&value)
WorkloadSummary & WithWorkloadArn(const Aws::String &value)
WorkloadSummary & AddRiskCounts(Risk &&key, int value)
WorkloadSummary & WithPrioritizedRiskCounts(Aws::Map< Risk, int > &&value)
const WorkloadImprovementStatus & GetImprovementStatus() const
WorkloadSummary & WithProfiles(Aws::Vector< WorkloadProfile > &&value)
WorkloadSummary & AddProfiles(WorkloadProfile &&value)
void SetPrioritizedRiskCounts(Aws::Map< Risk, int > &&value)
WorkloadSummary & WithWorkloadName(Aws::String &&value)
WorkloadSummary & WithOwner(const char *value)
void SetImprovementStatus(const WorkloadImprovementStatus &value)
WorkloadSummary & AddLenses(const char *value)
WorkloadSummary & WithImprovementStatus(WorkloadImprovementStatus &&value)
AWS_WELLARCHITECTED_API WorkloadSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
WorkloadSummary & WithLenses(Aws::Vector< Aws::String > &&value)
WorkloadSummary & WithWorkloadName(const char *value)
AWS_WELLARCHITECTED_API WorkloadSummary()
WorkloadSummary & AddRiskCounts(const Risk &key, int value)
WorkloadSummary & AddPrioritizedRiskCounts(Risk &&key, int value)
WorkloadSummary & WithProfiles(const Aws::Vector< WorkloadProfile > &value)
const Aws::Utils::DateTime & GetUpdatedAt() const
WorkloadSummary & WithWorkloadArn(Aws::String &&value)
WorkloadSummary & WithWorkloadId(const Aws::String &value)
WorkloadSummary & AddLenses(const Aws::String &value)
void SetOwner(const Aws::String &value)
WorkloadSummary & WithWorkloadArn(const char *value)
AWS_WELLARCHITECTED_API WorkloadSummary(Aws::Utils::Json::JsonView jsonValue)
void SetWorkloadId(const Aws::String &value)
void SetPrioritizedRiskCounts(const Aws::Map< Risk, int > &value)
const Aws::Map< Risk, int > & GetRiskCounts() const
void SetWorkloadName(const Aws::String &value)
void SetRiskCounts(Aws::Map< Risk, int > &&value)
WorkloadSummary & WithRiskCounts(Aws::Map< Risk, int > &&value)
WorkloadSummary & WithWorkloadId(Aws::String &&value)
void SetUpdatedAt(Aws::Utils::DateTime &&value)
void SetLenses(Aws::Vector< Aws::String > &&value)
void SetProfiles(const Aws::Vector< WorkloadProfile > &value)
void SetUpdatedAt(const Aws::Utils::DateTime &value)
WorkloadSummary & AddLenses(Aws::String &&value)
void SetLenses(const Aws::Vector< Aws::String > &value)
WorkloadSummary & WithWorkloadName(const Aws::String &value)
WorkloadSummary & WithRiskCounts(const Aws::Map< Risk, int > &value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue