AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ResourceComplianceSummaryItem.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/ssm/model/CompliantSummary.h>
13#include <aws/ssm/model/NonCompliantSummary.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace SSM
27{
28namespace Model
29{
30
38 {
39 public:
44
45
47
50 inline const Aws::String& GetComplianceType() const{ return m_complianceType; }
51 inline bool ComplianceTypeHasBeenSet() const { return m_complianceTypeHasBeenSet; }
52 inline void SetComplianceType(const Aws::String& value) { m_complianceTypeHasBeenSet = true; m_complianceType = value; }
53 inline void SetComplianceType(Aws::String&& value) { m_complianceTypeHasBeenSet = true; m_complianceType = std::move(value); }
54 inline void SetComplianceType(const char* value) { m_complianceTypeHasBeenSet = true; m_complianceType.assign(value); }
56 inline ResourceComplianceSummaryItem& WithComplianceType(Aws::String&& value) { SetComplianceType(std::move(value)); return *this;}
57 inline ResourceComplianceSummaryItem& WithComplianceType(const char* value) { SetComplianceType(value); return *this;}
59
61
64 inline const Aws::String& GetResourceType() const{ return m_resourceType; }
65 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
66 inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
67 inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
68 inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); }
69 inline ResourceComplianceSummaryItem& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;}
70 inline ResourceComplianceSummaryItem& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;}
71 inline ResourceComplianceSummaryItem& WithResourceType(const char* value) { SetResourceType(value); return *this;}
73
75
78 inline const Aws::String& GetResourceId() const{ return m_resourceId; }
79 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
80 inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
81 inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
82 inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
83 inline ResourceComplianceSummaryItem& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
84 inline ResourceComplianceSummaryItem& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
85 inline ResourceComplianceSummaryItem& WithResourceId(const char* value) { SetResourceId(value); return *this;}
87
89
92 inline const ComplianceStatus& GetStatus() const{ return m_status; }
93 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
94 inline void SetStatus(const ComplianceStatus& value) { m_statusHasBeenSet = true; m_status = value; }
95 inline void SetStatus(ComplianceStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
96 inline ResourceComplianceSummaryItem& WithStatus(const ComplianceStatus& value) { SetStatus(value); return *this;}
97 inline ResourceComplianceSummaryItem& WithStatus(ComplianceStatus&& value) { SetStatus(std::move(value)); return *this;}
99
101
105 inline const ComplianceSeverity& GetOverallSeverity() const{ return m_overallSeverity; }
106 inline bool OverallSeverityHasBeenSet() const { return m_overallSeverityHasBeenSet; }
107 inline void SetOverallSeverity(const ComplianceSeverity& value) { m_overallSeverityHasBeenSet = true; m_overallSeverity = value; }
108 inline void SetOverallSeverity(ComplianceSeverity&& value) { m_overallSeverityHasBeenSet = true; m_overallSeverity = std::move(value); }
112
114
117 inline const ComplianceExecutionSummary& GetExecutionSummary() const{ return m_executionSummary; }
118 inline bool ExecutionSummaryHasBeenSet() const { return m_executionSummaryHasBeenSet; }
119 inline void SetExecutionSummary(const ComplianceExecutionSummary& value) { m_executionSummaryHasBeenSet = true; m_executionSummary = value; }
120 inline void SetExecutionSummary(ComplianceExecutionSummary&& value) { m_executionSummaryHasBeenSet = true; m_executionSummary = std::move(value); }
124
126
129 inline const CompliantSummary& GetCompliantSummary() const{ return m_compliantSummary; }
130 inline bool CompliantSummaryHasBeenSet() const { return m_compliantSummaryHasBeenSet; }
131 inline void SetCompliantSummary(const CompliantSummary& value) { m_compliantSummaryHasBeenSet = true; m_compliantSummary = value; }
132 inline void SetCompliantSummary(CompliantSummary&& value) { m_compliantSummaryHasBeenSet = true; m_compliantSummary = std::move(value); }
136
138
141 inline const NonCompliantSummary& GetNonCompliantSummary() const{ return m_nonCompliantSummary; }
142 inline bool NonCompliantSummaryHasBeenSet() const { return m_nonCompliantSummaryHasBeenSet; }
143 inline void SetNonCompliantSummary(const NonCompliantSummary& value) { m_nonCompliantSummaryHasBeenSet = true; m_nonCompliantSummary = value; }
144 inline void SetNonCompliantSummary(NonCompliantSummary&& value) { m_nonCompliantSummaryHasBeenSet = true; m_nonCompliantSummary = std::move(value); }
148 private:
149
150 Aws::String m_complianceType;
151 bool m_complianceTypeHasBeenSet = false;
152
153 Aws::String m_resourceType;
154 bool m_resourceTypeHasBeenSet = false;
155
156 Aws::String m_resourceId;
157 bool m_resourceIdHasBeenSet = false;
158
159 ComplianceStatus m_status;
160 bool m_statusHasBeenSet = false;
161
162 ComplianceSeverity m_overallSeverity;
163 bool m_overallSeverityHasBeenSet = false;
164
165 ComplianceExecutionSummary m_executionSummary;
166 bool m_executionSummaryHasBeenSet = false;
167
168 CompliantSummary m_compliantSummary;
169 bool m_compliantSummaryHasBeenSet = false;
170
171 NonCompliantSummary m_nonCompliantSummary;
172 bool m_nonCompliantSummaryHasBeenSet = false;
173 };
174
175} // namespace Model
176} // namespace SSM
177} // namespace Aws
ResourceComplianceSummaryItem & WithComplianceType(Aws::String &&value)
void SetNonCompliantSummary(const NonCompliantSummary &value)
ResourceComplianceSummaryItem & WithCompliantSummary(CompliantSummary &&value)
ResourceComplianceSummaryItem & WithNonCompliantSummary(NonCompliantSummary &&value)
AWS_SSM_API ResourceComplianceSummaryItem & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetExecutionSummary(const ComplianceExecutionSummary &value)
AWS_SSM_API ResourceComplianceSummaryItem(Aws::Utils::Json::JsonView jsonValue)
ResourceComplianceSummaryItem & WithResourceType(Aws::String &&value)
ResourceComplianceSummaryItem & WithExecutionSummary(ComplianceExecutionSummary &&value)
ResourceComplianceSummaryItem & WithNonCompliantSummary(const NonCompliantSummary &value)
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
ResourceComplianceSummaryItem & WithStatus(ComplianceStatus &&value)
ResourceComplianceSummaryItem & WithResourceId(const char *value)
ResourceComplianceSummaryItem & WithResourceId(Aws::String &&value)
ResourceComplianceSummaryItem & WithComplianceType(const char *value)
ResourceComplianceSummaryItem & WithStatus(const ComplianceStatus &value)
ResourceComplianceSummaryItem & WithResourceType(const char *value)
ResourceComplianceSummaryItem & WithResourceId(const Aws::String &value)
ResourceComplianceSummaryItem & WithOverallSeverity(ComplianceSeverity &&value)
ResourceComplianceSummaryItem & WithResourceType(const Aws::String &value)
const ComplianceExecutionSummary & GetExecutionSummary() const
ResourceComplianceSummaryItem & WithComplianceType(const Aws::String &value)
void SetExecutionSummary(ComplianceExecutionSummary &&value)
ResourceComplianceSummaryItem & WithCompliantSummary(const CompliantSummary &value)
ResourceComplianceSummaryItem & WithExecutionSummary(const ComplianceExecutionSummary &value)
ResourceComplianceSummaryItem & WithOverallSeverity(const ComplianceSeverity &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue