AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
NetworkInterfacePermission.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/model/InterfacePermissionType.h>
11#include <aws/ec2/model/NetworkInterfacePermissionState.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace EC2
24{
25namespace Model
26{
27
34 {
35 public:
39
40 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
48 inline const Aws::String& GetNetworkInterfacePermissionId() const{ return m_networkInterfacePermissionId; }
49 inline bool NetworkInterfacePermissionIdHasBeenSet() const { return m_networkInterfacePermissionIdHasBeenSet; }
50 inline void SetNetworkInterfacePermissionId(const Aws::String& value) { m_networkInterfacePermissionIdHasBeenSet = true; m_networkInterfacePermissionId = value; }
51 inline void SetNetworkInterfacePermissionId(Aws::String&& value) { m_networkInterfacePermissionIdHasBeenSet = true; m_networkInterfacePermissionId = std::move(value); }
52 inline void SetNetworkInterfacePermissionId(const char* value) { m_networkInterfacePermissionIdHasBeenSet = true; m_networkInterfacePermissionId.assign(value); }
57
59
62 inline const Aws::String& GetNetworkInterfaceId() const{ return m_networkInterfaceId; }
63 inline bool NetworkInterfaceIdHasBeenSet() const { return m_networkInterfaceIdHasBeenSet; }
64 inline void SetNetworkInterfaceId(const Aws::String& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = value; }
65 inline void SetNetworkInterfaceId(Aws::String&& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = std::move(value); }
66 inline void SetNetworkInterfaceId(const char* value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId.assign(value); }
68 inline NetworkInterfacePermission& WithNetworkInterfaceId(Aws::String&& value) { SetNetworkInterfaceId(std::move(value)); return *this;}
69 inline NetworkInterfacePermission& WithNetworkInterfaceId(const char* value) { SetNetworkInterfaceId(value); return *this;}
71
73
76 inline const Aws::String& GetAwsAccountId() const{ return m_awsAccountId; }
77 inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; }
78 inline void SetAwsAccountId(const Aws::String& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = value; }
79 inline void SetAwsAccountId(Aws::String&& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = std::move(value); }
80 inline void SetAwsAccountId(const char* value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId.assign(value); }
81 inline NetworkInterfacePermission& WithAwsAccountId(const Aws::String& value) { SetAwsAccountId(value); return *this;}
82 inline NetworkInterfacePermission& WithAwsAccountId(Aws::String&& value) { SetAwsAccountId(std::move(value)); return *this;}
83 inline NetworkInterfacePermission& WithAwsAccountId(const char* value) { SetAwsAccountId(value); return *this;}
85
87
90 inline const Aws::String& GetAwsService() const{ return m_awsService; }
91 inline bool AwsServiceHasBeenSet() const { return m_awsServiceHasBeenSet; }
92 inline void SetAwsService(const Aws::String& value) { m_awsServiceHasBeenSet = true; m_awsService = value; }
93 inline void SetAwsService(Aws::String&& value) { m_awsServiceHasBeenSet = true; m_awsService = std::move(value); }
94 inline void SetAwsService(const char* value) { m_awsServiceHasBeenSet = true; m_awsService.assign(value); }
95 inline NetworkInterfacePermission& WithAwsService(const Aws::String& value) { SetAwsService(value); return *this;}
96 inline NetworkInterfacePermission& WithAwsService(Aws::String&& value) { SetAwsService(std::move(value)); return *this;}
97 inline NetworkInterfacePermission& WithAwsService(const char* value) { SetAwsService(value); return *this;}
99
101
104 inline const InterfacePermissionType& GetPermission() const{ return m_permission; }
105 inline bool PermissionHasBeenSet() const { return m_permissionHasBeenSet; }
106 inline void SetPermission(const InterfacePermissionType& value) { m_permissionHasBeenSet = true; m_permission = value; }
107 inline void SetPermission(InterfacePermissionType&& value) { m_permissionHasBeenSet = true; m_permission = std::move(value); }
109 inline NetworkInterfacePermission& WithPermission(InterfacePermissionType&& value) { SetPermission(std::move(value)); return *this;}
111
113
116 inline const NetworkInterfacePermissionState& GetPermissionState() const{ return m_permissionState; }
117 inline bool PermissionStateHasBeenSet() const { return m_permissionStateHasBeenSet; }
118 inline void SetPermissionState(const NetworkInterfacePermissionState& value) { m_permissionStateHasBeenSet = true; m_permissionState = value; }
119 inline void SetPermissionState(NetworkInterfacePermissionState&& value) { m_permissionStateHasBeenSet = true; m_permissionState = std::move(value); }
123 private:
124
125 Aws::String m_networkInterfacePermissionId;
126 bool m_networkInterfacePermissionIdHasBeenSet = false;
127
128 Aws::String m_networkInterfaceId;
129 bool m_networkInterfaceIdHasBeenSet = false;
130
131 Aws::String m_awsAccountId;
132 bool m_awsAccountIdHasBeenSet = false;
133
134 Aws::String m_awsService;
135 bool m_awsServiceHasBeenSet = false;
136
137 InterfacePermissionType m_permission;
138 bool m_permissionHasBeenSet = false;
139
140 NetworkInterfacePermissionState m_permissionState;
141 bool m_permissionStateHasBeenSet = false;
142 };
143
144} // namespace Model
145} // namespace EC2
146} // namespace Aws
NetworkInterfacePermission & WithAwsAccountId(Aws::String &&value)
NetworkInterfacePermission & WithNetworkInterfacePermissionId(const char *value)
void SetPermission(InterfacePermissionType &&value)
NetworkInterfacePermission & WithAwsAccountId(const char *value)
NetworkInterfacePermission & WithNetworkInterfaceId(const Aws::String &value)
NetworkInterfacePermission & WithPermissionState(const NetworkInterfacePermissionState &value)
const InterfacePermissionType & GetPermission() const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
NetworkInterfacePermission & WithAwsService(const Aws::String &value)
NetworkInterfacePermission & WithPermissionState(NetworkInterfacePermissionState &&value)
void SetNetworkInterfacePermissionId(const Aws::String &value)
NetworkInterfacePermission & WithNetworkInterfaceId(const char *value)
NetworkInterfacePermission & WithNetworkInterfacePermissionId(Aws::String &&value)
void SetPermission(const InterfacePermissionType &value)
NetworkInterfacePermission & WithAwsService(Aws::String &&value)
NetworkInterfacePermission & WithAwsService(const char *value)
NetworkInterfacePermission & WithNetworkInterfaceId(Aws::String &&value)
void SetPermissionState(const NetworkInterfacePermissionState &value)
NetworkInterfacePermission & WithPermission(InterfacePermissionType &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
NetworkInterfacePermission & WithPermission(const InterfacePermissionType &value)
AWS_EC2_API NetworkInterfacePermission & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const NetworkInterfacePermissionState & GetPermissionState() const
NetworkInterfacePermission & WithAwsAccountId(const Aws::String &value)
NetworkInterfacePermission & WithNetworkInterfacePermissionId(const Aws::String &value)
void SetPermissionState(NetworkInterfacePermissionState &&value)
AWS_EC2_API NetworkInterfacePermission(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream