AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateProtectionGroupRequest.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 <utility>
15
16namespace Aws
17{
18namespace Shield
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_SHIELD_API UpdateProtectionGroupRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "UpdateProtectionGroup"; }
35
36 AWS_SHIELD_API Aws::String SerializePayload() const override;
37
39
40
42
47 inline const Aws::String& GetProtectionGroupId() const { return m_protectionGroupId; }
48 inline bool ProtectionGroupIdHasBeenSet() const { return m_protectionGroupIdHasBeenSet; }
49 template<typename ProtectionGroupIdT = Aws::String>
50 void SetProtectionGroupId(ProtectionGroupIdT&& value) { m_protectionGroupIdHasBeenSet = true; m_protectionGroupId = std::forward<ProtectionGroupIdT>(value); }
51 template<typename ProtectionGroupIdT = Aws::String>
52 UpdateProtectionGroupRequest& WithProtectionGroupId(ProtectionGroupIdT&& value) { SetProtectionGroupId(std::forward<ProtectionGroupIdT>(value)); return *this;}
54
56
69 inline ProtectionGroupAggregation GetAggregation() const { return m_aggregation; }
70 inline bool AggregationHasBeenSet() const { return m_aggregationHasBeenSet; }
71 inline void SetAggregation(ProtectionGroupAggregation value) { m_aggregationHasBeenSet = true; m_aggregation = value; }
74
76
82 inline ProtectionGroupPattern GetPattern() const { return m_pattern; }
83 inline bool PatternHasBeenSet() const { return m_patternHasBeenSet; }
84 inline void SetPattern(ProtectionGroupPattern value) { m_patternHasBeenSet = true; m_pattern = value; }
87
89
95 inline ProtectedResourceType GetResourceType() const { return m_resourceType; }
96 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
97 inline void SetResourceType(ProtectedResourceType value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
100
102
108 inline const Aws::Vector<Aws::String>& GetMembers() const { return m_members; }
109 inline bool MembersHasBeenSet() const { return m_membersHasBeenSet; }
110 template<typename MembersT = Aws::Vector<Aws::String>>
111 void SetMembers(MembersT&& value) { m_membersHasBeenSet = true; m_members = std::forward<MembersT>(value); }
112 template<typename MembersT = Aws::Vector<Aws::String>>
113 UpdateProtectionGroupRequest& WithMembers(MembersT&& value) { SetMembers(std::forward<MembersT>(value)); return *this;}
114 template<typename MembersT = Aws::String>
115 UpdateProtectionGroupRequest& AddMembers(MembersT&& value) { m_membersHasBeenSet = true; m_members.emplace_back(std::forward<MembersT>(value)); return *this; }
117 private:
118
119 Aws::String m_protectionGroupId;
120 bool m_protectionGroupIdHasBeenSet = false;
121
123 bool m_aggregationHasBeenSet = false;
124
126 bool m_patternHasBeenSet = false;
127
129 bool m_resourceTypeHasBeenSet = false;
130
131 Aws::Vector<Aws::String> m_members;
132 bool m_membersHasBeenSet = false;
133 };
134
135} // namespace Model
136} // namespace Shield
137} // 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