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>
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>
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>
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>
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>
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>>
104 template<
typename ResourceViolationsT = ResourceViolation>
105 ViolationDetail&
AddResourceViolations(ResourceViolationsT&& value) { m_resourceViolationsHasBeenSet =
true; m_resourceViolations.emplace_back(std::forward<ResourceViolationsT>(value));
return *
this; }
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>>
118 template<
typename ResourceTagsT = Tag>
119 ViolationDetail&
AddResourceTags(ResourceTagsT&& value) { m_resourceTagsHasBeenSet =
true; m_resourceTags.emplace_back(std::forward<ResourceTagsT>(value));
return *
this; }
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>
136 bool m_policyIdHasBeenSet =
false;
139 bool m_memberAccountHasBeenSet =
false;
142 bool m_resourceIdHasBeenSet =
false;
145 bool m_resourceTypeHasBeenSet =
false;
148 bool m_resourceViolationsHasBeenSet =
false;
151 bool m_resourceTagsHasBeenSet =
false;
154 bool m_resourceDescriptionHasBeenSet =
false;
const Aws::String & GetMemberAccount() const
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)
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)
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
bool ResourceDescriptionHasBeenSet() const
void SetResourceViolations(ResourceViolationsT &&value)
bool ResourceTypeHasBeenSet() 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
Aws::Utils::Json::JsonValue JsonValue