AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ViolationDetail.h
1
6#pragma once
7#include <aws/fms/FMS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/fms/model/ResourceViolation.h>
11#include <aws/fms/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace FMS
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_FMS_API ViolationDetail() = default;
42
43
45
49 inline const Aws::String& GetPolicyId() const { return m_policyId; }
50 inline bool PolicyIdHasBeenSet() const { return m_policyIdHasBeenSet; }
51 template<typename PolicyIdT = Aws::String>
52 void SetPolicyId(PolicyIdT&& value) { m_policyIdHasBeenSet = true; m_policyId = std::forward<PolicyIdT>(value); }
53 template<typename PolicyIdT = Aws::String>
54 ViolationDetail& WithPolicyId(PolicyIdT&& value) { SetPolicyId(std::forward<PolicyIdT>(value)); return *this;}
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) { m_memberAccountHasBeenSet = true; m_memberAccount = std::forward<MemberAccountT>(value); }
66 template<typename MemberAccountT = Aws::String>
67 ViolationDetail& WithMemberAccount(MemberAccountT&& value) { SetMemberAccount(std::forward<MemberAccountT>(value)); return *this;}
69
71
74 inline const Aws::String& GetResourceId() const { return m_resourceId; }
75 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
76 template<typename ResourceIdT = Aws::String>
77 void SetResourceId(ResourceIdT&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::forward<ResourceIdT>(value); }
78 template<typename ResourceIdT = Aws::String>
79 ViolationDetail& WithResourceId(ResourceIdT&& value) { SetResourceId(std::forward<ResourceIdT>(value)); return *this;}
81
83
86 inline const Aws::String& GetResourceType() const { return m_resourceType; }
87 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
88 template<typename ResourceTypeT = Aws::String>
89 void SetResourceType(ResourceTypeT&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::forward<ResourceTypeT>(value); }
90 template<typename ResourceTypeT = Aws::String>
91 ViolationDetail& WithResourceType(ResourceTypeT&& value) { SetResourceType(std::forward<ResourceTypeT>(value)); return *this;}
93
95
98 inline const Aws::Vector<ResourceViolation>& GetResourceViolations() const { return m_resourceViolations; }
99 inline bool ResourceViolationsHasBeenSet() const { return m_resourceViolationsHasBeenSet; }
100 template<typename ResourceViolationsT = Aws::Vector<ResourceViolation>>
101 void SetResourceViolations(ResourceViolationsT&& value) { m_resourceViolationsHasBeenSet = true; m_resourceViolations = std::forward<ResourceViolationsT>(value); }
102 template<typename ResourceViolationsT = Aws::Vector<ResourceViolation>>
103 ViolationDetail& WithResourceViolations(ResourceViolationsT&& value) { SetResourceViolations(std::forward<ResourceViolationsT>(value)); return *this;}
104 template<typename ResourceViolationsT = ResourceViolation>
105 ViolationDetail& AddResourceViolations(ResourceViolationsT&& value) { m_resourceViolationsHasBeenSet = true; m_resourceViolations.emplace_back(std::forward<ResourceViolationsT>(value)); return *this; }
107
109
112 inline const Aws::Vector<Tag>& GetResourceTags() const { return m_resourceTags; }
113 inline bool ResourceTagsHasBeenSet() const { return m_resourceTagsHasBeenSet; }
114 template<typename ResourceTagsT = Aws::Vector<Tag>>
115 void SetResourceTags(ResourceTagsT&& value) { m_resourceTagsHasBeenSet = true; m_resourceTags = std::forward<ResourceTagsT>(value); }
116 template<typename ResourceTagsT = Aws::Vector<Tag>>
117 ViolationDetail& WithResourceTags(ResourceTagsT&& value) { SetResourceTags(std::forward<ResourceTagsT>(value)); return *this;}
118 template<typename ResourceTagsT = Tag>
119 ViolationDetail& AddResourceTags(ResourceTagsT&& value) { m_resourceTagsHasBeenSet = true; m_resourceTags.emplace_back(std::forward<ResourceTagsT>(value)); return *this; }
121
123
126 inline const Aws::String& GetResourceDescription() const { return m_resourceDescription; }
127 inline bool ResourceDescriptionHasBeenSet() const { return m_resourceDescriptionHasBeenSet; }
128 template<typename ResourceDescriptionT = Aws::String>
129 void SetResourceDescription(ResourceDescriptionT&& value) { m_resourceDescriptionHasBeenSet = true; m_resourceDescription = std::forward<ResourceDescriptionT>(value); }
130 template<typename ResourceDescriptionT = Aws::String>
131 ViolationDetail& WithResourceDescription(ResourceDescriptionT&& value) { SetResourceDescription(std::forward<ResourceDescriptionT>(value)); return *this;}
133 private:
134
135 Aws::String m_policyId;
136 bool m_policyIdHasBeenSet = false;
137
138 Aws::String m_memberAccount;
139 bool m_memberAccountHasBeenSet = false;
140
141 Aws::String m_resourceId;
142 bool m_resourceIdHasBeenSet = false;
143
144 Aws::String m_resourceType;
145 bool m_resourceTypeHasBeenSet = false;
146
147 Aws::Vector<ResourceViolation> m_resourceViolations;
148 bool m_resourceViolationsHasBeenSet = false;
149
150 Aws::Vector<Tag> m_resourceTags;
151 bool m_resourceTagsHasBeenSet = false;
152
153 Aws::String m_resourceDescription;
154 bool m_resourceDescriptionHasBeenSet = false;
155 };
156
157} // namespace Model
158} // namespace FMS
159} // 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