AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateProtectionGroupRequest.h
1
6#pragma once
7#include <aws/shield/Shield_EXPORTS.h>
8#include <aws/shield/ShieldRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/shield/model/ProtectionGroupAggregation.h>
11#include <aws/shield/model/ProtectionGroupPattern.h>
12#include <aws/shield/model/ProtectedResourceType.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/shield/model/Tag.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Shield
20{
21namespace Model
22{
23
27 {
28 public:
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateProtectionGroup"; }
36
37 AWS_SHIELD_API Aws::String SerializePayload() const override;
38
40
41
43
48 inline const Aws::String& GetProtectionGroupId() const{ return m_protectionGroupId; }
49 inline bool ProtectionGroupIdHasBeenSet() const { return m_protectionGroupIdHasBeenSet; }
50 inline void SetProtectionGroupId(const Aws::String& value) { m_protectionGroupIdHasBeenSet = true; m_protectionGroupId = value; }
51 inline void SetProtectionGroupId(Aws::String&& value) { m_protectionGroupIdHasBeenSet = true; m_protectionGroupId = std::move(value); }
52 inline void SetProtectionGroupId(const char* value) { m_protectionGroupIdHasBeenSet = true; m_protectionGroupId.assign(value); }
54 inline CreateProtectionGroupRequest& WithProtectionGroupId(Aws::String&& value) { SetProtectionGroupId(std::move(value)); return *this;}
55 inline CreateProtectionGroupRequest& WithProtectionGroupId(const char* value) { SetProtectionGroupId(value); return *this;}
57
59
71 inline const ProtectionGroupAggregation& GetAggregation() const{ return m_aggregation; }
72 inline bool AggregationHasBeenSet() const { return m_aggregationHasBeenSet; }
73 inline void SetAggregation(const ProtectionGroupAggregation& value) { m_aggregationHasBeenSet = true; m_aggregation = value; }
74 inline void SetAggregation(ProtectionGroupAggregation&& value) { m_aggregationHasBeenSet = true; m_aggregation = std::move(value); }
78
80
86 inline const ProtectionGroupPattern& GetPattern() const{ return m_pattern; }
87 inline bool PatternHasBeenSet() const { return m_patternHasBeenSet; }
88 inline void SetPattern(const ProtectionGroupPattern& value) { m_patternHasBeenSet = true; m_pattern = value; }
89 inline void SetPattern(ProtectionGroupPattern&& value) { m_patternHasBeenSet = true; m_pattern = std::move(value); }
90 inline CreateProtectionGroupRequest& WithPattern(const ProtectionGroupPattern& value) { SetPattern(value); return *this;}
91 inline CreateProtectionGroupRequest& WithPattern(ProtectionGroupPattern&& value) { SetPattern(std::move(value)); return *this;}
93
95
102 inline const ProtectedResourceType& GetResourceType() const{ return m_resourceType; }
103 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
104 inline void SetResourceType(const ProtectedResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
105 inline void SetResourceType(ProtectedResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
107 inline CreateProtectionGroupRequest& WithResourceType(ProtectedResourceType&& value) { SetResourceType(std::move(value)); return *this;}
109
111
117 inline const Aws::Vector<Aws::String>& GetMembers() const{ return m_members; }
118 inline bool MembersHasBeenSet() const { return m_membersHasBeenSet; }
119 inline void SetMembers(const Aws::Vector<Aws::String>& value) { m_membersHasBeenSet = true; m_members = value; }
120 inline void SetMembers(Aws::Vector<Aws::String>&& value) { m_membersHasBeenSet = true; m_members = std::move(value); }
122 inline CreateProtectionGroupRequest& WithMembers(Aws::Vector<Aws::String>&& value) { SetMembers(std::move(value)); return *this;}
123 inline CreateProtectionGroupRequest& AddMembers(const Aws::String& value) { m_membersHasBeenSet = true; m_members.push_back(value); return *this; }
124 inline CreateProtectionGroupRequest& AddMembers(Aws::String&& value) { m_membersHasBeenSet = true; m_members.push_back(std::move(value)); return *this; }
125 inline CreateProtectionGroupRequest& AddMembers(const char* value) { m_membersHasBeenSet = true; m_members.push_back(value); return *this; }
127
129
132 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
133 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
134 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
135 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
136 inline CreateProtectionGroupRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
137 inline CreateProtectionGroupRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
138 inline CreateProtectionGroupRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
139 inline CreateProtectionGroupRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
141 private:
142
143 Aws::String m_protectionGroupId;
144 bool m_protectionGroupIdHasBeenSet = false;
145
146 ProtectionGroupAggregation m_aggregation;
147 bool m_aggregationHasBeenSet = false;
148
149 ProtectionGroupPattern m_pattern;
150 bool m_patternHasBeenSet = false;
151
152 ProtectedResourceType m_resourceType;
153 bool m_resourceTypeHasBeenSet = false;
154
155 Aws::Vector<Aws::String> m_members;
156 bool m_membersHasBeenSet = false;
157
158 Aws::Vector<Tag> m_tags;
159 bool m_tagsHasBeenSet = false;
160 };
161
162} // namespace Model
163} // namespace Shield
164} // namespace Aws
CreateProtectionGroupRequest & WithProtectionGroupId(const Aws::String &value)
CreateProtectionGroupRequest & AddTags(const Tag &value)
AWS_SHIELD_API Aws::String SerializePayload() const override
const ProtectionGroupAggregation & GetAggregation() const
CreateProtectionGroupRequest & WithProtectionGroupId(const char *value)
CreateProtectionGroupRequest & WithTags(Aws::Vector< Tag > &&value)
void SetPattern(const ProtectionGroupPattern &value)
void SetAggregation(ProtectionGroupAggregation &&value)
CreateProtectionGroupRequest & WithProtectionGroupId(Aws::String &&value)
CreateProtectionGroupRequest & AddTags(Tag &&value)
void SetAggregation(const ProtectionGroupAggregation &value)
CreateProtectionGroupRequest & WithMembers(Aws::Vector< Aws::String > &&value)
void SetMembers(const Aws::Vector< Aws::String > &value)
CreateProtectionGroupRequest & AddMembers(const char *value)
CreateProtectionGroupRequest & WithAggregation(ProtectionGroupAggregation &&value)
CreateProtectionGroupRequest & WithResourceType(ProtectedResourceType &&value)
CreateProtectionGroupRequest & AddMembers(const Aws::String &value)
CreateProtectionGroupRequest & WithPattern(const ProtectionGroupPattern &value)
const Aws::Vector< Aws::String > & GetMembers() const
CreateProtectionGroupRequest & WithPattern(ProtectionGroupPattern &&value)
CreateProtectionGroupRequest & WithMembers(const Aws::Vector< Aws::String > &value)
CreateProtectionGroupRequest & WithAggregation(const ProtectionGroupAggregation &value)
virtual const char * GetServiceRequestName() const override
CreateProtectionGroupRequest & WithTags(const Aws::Vector< Tag > &value)
void SetResourceType(const ProtectedResourceType &value)
AWS_SHIELD_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateProtectionGroupRequest & AddMembers(Aws::String &&value)
CreateProtectionGroupRequest & WithResourceType(const ProtectedResourceType &value)
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