AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
42
43
45
49 inline const Aws::String& GetPolicyId() const{ return m_policyId; }
50 inline bool PolicyIdHasBeenSet() const { return m_policyIdHasBeenSet; }
51 inline void SetPolicyId(const Aws::String& value) { m_policyIdHasBeenSet = true; m_policyId = value; }
52 inline void SetPolicyId(Aws::String&& value) { m_policyIdHasBeenSet = true; m_policyId = std::move(value); }
53 inline void SetPolicyId(const char* value) { m_policyIdHasBeenSet = true; m_policyId.assign(value); }
54 inline ViolationDetail& WithPolicyId(const Aws::String& value) { SetPolicyId(value); return *this;}
55 inline ViolationDetail& WithPolicyId(Aws::String&& value) { SetPolicyId(std::move(value)); return *this;}
56 inline ViolationDetail& WithPolicyId(const char* value) { SetPolicyId(value); return *this;}
58
60
64 inline const Aws::String& GetMemberAccount() const{ return m_memberAccount; }
65 inline bool MemberAccountHasBeenSet() const { return m_memberAccountHasBeenSet; }
66 inline void SetMemberAccount(const Aws::String& value) { m_memberAccountHasBeenSet = true; m_memberAccount = value; }
67 inline void SetMemberAccount(Aws::String&& value) { m_memberAccountHasBeenSet = true; m_memberAccount = std::move(value); }
68 inline void SetMemberAccount(const char* value) { m_memberAccountHasBeenSet = true; m_memberAccount.assign(value); }
69 inline ViolationDetail& WithMemberAccount(const Aws::String& value) { SetMemberAccount(value); return *this;}
70 inline ViolationDetail& WithMemberAccount(Aws::String&& value) { SetMemberAccount(std::move(value)); return *this;}
71 inline ViolationDetail& WithMemberAccount(const char* value) { SetMemberAccount(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 ViolationDetail& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
84 inline ViolationDetail& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
85 inline ViolationDetail& WithResourceId(const char* value) { SetResourceId(value); return *this;}
87
89
92 inline const Aws::String& GetResourceType() const{ return m_resourceType; }
93 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
94 inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
95 inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
96 inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); }
97 inline ViolationDetail& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;}
98 inline ViolationDetail& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;}
99 inline ViolationDetail& WithResourceType(const char* value) { SetResourceType(value); return *this;}
101
103
106 inline const Aws::Vector<ResourceViolation>& GetResourceViolations() const{ return m_resourceViolations; }
107 inline bool ResourceViolationsHasBeenSet() const { return m_resourceViolationsHasBeenSet; }
108 inline void SetResourceViolations(const Aws::Vector<ResourceViolation>& value) { m_resourceViolationsHasBeenSet = true; m_resourceViolations = value; }
109 inline void SetResourceViolations(Aws::Vector<ResourceViolation>&& value) { m_resourceViolationsHasBeenSet = true; m_resourceViolations = std::move(value); }
112 inline ViolationDetail& AddResourceViolations(const ResourceViolation& value) { m_resourceViolationsHasBeenSet = true; m_resourceViolations.push_back(value); return *this; }
113 inline ViolationDetail& AddResourceViolations(ResourceViolation&& value) { m_resourceViolationsHasBeenSet = true; m_resourceViolations.push_back(std::move(value)); return *this; }
115
117
120 inline const Aws::Vector<Tag>& GetResourceTags() const{ return m_resourceTags; }
121 inline bool ResourceTagsHasBeenSet() const { return m_resourceTagsHasBeenSet; }
122 inline void SetResourceTags(const Aws::Vector<Tag>& value) { m_resourceTagsHasBeenSet = true; m_resourceTags = value; }
123 inline void SetResourceTags(Aws::Vector<Tag>&& value) { m_resourceTagsHasBeenSet = true; m_resourceTags = std::move(value); }
124 inline ViolationDetail& WithResourceTags(const Aws::Vector<Tag>& value) { SetResourceTags(value); return *this;}
125 inline ViolationDetail& WithResourceTags(Aws::Vector<Tag>&& value) { SetResourceTags(std::move(value)); return *this;}
126 inline ViolationDetail& AddResourceTags(const Tag& value) { m_resourceTagsHasBeenSet = true; m_resourceTags.push_back(value); return *this; }
127 inline ViolationDetail& AddResourceTags(Tag&& value) { m_resourceTagsHasBeenSet = true; m_resourceTags.push_back(std::move(value)); return *this; }
129
131
134 inline const Aws::String& GetResourceDescription() const{ return m_resourceDescription; }
135 inline bool ResourceDescriptionHasBeenSet() const { return m_resourceDescriptionHasBeenSet; }
136 inline void SetResourceDescription(const Aws::String& value) { m_resourceDescriptionHasBeenSet = true; m_resourceDescription = value; }
137 inline void SetResourceDescription(Aws::String&& value) { m_resourceDescriptionHasBeenSet = true; m_resourceDescription = std::move(value); }
138 inline void SetResourceDescription(const char* value) { m_resourceDescriptionHasBeenSet = true; m_resourceDescription.assign(value); }
139 inline ViolationDetail& WithResourceDescription(const Aws::String& value) { SetResourceDescription(value); return *this;}
140 inline ViolationDetail& WithResourceDescription(Aws::String&& value) { SetResourceDescription(std::move(value)); return *this;}
141 inline ViolationDetail& WithResourceDescription(const char* value) { SetResourceDescription(value); return *this;}
143 private:
144
145 Aws::String m_policyId;
146 bool m_policyIdHasBeenSet = false;
147
148 Aws::String m_memberAccount;
149 bool m_memberAccountHasBeenSet = false;
150
151 Aws::String m_resourceId;
152 bool m_resourceIdHasBeenSet = false;
153
154 Aws::String m_resourceType;
155 bool m_resourceTypeHasBeenSet = false;
156
157 Aws::Vector<ResourceViolation> m_resourceViolations;
158 bool m_resourceViolationsHasBeenSet = false;
159
160 Aws::Vector<Tag> m_resourceTags;
161 bool m_resourceTagsHasBeenSet = false;
162
163 Aws::String m_resourceDescription;
164 bool m_resourceDescriptionHasBeenSet = false;
165 };
166
167} // namespace Model
168} // namespace FMS
169} // namespace Aws
ViolationDetail & WithResourceType(Aws::String &&value)
ViolationDetail & WithPolicyId(Aws::String &&value)
const Aws::String & GetMemberAccount() const
void SetResourceType(const Aws::String &value)
ViolationDetail & WithMemberAccount(const Aws::String &value)
void SetResourceType(Aws::String &&value)
const Aws::Vector< ResourceViolation > & GetResourceViolations() const
void SetResourceDescription(const Aws::String &value)
ViolationDetail & WithResourceDescription(Aws::String &&value)
void SetResourceId(Aws::String &&value)
void SetPolicyId(const Aws::String &value)
AWS_FMS_API ViolationDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
ViolationDetail & WithResourceTags(Aws::Vector< Tag > &&value)
void SetResourceDescription(const char *value)
void SetResourceDescription(Aws::String &&value)
ViolationDetail & WithResourceType(const Aws::String &value)
void SetMemberAccount(const char *value)
ViolationDetail & WithResourceViolations(Aws::Vector< ResourceViolation > &&value)
ViolationDetail & WithPolicyId(const Aws::String &value)
AWS_FMS_API Aws::Utils::Json::JsonValue Jsonize() const
ViolationDetail & WithResourceDescription(const char *value)
ViolationDetail & WithResourceDescription(const Aws::String &value)
const Aws::String & GetResourceDescription() const
const Aws::String & GetResourceType() const
AWS_FMS_API ViolationDetail(Aws::Utils::Json::JsonView jsonValue)
ViolationDetail & WithResourceId(const char *value)
void SetMemberAccount(const Aws::String &value)
void SetResourceViolations(const Aws::Vector< ResourceViolation > &value)
ViolationDetail & WithResourceType(const char *value)
ViolationDetail & WithResourceTags(const Aws::Vector< Tag > &value)
void SetResourceType(const char *value)
ViolationDetail & WithResourceViolations(const Aws::Vector< ResourceViolation > &value)
ViolationDetail & WithResourceId(const Aws::String &value)
void SetResourceId(const Aws::String &value)
void SetResourceTags(const Aws::Vector< Tag > &value)
void SetMemberAccount(Aws::String &&value)
ViolationDetail & AddResourceViolations(ResourceViolation &&value)
ViolationDetail & AddResourceTags(Tag &&value)
const Aws::Vector< Tag > & GetResourceTags() const
void SetPolicyId(const char *value)
ViolationDetail & AddResourceTags(const Tag &value)
void SetResourceId(const char *value)
ViolationDetail & WithMemberAccount(Aws::String &&value)
ViolationDetail & AddResourceViolations(const ResourceViolation &value)
void SetResourceViolations(Aws::Vector< ResourceViolation > &&value)
const Aws::String & GetPolicyId() const
void SetResourceTags(Aws::Vector< Tag > &&value)
void SetPolicyId(Aws::String &&value)
ViolationDetail & WithResourceId(Aws::String &&value)
ViolationDetail & WithMemberAccount(const char *value)
ViolationDetail & WithPolicyId(const char *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