AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ViolationDetail.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/fms/FMS_EXPORTS.h>
10#include <aws/fms/model/ResourceViolation.h>
11#include <aws/fms/model/Tag.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace FMS {
23namespace Model {
24
32 public:
33 AWS_FMS_API ViolationDetail() = default;
37
39
43 inline const Aws::String& GetPolicyId() const { return m_policyId; }
44 inline bool PolicyIdHasBeenSet() const { return m_policyIdHasBeenSet; }
45 template <typename PolicyIdT = Aws::String>
46 void SetPolicyId(PolicyIdT&& value) {
47 m_policyIdHasBeenSet = true;
48 m_policyId = std::forward<PolicyIdT>(value);
49 }
50 template <typename PolicyIdT = Aws::String>
51 ViolationDetail& WithPolicyId(PolicyIdT&& value) {
52 SetPolicyId(std::forward<PolicyIdT>(value));
53 return *this;
54 }
56
58
62 inline const Aws::String& GetMemberAccount() const { return m_memberAccount; }
63 inline bool MemberAccountHasBeenSet() const { return m_memberAccountHasBeenSet; }
64 template <typename MemberAccountT = Aws::String>
65 void SetMemberAccount(MemberAccountT&& value) {
66 m_memberAccountHasBeenSet = true;
67 m_memberAccount = std::forward<MemberAccountT>(value);
68 }
69 template <typename MemberAccountT = Aws::String>
70 ViolationDetail& WithMemberAccount(MemberAccountT&& value) {
71 SetMemberAccount(std::forward<MemberAccountT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetResourceId() const { return m_resourceId; }
81 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
82 template <typename ResourceIdT = Aws::String>
83 void SetResourceId(ResourceIdT&& value) {
84 m_resourceIdHasBeenSet = true;
85 m_resourceId = std::forward<ResourceIdT>(value);
86 }
87 template <typename ResourceIdT = Aws::String>
88 ViolationDetail& WithResourceId(ResourceIdT&& value) {
89 SetResourceId(std::forward<ResourceIdT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::String& GetResourceType() const { return m_resourceType; }
99 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
100 template <typename ResourceTypeT = Aws::String>
101 void SetResourceType(ResourceTypeT&& value) {
102 m_resourceTypeHasBeenSet = true;
103 m_resourceType = std::forward<ResourceTypeT>(value);
104 }
105 template <typename ResourceTypeT = Aws::String>
106 ViolationDetail& WithResourceType(ResourceTypeT&& value) {
107 SetResourceType(std::forward<ResourceTypeT>(value));
108 return *this;
109 }
111
113
116 inline const Aws::Vector<ResourceViolation>& GetResourceViolations() const { return m_resourceViolations; }
117 inline bool ResourceViolationsHasBeenSet() const { return m_resourceViolationsHasBeenSet; }
118 template <typename ResourceViolationsT = Aws::Vector<ResourceViolation>>
119 void SetResourceViolations(ResourceViolationsT&& value) {
120 m_resourceViolationsHasBeenSet = true;
121 m_resourceViolations = std::forward<ResourceViolationsT>(value);
122 }
123 template <typename ResourceViolationsT = Aws::Vector<ResourceViolation>>
124 ViolationDetail& WithResourceViolations(ResourceViolationsT&& value) {
125 SetResourceViolations(std::forward<ResourceViolationsT>(value));
126 return *this;
127 }
128 template <typename ResourceViolationsT = ResourceViolation>
129 ViolationDetail& AddResourceViolations(ResourceViolationsT&& value) {
130 m_resourceViolationsHasBeenSet = true;
131 m_resourceViolations.emplace_back(std::forward<ResourceViolationsT>(value));
132 return *this;
133 }
135
137
140 inline const Aws::Vector<Tag>& GetResourceTags() const { return m_resourceTags; }
141 inline bool ResourceTagsHasBeenSet() const { return m_resourceTagsHasBeenSet; }
142 template <typename ResourceTagsT = Aws::Vector<Tag>>
143 void SetResourceTags(ResourceTagsT&& value) {
144 m_resourceTagsHasBeenSet = true;
145 m_resourceTags = std::forward<ResourceTagsT>(value);
146 }
147 template <typename ResourceTagsT = Aws::Vector<Tag>>
148 ViolationDetail& WithResourceTags(ResourceTagsT&& value) {
149 SetResourceTags(std::forward<ResourceTagsT>(value));
150 return *this;
151 }
152 template <typename ResourceTagsT = Tag>
153 ViolationDetail& AddResourceTags(ResourceTagsT&& value) {
154 m_resourceTagsHasBeenSet = true;
155 m_resourceTags.emplace_back(std::forward<ResourceTagsT>(value));
156 return *this;
157 }
159
161
164 inline const Aws::String& GetResourceDescription() const { return m_resourceDescription; }
165 inline bool ResourceDescriptionHasBeenSet() const { return m_resourceDescriptionHasBeenSet; }
166 template <typename ResourceDescriptionT = Aws::String>
167 void SetResourceDescription(ResourceDescriptionT&& value) {
168 m_resourceDescriptionHasBeenSet = true;
169 m_resourceDescription = std::forward<ResourceDescriptionT>(value);
170 }
171 template <typename ResourceDescriptionT = Aws::String>
172 ViolationDetail& WithResourceDescription(ResourceDescriptionT&& value) {
173 SetResourceDescription(std::forward<ResourceDescriptionT>(value));
174 return *this;
175 }
177 private:
178 Aws::String m_policyId;
179
180 Aws::String m_memberAccount;
181
182 Aws::String m_resourceId;
183
184 Aws::String m_resourceType;
185
186 Aws::Vector<ResourceViolation> m_resourceViolations;
187
188 Aws::Vector<Tag> m_resourceTags;
189
190 Aws::String m_resourceDescription;
191 bool m_policyIdHasBeenSet = false;
192 bool m_memberAccountHasBeenSet = false;
193 bool m_resourceIdHasBeenSet = false;
194 bool m_resourceTypeHasBeenSet = false;
195 bool m_resourceViolationsHasBeenSet = false;
196 bool m_resourceTagsHasBeenSet = false;
197 bool m_resourceDescriptionHasBeenSet = false;
198};
199
200} // namespace Model
201} // namespace FMS
202} // namespace Aws
const Aws::String & GetMemberAccount() const
ViolationDetail & WithResourceId(ResourceIdT &&value)
ViolationDetail & WithResourceType(ResourceTypeT &&value)
const Aws::Vector< ResourceViolation > & GetResourceViolations() const
void SetResourceDescription(ResourceDescriptionT &&value)
void SetResourceType(ResourceTypeT &&value)
AWS_FMS_API ViolationDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetPolicyId(PolicyIdT &&value)
AWS_FMS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetResourceTags(ResourceTagsT &&value)
void SetResourceId(ResourceIdT &&value)
const Aws::String & GetResourceDescription() const
ViolationDetail & WithResourceDescription(ResourceDescriptionT &&value)
ViolationDetail & WithResourceTags(ResourceTagsT &&value)
const Aws::String & GetResourceType() const
AWS_FMS_API ViolationDetail(Aws::Utils::Json::JsonView jsonValue)
ViolationDetail & WithPolicyId(PolicyIdT &&value)
AWS_FMS_API ViolationDetail()=default
void SetMemberAccount(MemberAccountT &&value)
ViolationDetail & WithMemberAccount(MemberAccountT &&value)
const Aws::Vector< Tag > & GetResourceTags() const
void SetResourceViolations(ResourceViolationsT &&value)
const Aws::String & GetPolicyId() const
ViolationDetail & WithResourceViolations(ResourceViolationsT &&value)
ViolationDetail & AddResourceTags(ResourceTagsT &&value)
ViolationDetail & AddResourceViolations(ResourceViolationsT &&value)
const Aws::String & GetResourceId() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue