7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/shield/ShieldRequest.h>
10#include <aws/shield/Shield_EXPORTS.h>
11#include <aws/shield/model/ProtectedResourceType.h>
12#include <aws/shield/model/ProtectionGroupAggregation.h>
13#include <aws/shield/model/ProtectionGroupPattern.h>
14#include <aws/shield/model/Tag.h>
46 template <
typename ProtectionGroupIdT = Aws::String>
48 m_protectionGroupIdHasBeenSet =
true;
49 m_protectionGroupId = std::forward<ProtectionGroupIdT>(value);
51 template <
typename ProtectionGroupIdT = Aws::String>
74 m_aggregationHasBeenSet =
true;
75 m_aggregation = value;
93 m_patternHasBeenSet =
true;
113 m_resourceTypeHasBeenSet =
true;
114 m_resourceType = value;
131 template <
typename MembersT = Aws::Vector<Aws::String>>
133 m_membersHasBeenSet =
true;
134 m_members = std::forward<MembersT>(value);
136 template <
typename MembersT = Aws::Vector<Aws::String>>
141 template <
typename MembersT = Aws::String>
143 m_membersHasBeenSet =
true;
144 m_members.emplace_back(std::forward<MembersT>(value));
155 template <
typename TagsT = Aws::Vector<Tag>>
157 m_tagsHasBeenSet =
true;
158 m_tags = std::forward<TagsT>(value);
160 template <
typename TagsT = Aws::Vector<Tag>>
162 SetTags(std::forward<TagsT>(value));
165 template <
typename TagsT = Tag>
167 m_tagsHasBeenSet =
true;
168 m_tags.emplace_back(std::forward<TagsT>(value));
184 bool m_protectionGroupIdHasBeenSet =
false;
185 bool m_aggregationHasBeenSet =
false;
186 bool m_patternHasBeenSet =
false;
187 bool m_resourceTypeHasBeenSet =
false;
188 bool m_membersHasBeenSet =
false;
189 bool m_tagsHasBeenSet =
false;
ProtectionGroupPattern GetPattern() const
void SetAggregation(ProtectionGroupAggregation value)
void SetResourceType(ProtectedResourceType value)
CreateProtectionGroupRequest & AddTags(TagsT &&value)
void SetPattern(ProtectionGroupPattern value)
CreateProtectionGroupRequest & WithProtectionGroupId(ProtectionGroupIdT &&value)
AWS_SHIELD_API Aws::String SerializePayload() const override
CreateProtectionGroupRequest & AddMembers(MembersT &&value)
bool AggregationHasBeenSet() const
void SetProtectionGroupId(ProtectionGroupIdT &&value)
CreateProtectionGroupRequest & WithAggregation(ProtectionGroupAggregation value)
CreateProtectionGroupRequest & WithPattern(ProtectionGroupPattern value)
CreateProtectionGroupRequest & WithTags(TagsT &&value)
bool ResourceTypeHasBeenSet() const
bool TagsHasBeenSet() const
bool MembersHasBeenSet() const
ProtectedResourceType GetResourceType() const
CreateProtectionGroupRequest & WithMembers(MembersT &&value)
CreateProtectionGroupRequest & WithResourceType(ProtectedResourceType value)
AWS_SHIELD_API CreateProtectionGroupRequest()=default
const Aws::Vector< Aws::String > & GetMembers() const
bool ProtectionGroupIdHasBeenSet() const
const Aws::Vector< Tag > & GetTags() const
const Aws::String & GetProtectionGroupId() const
virtual const char * GetServiceRequestName() const override
void SetMembers(MembersT &&value)
void SetTags(TagsT &&value)
bool PatternHasBeenSet() const
AWS_SHIELD_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ProtectionGroupAggregation GetAggregation() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
ProtectionGroupAggregation
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector