AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
SecurityGroup.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/wickr/Wickr_EXPORTS.h>
9#include <aws/wickr/model/SecurityGroupSettings.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Wickr {
21namespace Model {
22
31 public:
32 AWS_WICKR_API SecurityGroup() = default;
33 AWS_WICKR_API SecurityGroup(Aws::Utils::Json::JsonView jsonValue);
35 AWS_WICKR_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline int GetActiveMembers() const { return m_activeMembers; }
42 inline bool ActiveMembersHasBeenSet() const { return m_activeMembersHasBeenSet; }
43 inline void SetActiveMembers(int value) {
44 m_activeMembersHasBeenSet = true;
45 m_activeMembers = value;
46 }
47 inline SecurityGroup& WithActiveMembers(int value) {
48 SetActiveMembers(value);
49 return *this;
50 }
52
54
57 inline int GetBotMembers() const { return m_botMembers; }
58 inline bool BotMembersHasBeenSet() const { return m_botMembersHasBeenSet; }
59 inline void SetBotMembers(int value) {
60 m_botMembersHasBeenSet = true;
61 m_botMembers = value;
62 }
63 inline SecurityGroup& WithBotMembers(int value) {
64 SetBotMembers(value);
65 return *this;
66 }
68
70
74 inline const Aws::String& GetActiveDirectoryGuid() const { return m_activeDirectoryGuid; }
75 inline bool ActiveDirectoryGuidHasBeenSet() const { return m_activeDirectoryGuidHasBeenSet; }
76 template <typename ActiveDirectoryGuidT = Aws::String>
77 void SetActiveDirectoryGuid(ActiveDirectoryGuidT&& value) {
78 m_activeDirectoryGuidHasBeenSet = true;
79 m_activeDirectoryGuid = std::forward<ActiveDirectoryGuidT>(value);
80 }
81 template <typename ActiveDirectoryGuidT = Aws::String>
82 SecurityGroup& WithActiveDirectoryGuid(ActiveDirectoryGuidT&& value) {
83 SetActiveDirectoryGuid(std::forward<ActiveDirectoryGuidT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::String& GetId() const { return m_id; }
93 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
94 template <typename IdT = Aws::String>
95 void SetId(IdT&& value) {
96 m_idHasBeenSet = true;
97 m_id = std::forward<IdT>(value);
98 }
99 template <typename IdT = Aws::String>
100 SecurityGroup& WithId(IdT&& value) {
101 SetId(std::forward<IdT>(value));
102 return *this;
103 }
105
107
111 inline bool GetIsDefault() const { return m_isDefault; }
112 inline bool IsDefaultHasBeenSet() const { return m_isDefaultHasBeenSet; }
113 inline void SetIsDefault(bool value) {
114 m_isDefaultHasBeenSet = true;
115 m_isDefault = value;
116 }
117 inline SecurityGroup& WithIsDefault(bool value) {
118 SetIsDefault(value);
119 return *this;
120 }
122
124
127 inline const Aws::String& GetName() const { return m_name; }
128 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
129 template <typename NameT = Aws::String>
130 void SetName(NameT&& value) {
131 m_nameHasBeenSet = true;
132 m_name = std::forward<NameT>(value);
133 }
134 template <typename NameT = Aws::String>
135 SecurityGroup& WithName(NameT&& value) {
136 SetName(std::forward<NameT>(value));
137 return *this;
138 }
140
142
146 inline int GetModified() const { return m_modified; }
147 inline bool ModifiedHasBeenSet() const { return m_modifiedHasBeenSet; }
148 inline void SetModified(int value) {
149 m_modifiedHasBeenSet = true;
150 m_modified = value;
151 }
152 inline SecurityGroup& WithModified(int value) {
153 SetModified(value);
154 return *this;
155 }
157
159
163 inline const SecurityGroupSettings& GetSecurityGroupSettings() const { return m_securityGroupSettings; }
164 inline bool SecurityGroupSettingsHasBeenSet() const { return m_securityGroupSettingsHasBeenSet; }
165 template <typename SecurityGroupSettingsT = SecurityGroupSettings>
166 void SetSecurityGroupSettings(SecurityGroupSettingsT&& value) {
167 m_securityGroupSettingsHasBeenSet = true;
168 m_securityGroupSettings = std::forward<SecurityGroupSettingsT>(value);
169 }
170 template <typename SecurityGroupSettingsT = SecurityGroupSettings>
171 SecurityGroup& WithSecurityGroupSettings(SecurityGroupSettingsT&& value) {
172 SetSecurityGroupSettings(std::forward<SecurityGroupSettingsT>(value));
173 return *this;
174 }
176 private:
177 int m_activeMembers{0};
178
179 int m_botMembers{0};
180
181 Aws::String m_activeDirectoryGuid;
182
183 Aws::String m_id;
184
185 bool m_isDefault{false};
186
187 Aws::String m_name;
188
189 int m_modified{0};
190
191 SecurityGroupSettings m_securityGroupSettings;
192 bool m_activeMembersHasBeenSet = false;
193 bool m_botMembersHasBeenSet = false;
194 bool m_activeDirectoryGuidHasBeenSet = false;
195 bool m_idHasBeenSet = false;
196 bool m_isDefaultHasBeenSet = false;
197 bool m_nameHasBeenSet = false;
198 bool m_modifiedHasBeenSet = false;
199 bool m_securityGroupSettingsHasBeenSet = false;
200};
201
202} // namespace Model
203} // namespace Wickr
204} // namespace Aws
void SetSecurityGroupSettings(SecurityGroupSettingsT &&value)
SecurityGroup & WithId(IdT &&value)
void SetActiveDirectoryGuid(ActiveDirectoryGuidT &&value)
AWS_WICKR_API SecurityGroup(Aws::Utils::Json::JsonView jsonValue)
SecurityGroup & WithBotMembers(int value)
SecurityGroup & WithActiveDirectoryGuid(ActiveDirectoryGuidT &&value)
AWS_WICKR_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_WICKR_API SecurityGroup & operator=(Aws::Utils::Json::JsonView jsonValue)
SecurityGroup & WithActiveMembers(int value)
const Aws::String & GetId() const
SecurityGroup & WithIsDefault(bool value)
const Aws::String & GetActiveDirectoryGuid() const
AWS_WICKR_API SecurityGroup()=default
const SecurityGroupSettings & GetSecurityGroupSettings() const
SecurityGroup & WithSecurityGroupSettings(SecurityGroupSettingsT &&value)
SecurityGroup & WithName(NameT &&value)
SecurityGroup & WithModified(int value)
const Aws::String & GetName() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue