AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetProtectionGroupId(const Aws::String& value) { m_protectionGroupIdHasBeenSet = true; m_protectionGroupId = value; }
50 inline void SetProtectionGroupId(Aws::String&& value) { m_protectionGroupIdHasBeenSet = true; m_protectionGroupId = std::move(value); }
51 inline void SetProtectionGroupId(const char* value) { m_protectionGroupIdHasBeenSet = true; m_protectionGroupId.assign(value); }
53 inline UpdateProtectionGroupRequest& WithProtectionGroupId(Aws::String&& value) { SetProtectionGroupId(std::move(value)); return *this;}
54 inline UpdateProtectionGroupRequest& WithProtectionGroupId(const char* value) { SetProtectionGroupId(value); return *this;}
56
58
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 UpdateProtectionGroupRequest& WithPattern(const ProtectionGroupPattern& value) { SetPattern(value); return *this;}
91 inline UpdateProtectionGroupRequest& WithPattern(ProtectionGroupPattern&& value) { SetPattern(std::move(value)); return *this;}
93
95
101 inline const ProtectedResourceType& GetResourceType() const{ return m_resourceType; }
102 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
103 inline void SetResourceType(const ProtectedResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
104 inline void SetResourceType(ProtectedResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
106 inline UpdateProtectionGroupRequest& WithResourceType(ProtectedResourceType&& value) { SetResourceType(std::move(value)); return *this;}
108
110
116 inline const Aws::Vector<Aws::String>& GetMembers() const{ return m_members; }
117 inline bool MembersHasBeenSet() const { return m_membersHasBeenSet; }
118 inline void SetMembers(const Aws::Vector<Aws::String>& value) { m_membersHasBeenSet = true; m_members = value; }
119 inline void SetMembers(Aws::Vector<Aws::String>&& value) { m_membersHasBeenSet = true; m_members = std::move(value); }
121 inline UpdateProtectionGroupRequest& WithMembers(Aws::Vector<Aws::String>&& value) { SetMembers(std::move(value)); return *this;}
122 inline UpdateProtectionGroupRequest& AddMembers(const Aws::String& value) { m_membersHasBeenSet = true; m_members.push_back(value); return *this; }
123 inline UpdateProtectionGroupRequest& AddMembers(Aws::String&& value) { m_membersHasBeenSet = true; m_members.push_back(std::move(value)); return *this; }
124 inline UpdateProtectionGroupRequest& AddMembers(const char* value) { m_membersHasBeenSet = true; m_members.push_back(value); return *this; }
126 private:
127
128 Aws::String m_protectionGroupId;
129 bool m_protectionGroupIdHasBeenSet = false;
130
131 ProtectionGroupAggregation m_aggregation;
132 bool m_aggregationHasBeenSet = false;
133
134 ProtectionGroupPattern m_pattern;
135 bool m_patternHasBeenSet = false;
136
137 ProtectedResourceType m_resourceType;
138 bool m_resourceTypeHasBeenSet = false;
139
140 Aws::Vector<Aws::String> m_members;
141 bool m_membersHasBeenSet = false;
142 };
143
144} // namespace Model
145} // namespace Shield
146} // namespace Aws
UpdateProtectionGroupRequest & WithMembers(Aws::Vector< Aws::String > &&value)
UpdateProtectionGroupRequest & WithResourceType(ProtectedResourceType &&value)
UpdateProtectionGroupRequest & WithMembers(const Aws::Vector< Aws::String > &value)
AWS_SHIELD_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetAggregation(ProtectionGroupAggregation &&value)
const ProtectionGroupAggregation & GetAggregation() const
void SetAggregation(const ProtectionGroupAggregation &value)
UpdateProtectionGroupRequest & AddMembers(const char *value)
void SetResourceType(const ProtectedResourceType &value)
virtual const char * GetServiceRequestName() const override
UpdateProtectionGroupRequest & WithProtectionGroupId(const char *value)
UpdateProtectionGroupRequest & WithProtectionGroupId(const Aws::String &value)
AWS_SHIELD_API Aws::String SerializePayload() const override
void SetMembers(const Aws::Vector< Aws::String > &value)
UpdateProtectionGroupRequest & WithPattern(ProtectionGroupPattern &&value)
UpdateProtectionGroupRequest & WithProtectionGroupId(Aws::String &&value)
UpdateProtectionGroupRequest & AddMembers(Aws::String &&value)
void SetPattern(const ProtectionGroupPattern &value)
const Aws::Vector< Aws::String > & GetMembers() const
UpdateProtectionGroupRequest & WithPattern(const ProtectionGroupPattern &value)
UpdateProtectionGroupRequest & WithAggregation(ProtectionGroupAggregation &&value)
UpdateProtectionGroupRequest & WithResourceType(const ProtectedResourceType &value)
UpdateProtectionGroupRequest & AddMembers(const Aws::String &value)
UpdateProtectionGroupRequest & WithAggregation(const 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