AWS SDK for C++  1.9.71
AWS SDK for C++
NetworkInterfacePermission.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Xml
19 {
20  class XmlNode;
21 } // namespace Xml
22 } // namespace Utils
23 namespace EC2
24 {
25 namespace Model
26 {
27 
34  {
35  public:
39 
40  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41  void OutputToStream(Aws::OStream& oStream, const char* location) const;
42 
43 
47  inline const Aws::String& GetNetworkInterfacePermissionId() const{ return m_networkInterfacePermissionId; }
48 
52  inline bool NetworkInterfacePermissionIdHasBeenSet() const { return m_networkInterfacePermissionIdHasBeenSet; }
53 
57  inline void SetNetworkInterfacePermissionId(const Aws::String& value) { m_networkInterfacePermissionIdHasBeenSet = true; m_networkInterfacePermissionId = value; }
58 
62  inline void SetNetworkInterfacePermissionId(Aws::String&& value) { m_networkInterfacePermissionIdHasBeenSet = true; m_networkInterfacePermissionId = std::move(value); }
63 
67  inline void SetNetworkInterfacePermissionId(const char* value) { m_networkInterfacePermissionIdHasBeenSet = true; m_networkInterfacePermissionId.assign(value); }
68 
72  inline NetworkInterfacePermission& WithNetworkInterfacePermissionId(const Aws::String& value) { SetNetworkInterfacePermissionId(value); return *this;}
73 
77  inline NetworkInterfacePermission& WithNetworkInterfacePermissionId(Aws::String&& value) { SetNetworkInterfacePermissionId(std::move(value)); return *this;}
78 
82  inline NetworkInterfacePermission& WithNetworkInterfacePermissionId(const char* value) { SetNetworkInterfacePermissionId(value); return *this;}
83 
84 
88  inline const Aws::String& GetNetworkInterfaceId() const{ return m_networkInterfaceId; }
89 
93  inline bool NetworkInterfaceIdHasBeenSet() const { return m_networkInterfaceIdHasBeenSet; }
94 
98  inline void SetNetworkInterfaceId(const Aws::String& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = value; }
99 
103  inline void SetNetworkInterfaceId(Aws::String&& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = std::move(value); }
104 
108  inline void SetNetworkInterfaceId(const char* value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId.assign(value); }
109 
113  inline NetworkInterfacePermission& WithNetworkInterfaceId(const Aws::String& value) { SetNetworkInterfaceId(value); return *this;}
114 
118  inline NetworkInterfacePermission& WithNetworkInterfaceId(Aws::String&& value) { SetNetworkInterfaceId(std::move(value)); return *this;}
119 
123  inline NetworkInterfacePermission& WithNetworkInterfaceId(const char* value) { SetNetworkInterfaceId(value); return *this;}
124 
125 
129  inline const Aws::String& GetAwsAccountId() const{ return m_awsAccountId; }
130 
134  inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; }
135 
139  inline void SetAwsAccountId(const Aws::String& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = value; }
140 
144  inline void SetAwsAccountId(Aws::String&& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = std::move(value); }
145 
149  inline void SetAwsAccountId(const char* value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId.assign(value); }
150 
154  inline NetworkInterfacePermission& WithAwsAccountId(const Aws::String& value) { SetAwsAccountId(value); return *this;}
155 
159  inline NetworkInterfacePermission& WithAwsAccountId(Aws::String&& value) { SetAwsAccountId(std::move(value)); return *this;}
160 
164  inline NetworkInterfacePermission& WithAwsAccountId(const char* value) { SetAwsAccountId(value); return *this;}
165 
166 
170  inline const Aws::String& GetAwsService() const{ return m_awsService; }
171 
175  inline bool AwsServiceHasBeenSet() const { return m_awsServiceHasBeenSet; }
176 
180  inline void SetAwsService(const Aws::String& value) { m_awsServiceHasBeenSet = true; m_awsService = value; }
181 
185  inline void SetAwsService(Aws::String&& value) { m_awsServiceHasBeenSet = true; m_awsService = std::move(value); }
186 
190  inline void SetAwsService(const char* value) { m_awsServiceHasBeenSet = true; m_awsService.assign(value); }
191 
195  inline NetworkInterfacePermission& WithAwsService(const Aws::String& value) { SetAwsService(value); return *this;}
196 
200  inline NetworkInterfacePermission& WithAwsService(Aws::String&& value) { SetAwsService(std::move(value)); return *this;}
201 
205  inline NetworkInterfacePermission& WithAwsService(const char* value) { SetAwsService(value); return *this;}
206 
207 
211  inline const InterfacePermissionType& GetPermission() const{ return m_permission; }
212 
216  inline bool PermissionHasBeenSet() const { return m_permissionHasBeenSet; }
217 
221  inline void SetPermission(const InterfacePermissionType& value) { m_permissionHasBeenSet = true; m_permission = value; }
222 
226  inline void SetPermission(InterfacePermissionType&& value) { m_permissionHasBeenSet = true; m_permission = std::move(value); }
227 
231  inline NetworkInterfacePermission& WithPermission(const InterfacePermissionType& value) { SetPermission(value); return *this;}
232 
236  inline NetworkInterfacePermission& WithPermission(InterfacePermissionType&& value) { SetPermission(std::move(value)); return *this;}
237 
238 
242  inline const NetworkInterfacePermissionState& GetPermissionState() const{ return m_permissionState; }
243 
247  inline bool PermissionStateHasBeenSet() const { return m_permissionStateHasBeenSet; }
248 
252  inline void SetPermissionState(const NetworkInterfacePermissionState& value) { m_permissionStateHasBeenSet = true; m_permissionState = value; }
253 
257  inline void SetPermissionState(NetworkInterfacePermissionState&& value) { m_permissionStateHasBeenSet = true; m_permissionState = std::move(value); }
258 
262  inline NetworkInterfacePermission& WithPermissionState(const NetworkInterfacePermissionState& value) { SetPermissionState(value); return *this;}
263 
267  inline NetworkInterfacePermission& WithPermissionState(NetworkInterfacePermissionState&& value) { SetPermissionState(std::move(value)); return *this;}
268 
269  private:
270 
271  Aws::String m_networkInterfacePermissionId;
272  bool m_networkInterfacePermissionIdHasBeenSet;
273 
274  Aws::String m_networkInterfaceId;
275  bool m_networkInterfaceIdHasBeenSet;
276 
277  Aws::String m_awsAccountId;
278  bool m_awsAccountIdHasBeenSet;
279 
280  Aws::String m_awsService;
281  bool m_awsServiceHasBeenSet;
282 
283  InterfacePermissionType m_permission;
284  bool m_permissionHasBeenSet;
285 
286  NetworkInterfacePermissionState m_permissionState;
287  bool m_permissionStateHasBeenSet;
288  };
289 
290 } // namespace Model
291 } // namespace EC2
292 } // namespace Aws
Aws::EC2::Model::NetworkInterfacePermission::NetworkInterfacePermissionIdHasBeenSet
bool NetworkInterfacePermissionIdHasBeenSet() const
Definition: NetworkInterfacePermission.h:52
Aws::EC2::Model::NetworkInterfacePermission::GetNetworkInterfacePermissionId
const Aws::String & GetNetworkInterfacePermissionId() const
Definition: NetworkInterfacePermission.h:47
Aws::EC2::Model::NetworkInterfacePermission::WithNetworkInterfaceId
NetworkInterfacePermission & WithNetworkInterfaceId(const Aws::String &value)
Definition: NetworkInterfacePermission.h:113
Aws::EC2::Model::NetworkInterfacePermission
Definition: NetworkInterfacePermission.h:34
Aws::EC2::Model::NetworkInterfacePermission::SetAwsAccountId
void SetAwsAccountId(const char *value)
Definition: NetworkInterfacePermission.h:149
Aws::EC2::Model::NetworkInterfacePermission::WithAwsService
NetworkInterfacePermission & WithAwsService(Aws::String &&value)
Definition: NetworkInterfacePermission.h:200
Aws::EC2::Model::NetworkInterfacePermission::GetAwsService
const Aws::String & GetAwsService() const
Definition: NetworkInterfacePermission.h:170
Aws::EC2::Model::NetworkInterfacePermission::SetPermissionState
void SetPermissionState(NetworkInterfacePermissionState &&value)
Definition: NetworkInterfacePermission.h:257
Aws::EC2::Model::NetworkInterfacePermissionState
Definition: NetworkInterfacePermissionState.h:34
Aws::EC2::Model::NetworkInterfacePermission::GetNetworkInterfaceId
const Aws::String & GetNetworkInterfaceId() const
Definition: NetworkInterfacePermission.h:88
Aws::EC2::Model::NetworkInterfacePermission::WithAwsService
NetworkInterfacePermission & WithAwsService(const char *value)
Definition: NetworkInterfacePermission.h:205
Aws::EC2::Model::NetworkInterfacePermission::WithPermission
NetworkInterfacePermission & WithPermission(const InterfacePermissionType &value)
Definition: NetworkInterfacePermission.h:231
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::NetworkInterfacePermission::WithNetworkInterfacePermissionId
NetworkInterfacePermission & WithNetworkInterfacePermissionId(const Aws::String &value)
Definition: NetworkInterfacePermission.h:72
Aws::EC2::Model::NetworkInterfacePermission::WithNetworkInterfacePermissionId
NetworkInterfacePermission & WithNetworkInterfacePermissionId(const char *value)
Definition: NetworkInterfacePermission.h:82
Aws::EC2::Model::NetworkInterfacePermission::WithNetworkInterfaceId
NetworkInterfacePermission & WithNetworkInterfaceId(Aws::String &&value)
Definition: NetworkInterfacePermission.h:118
Aws::EC2::Model::NetworkInterfacePermission::NetworkInterfacePermission
NetworkInterfacePermission(const Aws::Utils::Xml::XmlNode &xmlNode)
AWSStreamFwd.h
Aws::EC2::Model::NetworkInterfacePermission::PermissionStateHasBeenSet
bool PermissionStateHasBeenSet() const
Definition: NetworkInterfacePermission.h:247
Aws::EC2::Model::NetworkInterfacePermission::SetAwsAccountId
void SetAwsAccountId(Aws::String &&value)
Definition: NetworkInterfacePermission.h:144
Aws::EC2::Model::NetworkInterfacePermission::SetNetworkInterfaceId
void SetNetworkInterfaceId(Aws::String &&value)
Definition: NetworkInterfacePermission.h:103
Aws::EC2::Model::NetworkInterfacePermission::AwsServiceHasBeenSet
bool AwsServiceHasBeenSet() const
Definition: NetworkInterfacePermission.h:175
Aws::EC2::Model::NetworkInterfacePermission::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::NetworkInterfacePermission::SetAwsService
void SetAwsService(const char *value)
Definition: NetworkInterfacePermission.h:190
Aws::EC2::Model::NetworkInterfacePermission::SetAwsService
void SetAwsService(Aws::String &&value)
Definition: NetworkInterfacePermission.h:185
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::NetworkInterfacePermission::GetPermissionState
const NetworkInterfacePermissionState & GetPermissionState() const
Definition: NetworkInterfacePermission.h:242
Aws::EC2::Model::NetworkInterfacePermission::SetPermissionState
void SetPermissionState(const NetworkInterfacePermissionState &value)
Definition: NetworkInterfacePermission.h:252
Aws::EC2::Model::NetworkInterfacePermission::AwsAccountIdHasBeenSet
bool AwsAccountIdHasBeenSet() const
Definition: NetworkInterfacePermission.h:134
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::NetworkInterfacePermission::WithPermissionState
NetworkInterfacePermission & WithPermissionState(const NetworkInterfacePermissionState &value)
Definition: NetworkInterfacePermission.h:262
Aws::EC2::Model::NetworkInterfacePermission::WithAwsAccountId
NetworkInterfacePermission & WithAwsAccountId(const Aws::String &value)
Definition: NetworkInterfacePermission.h:154
NetworkInterfacePermissionState.h
Aws::EC2::Model::NetworkInterfacePermission::SetNetworkInterfacePermissionId
void SetNetworkInterfacePermissionId(const Aws::String &value)
Definition: NetworkInterfacePermission.h:57
AWSString.h
Aws::EC2::Model::NetworkInterfacePermission::SetPermission
void SetPermission(InterfacePermissionType &&value)
Definition: NetworkInterfacePermission.h:226
Aws::EC2::Model::NetworkInterfacePermission::WithAwsService
NetworkInterfacePermission & WithAwsService(const Aws::String &value)
Definition: NetworkInterfacePermission.h:195
Aws::EC2::Model::NetworkInterfacePermission::NetworkInterfaceIdHasBeenSet
bool NetworkInterfaceIdHasBeenSet() const
Definition: NetworkInterfacePermission.h:93
InterfacePermissionType.h
Aws::EC2::Model::NetworkInterfacePermission::GetAwsAccountId
const Aws::String & GetAwsAccountId() const
Definition: NetworkInterfacePermission.h:129
Aws::EC2::Model::NetworkInterfacePermission::WithNetworkInterfacePermissionId
NetworkInterfacePermission & WithNetworkInterfacePermissionId(Aws::String &&value)
Definition: NetworkInterfacePermission.h:77
Aws::EC2::Model::NetworkInterfacePermission::PermissionHasBeenSet
bool PermissionHasBeenSet() const
Definition: NetworkInterfacePermission.h:216
Aws::EC2::Model::NetworkInterfacePermission::GetPermission
const InterfacePermissionType & GetPermission() const
Definition: NetworkInterfacePermission.h:211
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::NetworkInterfacePermission::WithAwsAccountId
NetworkInterfacePermission & WithAwsAccountId(const char *value)
Definition: NetworkInterfacePermission.h:164
Aws::EC2::Model::NetworkInterfacePermission::NetworkInterfacePermission
NetworkInterfacePermission()
Aws::EC2::Model::NetworkInterfacePermission::SetNetworkInterfacePermissionId
void SetNetworkInterfacePermissionId(Aws::String &&value)
Definition: NetworkInterfacePermission.h:62
Aws::EC2::Model::NetworkInterfacePermission::SetNetworkInterfacePermissionId
void SetNetworkInterfacePermissionId(const char *value)
Definition: NetworkInterfacePermission.h:67
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::NetworkInterfacePermission::WithNetworkInterfaceId
NetworkInterfacePermission & WithNetworkInterfaceId(const char *value)
Definition: NetworkInterfacePermission.h:123
Aws::EC2::Model::NetworkInterfacePermission::WithPermission
NetworkInterfacePermission & WithPermission(InterfacePermissionType &&value)
Definition: NetworkInterfacePermission.h:236
Aws::EC2::Model::NetworkInterfacePermission::WithAwsAccountId
NetworkInterfacePermission & WithAwsAccountId(Aws::String &&value)
Definition: NetworkInterfacePermission.h:159
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::InterfacePermissionType
InterfacePermissionType
Definition: InterfacePermissionType.h:17
Aws::EC2::Model::NetworkInterfacePermission::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::NetworkInterfacePermission::SetNetworkInterfaceId
void SetNetworkInterfaceId(const char *value)
Definition: NetworkInterfacePermission.h:108
Aws::EC2::Model::NetworkInterfacePermission::SetNetworkInterfaceId
void SetNetworkInterfaceId(const Aws::String &value)
Definition: NetworkInterfacePermission.h:98
Aws::EC2::Model::NetworkInterfacePermission::WithPermissionState
NetworkInterfacePermission & WithPermissionState(NetworkInterfacePermissionState &&value)
Definition: NetworkInterfacePermission.h:267
Aws::EC2::Model::NetworkInterfacePermission::SetPermission
void SetPermission(const InterfacePermissionType &value)
Definition: NetworkInterfacePermission.h:221
EC2_EXPORTS.h
Aws::EC2::Model::NetworkInterfacePermission::operator=
NetworkInterfacePermission & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::NetworkInterfacePermission::SetAwsAccountId
void SetAwsAccountId(const Aws::String &value)
Definition: NetworkInterfacePermission.h:139
Aws::EC2::Model::NetworkInterfacePermission::SetAwsService
void SetAwsService(const Aws::String &value)
Definition: NetworkInterfacePermission.h:180