AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ProtectionGroup.h
1
6#pragma once
7#include <aws/shield/Shield_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/shield/model/ProtectionGroupAggregation.h>
10#include <aws/shield/model/ProtectionGroupPattern.h>
11#include <aws/shield/model/ProtectedResourceType.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Shield
26{
27namespace Model
28{
29
38 {
39 public:
40 AWS_SHIELD_API ProtectionGroup();
43 AWS_SHIELD_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
52 inline const Aws::String& GetProtectionGroupId() const{ return m_protectionGroupId; }
53 inline bool ProtectionGroupIdHasBeenSet() const { return m_protectionGroupIdHasBeenSet; }
54 inline void SetProtectionGroupId(const Aws::String& value) { m_protectionGroupIdHasBeenSet = true; m_protectionGroupId = value; }
55 inline void SetProtectionGroupId(Aws::String&& value) { m_protectionGroupIdHasBeenSet = true; m_protectionGroupId = std::move(value); }
56 inline void SetProtectionGroupId(const char* value) { m_protectionGroupIdHasBeenSet = true; m_protectionGroupId.assign(value); }
57 inline ProtectionGroup& WithProtectionGroupId(const Aws::String& value) { SetProtectionGroupId(value); return *this;}
58 inline ProtectionGroup& WithProtectionGroupId(Aws::String&& value) { SetProtectionGroupId(std::move(value)); return *this;}
59 inline ProtectionGroup& WithProtectionGroupId(const char* value) { SetProtectionGroupId(value); return *this;}
61
63
76 inline const ProtectionGroupAggregation& GetAggregation() const{ return m_aggregation; }
77 inline bool AggregationHasBeenSet() const { return m_aggregationHasBeenSet; }
78 inline void SetAggregation(const ProtectionGroupAggregation& value) { m_aggregationHasBeenSet = true; m_aggregation = value; }
79 inline void SetAggregation(ProtectionGroupAggregation&& value) { m_aggregationHasBeenSet = true; m_aggregation = std::move(value); }
80 inline ProtectionGroup& WithAggregation(const ProtectionGroupAggregation& value) { SetAggregation(value); return *this;}
81 inline ProtectionGroup& WithAggregation(ProtectionGroupAggregation&& value) { SetAggregation(std::move(value)); return *this;}
83
85
91 inline const ProtectionGroupPattern& GetPattern() const{ return m_pattern; }
92 inline bool PatternHasBeenSet() const { return m_patternHasBeenSet; }
93 inline void SetPattern(const ProtectionGroupPattern& value) { m_patternHasBeenSet = true; m_pattern = value; }
94 inline void SetPattern(ProtectionGroupPattern&& value) { m_patternHasBeenSet = true; m_pattern = std::move(value); }
95 inline ProtectionGroup& WithPattern(const ProtectionGroupPattern& value) { SetPattern(value); return *this;}
96 inline ProtectionGroup& WithPattern(ProtectionGroupPattern&& value) { SetPattern(std::move(value)); return *this;}
98
100
106 inline const ProtectedResourceType& GetResourceType() const{ return m_resourceType; }
107 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
108 inline void SetResourceType(const ProtectedResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
109 inline void SetResourceType(ProtectedResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
110 inline ProtectionGroup& WithResourceType(const ProtectedResourceType& value) { SetResourceType(value); return *this;}
111 inline ProtectionGroup& WithResourceType(ProtectedResourceType&& value) { SetResourceType(std::move(value)); return *this;}
113
115
121 inline const Aws::Vector<Aws::String>& GetMembers() const{ return m_members; }
122 inline bool MembersHasBeenSet() const { return m_membersHasBeenSet; }
123 inline void SetMembers(const Aws::Vector<Aws::String>& value) { m_membersHasBeenSet = true; m_members = value; }
124 inline void SetMembers(Aws::Vector<Aws::String>&& value) { m_membersHasBeenSet = true; m_members = std::move(value); }
125 inline ProtectionGroup& WithMembers(const Aws::Vector<Aws::String>& value) { SetMembers(value); return *this;}
126 inline ProtectionGroup& WithMembers(Aws::Vector<Aws::String>&& value) { SetMembers(std::move(value)); return *this;}
127 inline ProtectionGroup& AddMembers(const Aws::String& value) { m_membersHasBeenSet = true; m_members.push_back(value); return *this; }
128 inline ProtectionGroup& AddMembers(Aws::String&& value) { m_membersHasBeenSet = true; m_members.push_back(std::move(value)); return *this; }
129 inline ProtectionGroup& AddMembers(const char* value) { m_membersHasBeenSet = true; m_members.push_back(value); return *this; }
131
133
136 inline const Aws::String& GetProtectionGroupArn() const{ return m_protectionGroupArn; }
137 inline bool ProtectionGroupArnHasBeenSet() const { return m_protectionGroupArnHasBeenSet; }
138 inline void SetProtectionGroupArn(const Aws::String& value) { m_protectionGroupArnHasBeenSet = true; m_protectionGroupArn = value; }
139 inline void SetProtectionGroupArn(Aws::String&& value) { m_protectionGroupArnHasBeenSet = true; m_protectionGroupArn = std::move(value); }
140 inline void SetProtectionGroupArn(const char* value) { m_protectionGroupArnHasBeenSet = true; m_protectionGroupArn.assign(value); }
141 inline ProtectionGroup& WithProtectionGroupArn(const Aws::String& value) { SetProtectionGroupArn(value); return *this;}
142 inline ProtectionGroup& WithProtectionGroupArn(Aws::String&& value) { SetProtectionGroupArn(std::move(value)); return *this;}
143 inline ProtectionGroup& WithProtectionGroupArn(const char* value) { SetProtectionGroupArn(value); return *this;}
145 private:
146
147 Aws::String m_protectionGroupId;
148 bool m_protectionGroupIdHasBeenSet = false;
149
150 ProtectionGroupAggregation m_aggregation;
151 bool m_aggregationHasBeenSet = false;
152
153 ProtectionGroupPattern m_pattern;
154 bool m_patternHasBeenSet = false;
155
156 ProtectedResourceType m_resourceType;
157 bool m_resourceTypeHasBeenSet = false;
158
159 Aws::Vector<Aws::String> m_members;
160 bool m_membersHasBeenSet = false;
161
162 Aws::String m_protectionGroupArn;
163 bool m_protectionGroupArnHasBeenSet = false;
164 };
165
166} // namespace Model
167} // namespace Shield
168} // namespace Aws
const ProtectedResourceType & GetResourceType() const
void SetAggregation(const ProtectionGroupAggregation &value)
ProtectionGroup & WithResourceType(const ProtectedResourceType &value)
ProtectionGroup & AddMembers(Aws::String &&value)
void SetProtectionGroupId(const char *value)
ProtectionGroup & WithResourceType(ProtectedResourceType &&value)
void SetPattern(ProtectionGroupPattern &&value)
ProtectionGroup & WithProtectionGroupId(Aws::String &&value)
ProtectionGroup & WithProtectionGroupId(const char *value)
const Aws::String & GetProtectionGroupArn() const
const ProtectionGroupAggregation & GetAggregation() const
void SetProtectionGroupArn(Aws::String &&value)
void SetMembers(const Aws::Vector< Aws::String > &value)
AWS_SHIELD_API ProtectionGroup(Aws::Utils::Json::JsonView jsonValue)
void SetAggregation(ProtectionGroupAggregation &&value)
void SetMembers(Aws::Vector< Aws::String > &&value)
ProtectionGroup & WithMembers(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetMembers() const
void SetProtectionGroupId(Aws::String &&value)
ProtectionGroup & WithProtectionGroupArn(const Aws::String &value)
ProtectionGroup & WithProtectionGroupArn(Aws::String &&value)
const Aws::String & GetProtectionGroupId() const
ProtectionGroup & WithPattern(const ProtectionGroupPattern &value)
void SetResourceType(ProtectedResourceType &&value)
ProtectionGroup & AddMembers(const Aws::String &value)
void SetPattern(const ProtectionGroupPattern &value)
void SetProtectionGroupId(const Aws::String &value)
ProtectionGroup & WithPattern(ProtectionGroupPattern &&value)
AWS_SHIELD_API ProtectionGroup & operator=(Aws::Utils::Json::JsonView jsonValue)
ProtectionGroup & WithAggregation(const ProtectionGroupAggregation &value)
ProtectionGroup & WithProtectionGroupArn(const char *value)
AWS_SHIELD_API Aws::Utils::Json::JsonValue Jsonize() const
ProtectionGroup & WithProtectionGroupId(const Aws::String &value)
ProtectionGroup & AddMembers(const char *value)
ProtectionGroup & WithMembers(const Aws::Vector< Aws::String > &value)
void SetResourceType(const ProtectedResourceType &value)
void SetProtectionGroupArn(const Aws::String &value)
ProtectionGroup & WithAggregation(ProtectionGroupAggregation &&value)
const ProtectionGroupPattern & GetPattern() const
void SetProtectionGroupArn(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue