AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ComplianceItem.h
1
6#pragma once
7#include <aws/ssm/SSM_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ssm/model/ComplianceStatus.h>
10#include <aws/ssm/model/ComplianceSeverity.h>
11#include <aws/ssm/model/ComplianceExecutionSummary.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace SSM
26{
27namespace Model
28{
29
39 {
40 public:
41 AWS_SSM_API ComplianceItem();
45
46
48
53 inline const Aws::String& GetComplianceType() const{ return m_complianceType; }
54 inline bool ComplianceTypeHasBeenSet() const { return m_complianceTypeHasBeenSet; }
55 inline void SetComplianceType(const Aws::String& value) { m_complianceTypeHasBeenSet = true; m_complianceType = value; }
56 inline void SetComplianceType(Aws::String&& value) { m_complianceTypeHasBeenSet = true; m_complianceType = std::move(value); }
57 inline void SetComplianceType(const char* value) { m_complianceTypeHasBeenSet = true; m_complianceType.assign(value); }
58 inline ComplianceItem& WithComplianceType(const Aws::String& value) { SetComplianceType(value); return *this;}
59 inline ComplianceItem& WithComplianceType(Aws::String&& value) { SetComplianceType(std::move(value)); return *this;}
60 inline ComplianceItem& WithComplianceType(const char* value) { SetComplianceType(value); return *this;}
62
64
68 inline const Aws::String& GetResourceType() const{ return m_resourceType; }
69 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
70 inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
71 inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
72 inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); }
73 inline ComplianceItem& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;}
74 inline ComplianceItem& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;}
75 inline ComplianceItem& WithResourceType(const char* value) { SetResourceType(value); return *this;}
77
79
82 inline const Aws::String& GetResourceId() const{ return m_resourceId; }
83 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
84 inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
85 inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
86 inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
87 inline ComplianceItem& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
88 inline ComplianceItem& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
89 inline ComplianceItem& WithResourceId(const char* value) { SetResourceId(value); return *this;}
91
93
98 inline const Aws::String& GetId() const{ return m_id; }
99 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
100 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
101 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
102 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
103 inline ComplianceItem& WithId(const Aws::String& value) { SetId(value); return *this;}
104 inline ComplianceItem& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
105 inline ComplianceItem& WithId(const char* value) { SetId(value); return *this;}
107
109
114 inline const Aws::String& GetTitle() const{ return m_title; }
115 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
116 inline void SetTitle(const Aws::String& value) { m_titleHasBeenSet = true; m_title = value; }
117 inline void SetTitle(Aws::String&& value) { m_titleHasBeenSet = true; m_title = std::move(value); }
118 inline void SetTitle(const char* value) { m_titleHasBeenSet = true; m_title.assign(value); }
119 inline ComplianceItem& WithTitle(const Aws::String& value) { SetTitle(value); return *this;}
120 inline ComplianceItem& WithTitle(Aws::String&& value) { SetTitle(std::move(value)); return *this;}
121 inline ComplianceItem& WithTitle(const char* value) { SetTitle(value); return *this;}
123
125
130 inline const ComplianceStatus& GetStatus() const{ return m_status; }
131 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
132 inline void SetStatus(const ComplianceStatus& value) { m_statusHasBeenSet = true; m_status = value; }
133 inline void SetStatus(ComplianceStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
134 inline ComplianceItem& WithStatus(const ComplianceStatus& value) { SetStatus(value); return *this;}
135 inline ComplianceItem& WithStatus(ComplianceStatus&& value) { SetStatus(std::move(value)); return *this;}
137
139
143 inline const ComplianceSeverity& GetSeverity() const{ return m_severity; }
144 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
145 inline void SetSeverity(const ComplianceSeverity& value) { m_severityHasBeenSet = true; m_severity = value; }
146 inline void SetSeverity(ComplianceSeverity&& value) { m_severityHasBeenSet = true; m_severity = std::move(value); }
147 inline ComplianceItem& WithSeverity(const ComplianceSeverity& value) { SetSeverity(value); return *this;}
148 inline ComplianceItem& WithSeverity(ComplianceSeverity&& value) { SetSeverity(std::move(value)); return *this;}
150
152
156 inline const ComplianceExecutionSummary& GetExecutionSummary() const{ return m_executionSummary; }
157 inline bool ExecutionSummaryHasBeenSet() const { return m_executionSummaryHasBeenSet; }
158 inline void SetExecutionSummary(const ComplianceExecutionSummary& value) { m_executionSummaryHasBeenSet = true; m_executionSummary = value; }
159 inline void SetExecutionSummary(ComplianceExecutionSummary&& value) { m_executionSummaryHasBeenSet = true; m_executionSummary = std::move(value); }
161 inline ComplianceItem& WithExecutionSummary(ComplianceExecutionSummary&& value) { SetExecutionSummary(std::move(value)); return *this;}
163
165
168 inline const Aws::Map<Aws::String, Aws::String>& GetDetails() const{ return m_details; }
169 inline bool DetailsHasBeenSet() const { return m_detailsHasBeenSet; }
170 inline void SetDetails(const Aws::Map<Aws::String, Aws::String>& value) { m_detailsHasBeenSet = true; m_details = value; }
171 inline void SetDetails(Aws::Map<Aws::String, Aws::String>&& value) { m_detailsHasBeenSet = true; m_details = std::move(value); }
172 inline ComplianceItem& WithDetails(const Aws::Map<Aws::String, Aws::String>& value) { SetDetails(value); return *this;}
173 inline ComplianceItem& WithDetails(Aws::Map<Aws::String, Aws::String>&& value) { SetDetails(std::move(value)); return *this;}
174 inline ComplianceItem& AddDetails(const Aws::String& key, const Aws::String& value) { m_detailsHasBeenSet = true; m_details.emplace(key, value); return *this; }
175 inline ComplianceItem& AddDetails(Aws::String&& key, const Aws::String& value) { m_detailsHasBeenSet = true; m_details.emplace(std::move(key), value); return *this; }
176 inline ComplianceItem& AddDetails(const Aws::String& key, Aws::String&& value) { m_detailsHasBeenSet = true; m_details.emplace(key, std::move(value)); return *this; }
177 inline ComplianceItem& AddDetails(Aws::String&& key, Aws::String&& value) { m_detailsHasBeenSet = true; m_details.emplace(std::move(key), std::move(value)); return *this; }
178 inline ComplianceItem& AddDetails(const char* key, Aws::String&& value) { m_detailsHasBeenSet = true; m_details.emplace(key, std::move(value)); return *this; }
179 inline ComplianceItem& AddDetails(Aws::String&& key, const char* value) { m_detailsHasBeenSet = true; m_details.emplace(std::move(key), value); return *this; }
180 inline ComplianceItem& AddDetails(const char* key, const char* value) { m_detailsHasBeenSet = true; m_details.emplace(key, value); return *this; }
182 private:
183
184 Aws::String m_complianceType;
185 bool m_complianceTypeHasBeenSet = false;
186
187 Aws::String m_resourceType;
188 bool m_resourceTypeHasBeenSet = false;
189
190 Aws::String m_resourceId;
191 bool m_resourceIdHasBeenSet = false;
192
193 Aws::String m_id;
194 bool m_idHasBeenSet = false;
195
196 Aws::String m_title;
197 bool m_titleHasBeenSet = false;
198
199 ComplianceStatus m_status;
200 bool m_statusHasBeenSet = false;
201
202 ComplianceSeverity m_severity;
203 bool m_severityHasBeenSet = false;
204
205 ComplianceExecutionSummary m_executionSummary;
206 bool m_executionSummaryHasBeenSet = false;
207
209 bool m_detailsHasBeenSet = false;
210 };
211
212} // namespace Model
213} // namespace SSM
214} // namespace Aws
ComplianceItem & WithTitle(const Aws::String &value)
ComplianceItem & AddDetails(Aws::String &&key, const Aws::String &value)
ComplianceItem & WithComplianceType(const char *value)
const Aws::String & GetId() const
void SetResourceId(const char *value)
AWS_SSM_API ComplianceItem & operator=(Aws::Utils::Json::JsonView jsonValue)
ComplianceItem & WithExecutionSummary(const ComplianceExecutionSummary &value)
ComplianceItem & WithResourceId(const Aws::String &value)
void SetComplianceType(const Aws::String &value)
const Aws::String & GetTitle() const
void SetTitle(const Aws::String &value)
ComplianceItem & WithResourceType(const char *value)
ComplianceItem & WithTitle(const char *value)
void SetId(const Aws::String &value)
ComplianceItem & WithResourceType(Aws::String &&value)
ComplianceItem & AddDetails(Aws::String &&key, Aws::String &&value)
ComplianceItem & WithDetails(Aws::Map< Aws::String, Aws::String > &&value)
void SetSeverity(const ComplianceSeverity &value)
void SetTitle(Aws::String &&value)
ComplianceItem & WithTitle(Aws::String &&value)
void SetExecutionSummary(const ComplianceExecutionSummary &value)
ComplianceItem & AddDetails(const char *key, const char *value)
void SetResourceId(const Aws::String &value)
ComplianceItem & WithResourceId(const char *value)
const Aws::Map< Aws::String, Aws::String > & GetDetails() const
void SetDetails(const Aws::Map< Aws::String, Aws::String > &value)
ComplianceItem & WithDetails(const Aws::Map< Aws::String, Aws::String > &value)
ComplianceItem & AddDetails(const Aws::String &key, Aws::String &&value)
void SetResourceType(const char *value)
void SetResourceType(Aws::String &&value)
ComplianceItem & WithStatus(ComplianceStatus &&value)
ComplianceItem & WithComplianceType(const Aws::String &value)
void SetResourceType(const Aws::String &value)
ComplianceItem & WithStatus(const ComplianceStatus &value)
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
void SetStatus(const ComplianceStatus &value)
const Aws::String & GetResourceType() const
void SetDetails(Aws::Map< Aws::String, Aws::String > &&value)
const ComplianceExecutionSummary & GetExecutionSummary() const
ComplianceItem & AddDetails(Aws::String &&key, const char *value)
void SetExecutionSummary(ComplianceExecutionSummary &&value)
const Aws::String & GetResourceId() const
void SetTitle(const char *value)
ComplianceItem & WithResourceId(Aws::String &&value)
const Aws::String & GetComplianceType() const
const ComplianceSeverity & GetSeverity() const
ComplianceItem & WithId(const Aws::String &value)
ComplianceItem & WithId(Aws::String &&value)
void SetStatus(ComplianceStatus &&value)
AWS_SSM_API ComplianceItem(Aws::Utils::Json::JsonView jsonValue)
void SetResourceId(Aws::String &&value)
const ComplianceStatus & GetStatus() const
void SetComplianceType(const char *value)
ComplianceItem & WithComplianceType(Aws::String &&value)
ComplianceItem & AddDetails(const char *key, Aws::String &&value)
void SetId(Aws::String &&value)
ComplianceItem & WithExecutionSummary(ComplianceExecutionSummary &&value)
void SetComplianceType(Aws::String &&value)
ComplianceItem & AddDetails(const Aws::String &key, const Aws::String &value)
ComplianceItem & WithId(const char *value)
void SetId(const char *value)
ComplianceItem & WithSeverity(const ComplianceSeverity &value)
void SetSeverity(ComplianceSeverity &&value)
ComplianceItem & WithSeverity(ComplianceSeverity &&value)
ComplianceItem & WithResourceType(const Aws::String &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
Aws::Utils::Json::JsonValue JsonValue