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/Tag.h>
41 template <
typename NameT = Aws::String>
43 m_nameHasBeenSet =
true;
44 m_name = std::forward<NameT>(value);
46 template <
typename NameT = Aws::String>
48 SetName(std::forward<NameT>(value));
73 template <
typename ResourceArnT = Aws::String>
75 m_resourceArnHasBeenSet =
true;
76 m_resourceArn = std::forward<ResourceArnT>(value);
78 template <
typename ResourceArnT = Aws::String>
92 template <
typename TagsT = Aws::Vector<Tag>>
94 m_tagsHasBeenSet =
true;
95 m_tags = std::forward<TagsT>(value);
97 template <
typename TagsT = Aws::Vector<Tag>>
99 SetTags(std::forward<TagsT>(value));
102 template <
typename TagsT = Tag>
104 m_tagsHasBeenSet =
true;
105 m_tags.emplace_back(std::forward<TagsT>(value));
115 bool m_nameHasBeenSet =
false;
116 bool m_resourceArnHasBeenSet =
false;
117 bool m_tagsHasBeenSet =
false;
void SetResourceArn(ResourceArnT &&value)
AWS_SHIELD_API CreateProtectionRequest()=default
CreateProtectionRequest & AddTags(TagsT &&value)
bool TagsHasBeenSet() const
AWS_SHIELD_API Aws::String SerializePayload() const override
bool NameHasBeenSet() const
AWS_SHIELD_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetTags(TagsT &&value)
CreateProtectionRequest & WithTags(TagsT &&value)
const Aws::Vector< Tag > & GetTags() const
CreateProtectionRequest & WithResourceArn(ResourceArnT &&value)
CreateProtectionRequest & WithName(NameT &&value)
bool ResourceArnHasBeenSet() const
void SetName(NameT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::String & GetResourceArn() const
const Aws::String & GetName() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector