7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/crt/cbor/Cbor.h>
10#include <aws/fms/FMS_EXPORTS.h>
11#include <aws/fms/model/ResourceViolation.h>
12#include <aws/fms/model/Tag.h>
34 AWS_FMS_API
ViolationDetail(
const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
36 AWS_FMS_API
void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder)
const;
45 template <
typename PolicyIdT = Aws::String>
47 m_policyIdHasBeenSet =
true;
48 m_policyId = std::forward<PolicyIdT>(value);
50 template <
typename PolicyIdT = Aws::String>
64 template <
typename MemberAccountT = Aws::String>
66 m_memberAccountHasBeenSet =
true;
67 m_memberAccount = std::forward<MemberAccountT>(value);
69 template <
typename MemberAccountT = Aws::String>
82 template <
typename ResourceIdT = Aws::String>
84 m_resourceIdHasBeenSet =
true;
85 m_resourceId = std::forward<ResourceIdT>(value);
87 template <
typename ResourceIdT = Aws::String>
100 template <
typename ResourceTypeT = Aws::String>
102 m_resourceTypeHasBeenSet =
true;
103 m_resourceType = std::forward<ResourceTypeT>(value);
105 template <
typename ResourceTypeT = Aws::String>
118 template <
typename ResourceViolationsT = Aws::Vector<ResourceViolation>>
120 m_resourceViolationsHasBeenSet =
true;
121 m_resourceViolations = std::forward<ResourceViolationsT>(value);
123 template <
typename ResourceViolationsT = Aws::Vector<ResourceViolation>>
128 template <
typename ResourceViolationsT = ResourceViolation>
130 m_resourceViolationsHasBeenSet =
true;
131 m_resourceViolations.emplace_back(std::forward<ResourceViolationsT>(value));
142 template <
typename ResourceTagsT = Aws::Vector<Tag>>
144 m_resourceTagsHasBeenSet =
true;
145 m_resourceTags = std::forward<ResourceTagsT>(value);
147 template <
typename ResourceTagsT = Aws::Vector<Tag>>
152 template <
typename ResourceTagsT = Tag>
154 m_resourceTagsHasBeenSet =
true;
155 m_resourceTags.emplace_back(std::forward<ResourceTagsT>(value));
166 template <
typename ResourceDescriptionT = Aws::String>
168 m_resourceDescriptionHasBeenSet =
true;
169 m_resourceDescription = std::forward<ResourceDescriptionT>(value);
171 template <
typename ResourceDescriptionT = Aws::String>
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;
const Aws::String & GetMemberAccount() const
AWS_FMS_API ViolationDetail(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
ViolationDetail & WithResourceId(ResourceIdT &&value)
ViolationDetail & WithResourceType(ResourceTypeT &&value)
const Aws::Vector< ResourceViolation > & GetResourceViolations() const
void SetResourceDescription(ResourceDescriptionT &&value)
bool ResourceIdHasBeenSet() const
void SetResourceType(ResourceTypeT &&value)
void SetPolicyId(PolicyIdT &&value)
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
bool ResourceTagsHasBeenSet() const
ViolationDetail & WithPolicyId(PolicyIdT &&value)
bool ResourceViolationsHasBeenSet() const
AWS_FMS_API ViolationDetail()=default
void SetMemberAccount(MemberAccountT &&value)
bool MemberAccountHasBeenSet() const
ViolationDetail & WithMemberAccount(MemberAccountT &&value)
const Aws::Vector< Tag > & GetResourceTags() const
AWS_FMS_API ViolationDetail & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
bool ResourceDescriptionHasBeenSet() const
void SetResourceViolations(ResourceViolationsT &&value)
bool ResourceTypeHasBeenSet() const
AWS_FMS_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
const Aws::String & GetPolicyId() const
ViolationDetail & WithResourceViolations(ResourceViolationsT &&value)
ViolationDetail & AddResourceTags(ResourceTagsT &&value)
bool PolicyIdHasBeenSet() const
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