AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
UpdateProtectionGroupRequest.h
1
6#pragma once
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
15#include <utility>
16
17namespace Aws {
18namespace Shield {
19namespace Model {
20
24 public:
25 AWS_SHIELD_API UpdateProtectionGroupRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "UpdateProtectionGroup"; }
32
33 AWS_SHIELD_API Aws::String SerializePayload() const override;
34
36
38
43 inline const Aws::String& GetProtectionGroupId() const { return m_protectionGroupId; }
44 inline bool ProtectionGroupIdHasBeenSet() const { return m_protectionGroupIdHasBeenSet; }
45 template <typename ProtectionGroupIdT = Aws::String>
46 void SetProtectionGroupId(ProtectionGroupIdT&& value) {
47 m_protectionGroupIdHasBeenSet = true;
48 m_protectionGroupId = std::forward<ProtectionGroupIdT>(value);
49 }
50 template <typename ProtectionGroupIdT = Aws::String>
52 SetProtectionGroupId(std::forward<ProtectionGroupIdT>(value));
53 return *this;
54 }
56
58
71 inline ProtectionGroupAggregation GetAggregation() const { return m_aggregation; }
72 inline bool AggregationHasBeenSet() const { return m_aggregationHasBeenSet; }
74 m_aggregationHasBeenSet = true;
75 m_aggregation = value;
76 }
78 SetAggregation(value);
79 return *this;
80 }
82
84
90 inline ProtectionGroupPattern GetPattern() const { return m_pattern; }
91 inline bool PatternHasBeenSet() const { return m_patternHasBeenSet; }
93 m_patternHasBeenSet = true;
94 m_pattern = value;
95 }
97 SetPattern(value);
98 return *this;
99 }
101
103
109 inline ProtectedResourceType GetResourceType() const { return m_resourceType; }
110 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
112 m_resourceTypeHasBeenSet = true;
113 m_resourceType = value;
114 }
116 SetResourceType(value);
117 return *this;
118 }
120
122
128 inline const Aws::Vector<Aws::String>& GetMembers() const { return m_members; }
129 inline bool MembersHasBeenSet() const { return m_membersHasBeenSet; }
130 template <typename MembersT = Aws::Vector<Aws::String>>
131 void SetMembers(MembersT&& value) {
132 m_membersHasBeenSet = true;
133 m_members = std::forward<MembersT>(value);
134 }
135 template <typename MembersT = Aws::Vector<Aws::String>>
137 SetMembers(std::forward<MembersT>(value));
138 return *this;
139 }
140 template <typename MembersT = Aws::String>
142 m_membersHasBeenSet = true;
143 m_members.emplace_back(std::forward<MembersT>(value));
144 return *this;
145 }
147 private:
148 Aws::String m_protectionGroupId;
149
151
153
155
156 Aws::Vector<Aws::String> m_members;
157 bool m_protectionGroupIdHasBeenSet = false;
158 bool m_aggregationHasBeenSet = false;
159 bool m_patternHasBeenSet = false;
160 bool m_resourceTypeHasBeenSet = false;
161 bool m_membersHasBeenSet = false;
162};
163
164} // namespace Model
165} // namespace Shield
166} // namespace Aws
UpdateProtectionGroupRequest & WithResourceType(ProtectedResourceType value)
UpdateProtectionGroupRequest & WithPattern(ProtectionGroupPattern value)
AWS_SHIELD_API UpdateProtectionGroupRequest()=default
AWS_SHIELD_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
UpdateProtectionGroupRequest & WithMembers(MembersT &&value)
UpdateProtectionGroupRequest & AddMembers(MembersT &&value)
AWS_SHIELD_API Aws::String SerializePayload() const override
const Aws::Vector< Aws::String > & GetMembers() const
UpdateProtectionGroupRequest & WithProtectionGroupId(ProtectionGroupIdT &&value)
UpdateProtectionGroupRequest & WithAggregation(ProtectionGroupAggregation 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