7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/shield/Shield_EXPORTS.h>
10#include <aws/shield/model/ProtectedResourceType.h>
11#include <aws/shield/model/ProtectionGroupAggregation.h>
12#include <aws/shield/model/ProtectionGroupPattern.h>
48 template <
typename ProtectionGroupIdT = Aws::String>
50 m_protectionGroupIdHasBeenSet =
true;
51 m_protectionGroupId = std::forward<ProtectionGroupIdT>(value);
53 template <
typename ProtectionGroupIdT = Aws::String>
77 m_aggregationHasBeenSet =
true;
78 m_aggregation = value;
96 m_patternHasBeenSet =
true;
115 m_resourceTypeHasBeenSet =
true;
116 m_resourceType = value;
133 template <
typename MembersT = Aws::Vector<Aws::String>>
135 m_membersHasBeenSet =
true;
136 m_members = std::forward<MembersT>(value);
138 template <
typename MembersT = Aws::Vector<Aws::String>>
143 template <
typename MembersT = Aws::String>
145 m_membersHasBeenSet =
true;
146 m_members.emplace_back(std::forward<MembersT>(value));
157 template <
typename ProtectionGroupArnT = Aws::String>
159 m_protectionGroupArnHasBeenSet =
true;
160 m_protectionGroupArn = std::forward<ProtectionGroupArnT>(value);
162 template <
typename ProtectionGroupArnT = Aws::String>
180 bool m_protectionGroupIdHasBeenSet =
false;
181 bool m_aggregationHasBeenSet =
false;
182 bool m_patternHasBeenSet =
false;
183 bool m_resourceTypeHasBeenSet =
false;
184 bool m_membersHasBeenSet =
false;
185 bool m_protectionGroupArnHasBeenSet =
false;
AWS_SHIELD_API ProtectionGroup()=default
ProtectionGroup & WithPattern(ProtectionGroupPattern value)
bool ResourceTypeHasBeenSet() const
bool ProtectionGroupIdHasBeenSet() const
ProtectedResourceType GetResourceType() const
void SetProtectionGroupArn(ProtectionGroupArnT &&value)
void SetResourceType(ProtectedResourceType value)
const Aws::String & GetProtectionGroupArn() const
ProtectionGroupAggregation GetAggregation() const
AWS_SHIELD_API ProtectionGroup(Aws::Utils::Json::JsonView jsonValue)
ProtectionGroup & WithProtectionGroupArn(ProtectionGroupArnT &&value)
const Aws::Vector< Aws::String > & GetMembers() const
void SetAggregation(ProtectionGroupAggregation value)
ProtectionGroup & WithAggregation(ProtectionGroupAggregation value)
bool AggregationHasBeenSet() const
void SetMembers(MembersT &&value)
ProtectionGroup & WithResourceType(ProtectedResourceType value)
const Aws::String & GetProtectionGroupId() const
void SetProtectionGroupId(ProtectionGroupIdT &&value)
ProtectionGroup & WithProtectionGroupId(ProtectionGroupIdT &&value)
bool PatternHasBeenSet() const
AWS_SHIELD_API ProtectionGroup & operator=(Aws::Utils::Json::JsonView jsonValue)
bool ProtectionGroupArnHasBeenSet() const
AWS_SHIELD_API Aws::Utils::Json::JsonValue Jsonize() const
ProtectionGroupPattern GetPattern() const
ProtectionGroup & AddMembers(MembersT &&value)
ProtectionGroup & WithMembers(MembersT &&value)
void SetPattern(ProtectionGroupPattern value)
bool MembersHasBeenSet() const
ProtectionGroupAggregation
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue