7#include <aws/shield/Shield_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/shield/model/ProtectionGroupAggregation.h>
10#include <aws/shield/model/ProtectionGroupPattern.h>
11#include <aws/shield/model/ProtectedResourceType.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
54 template<
typename ProtectionGroupIdT = Aws::String>
55 void SetProtectionGroupId(ProtectionGroupIdT&& value) { m_protectionGroupIdHasBeenSet =
true; m_protectionGroupId = std::forward<ProtectionGroupIdT>(value); }
56 template<
typename ProtectionGroupIdT = Aws::String>
115 template<
typename MembersT = Aws::Vector<Aws::String>>
116 void SetMembers(MembersT&& value) { m_membersHasBeenSet =
true; m_members = std::forward<MembersT>(value); }
117 template<
typename MembersT = Aws::Vector<Aws::String>>
119 template<
typename MembersT = Aws::String>
120 ProtectionGroup&
AddMembers(MembersT&& value) { m_membersHasBeenSet =
true; m_members.emplace_back(std::forward<MembersT>(value));
return *
this; }
129 template<
typename ProtectionGroupArnT = Aws::String>
130 void SetProtectionGroupArn(ProtectionGroupArnT&& value) { m_protectionGroupArnHasBeenSet =
true; m_protectionGroupArn = std::forward<ProtectionGroupArnT>(value); }
131 template<
typename ProtectionGroupArnT = Aws::String>
137 bool m_protectionGroupIdHasBeenSet =
false;
140 bool m_aggregationHasBeenSet =
false;
143 bool m_patternHasBeenSet =
false;
146 bool m_resourceTypeHasBeenSet =
false;
149 bool m_membersHasBeenSet =
false;
152 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