AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
CreateMountTargetRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/s3files/S3FilesRequest.h>
10#include <aws/s3files/S3Files_EXPORTS.h>
11#include <aws/s3files/model/IpAddressType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace S3Files {
17namespace Model {
18
22 public:
23 AWS_S3FILES_API CreateMountTargetRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateMountTarget"; }
30
31 AWS_S3FILES_API Aws::String SerializePayload() const override;
32
34
38 inline const Aws::String& GetFileSystemId() const { return m_fileSystemId; }
39 inline bool FileSystemIdHasBeenSet() const { return m_fileSystemIdHasBeenSet; }
40 template <typename FileSystemIdT = Aws::String>
41 void SetFileSystemId(FileSystemIdT&& value) {
42 m_fileSystemIdHasBeenSet = true;
43 m_fileSystemId = std::forward<FileSystemIdT>(value);
44 }
45 template <typename FileSystemIdT = Aws::String>
47 SetFileSystemId(std::forward<FileSystemIdT>(value));
48 return *this;
49 }
51
53
60 inline const Aws::String& GetSubnetId() const { return m_subnetId; }
61 inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
62 template <typename SubnetIdT = Aws::String>
63 void SetSubnetId(SubnetIdT&& value) {
64 m_subnetIdHasBeenSet = true;
65 m_subnetId = std::forward<SubnetIdT>(value);
66 }
67 template <typename SubnetIdT = Aws::String>
69 SetSubnetId(std::forward<SubnetIdT>(value));
70 return *this;
71 }
73
75
81 inline const Aws::String& GetIpv4Address() const { return m_ipv4Address; }
82 inline bool Ipv4AddressHasBeenSet() const { return m_ipv4AddressHasBeenSet; }
83 template <typename Ipv4AddressT = Aws::String>
84 void SetIpv4Address(Ipv4AddressT&& value) {
85 m_ipv4AddressHasBeenSet = true;
86 m_ipv4Address = std::forward<Ipv4AddressT>(value);
87 }
88 template <typename Ipv4AddressT = Aws::String>
90 SetIpv4Address(std::forward<Ipv4AddressT>(value));
91 return *this;
92 }
94
96
102 inline const Aws::String& GetIpv6Address() const { return m_ipv6Address; }
103 inline bool Ipv6AddressHasBeenSet() const { return m_ipv6AddressHasBeenSet; }
104 template <typename Ipv6AddressT = Aws::String>
105 void SetIpv6Address(Ipv6AddressT&& value) {
106 m_ipv6AddressHasBeenSet = true;
107 m_ipv6Address = std::forward<Ipv6AddressT>(value);
108 }
109 template <typename Ipv6AddressT = Aws::String>
111 SetIpv6Address(std::forward<Ipv6AddressT>(value));
112 return *this;
113 }
115
117
122 inline IpAddressType GetIpAddressType() const { return m_ipAddressType; }
123 inline bool IpAddressTypeHasBeenSet() const { return m_ipAddressTypeHasBeenSet; }
124 inline void SetIpAddressType(IpAddressType value) {
125 m_ipAddressTypeHasBeenSet = true;
126 m_ipAddressType = value;
127 }
129 SetIpAddressType(value);
130 return *this;
131 }
133
135
141 inline const Aws::Vector<Aws::String>& GetSecurityGroups() const { return m_securityGroups; }
142 inline bool SecurityGroupsHasBeenSet() const { return m_securityGroupsHasBeenSet; }
143 template <typename SecurityGroupsT = Aws::Vector<Aws::String>>
144 void SetSecurityGroups(SecurityGroupsT&& value) {
145 m_securityGroupsHasBeenSet = true;
146 m_securityGroups = std::forward<SecurityGroupsT>(value);
147 }
148 template <typename SecurityGroupsT = Aws::Vector<Aws::String>>
150 SetSecurityGroups(std::forward<SecurityGroupsT>(value));
151 return *this;
152 }
153 template <typename SecurityGroupsT = Aws::String>
154 CreateMountTargetRequest& AddSecurityGroups(SecurityGroupsT&& value) {
155 m_securityGroupsHasBeenSet = true;
156 m_securityGroups.emplace_back(std::forward<SecurityGroupsT>(value));
157 return *this;
158 }
160 private:
161 Aws::String m_fileSystemId;
162
163 Aws::String m_subnetId;
164
165 Aws::String m_ipv4Address;
166
167 Aws::String m_ipv6Address;
168
169 IpAddressType m_ipAddressType{IpAddressType::NOT_SET};
170
171 Aws::Vector<Aws::String> m_securityGroups;
172 bool m_fileSystemIdHasBeenSet = false;
173 bool m_subnetIdHasBeenSet = false;
174 bool m_ipv4AddressHasBeenSet = false;
175 bool m_ipv6AddressHasBeenSet = false;
176 bool m_ipAddressTypeHasBeenSet = false;
177 bool m_securityGroupsHasBeenSet = false;
178};
179
180} // namespace Model
181} // namespace S3Files
182} // namespace Aws
AWS_S3FILES_API Aws::String SerializePayload() const override
CreateMountTargetRequest & WithFileSystemId(FileSystemIdT &&value)
virtual const char * GetServiceRequestName() const override
CreateMountTargetRequest & WithSecurityGroups(SecurityGroupsT &&value)
CreateMountTargetRequest & AddSecurityGroups(SecurityGroupsT &&value)
CreateMountTargetRequest & WithIpv6Address(Ipv6AddressT &&value)
AWS_S3FILES_API CreateMountTargetRequest()=default
CreateMountTargetRequest & WithIpAddressType(IpAddressType value)
const Aws::Vector< Aws::String > & GetSecurityGroups() const
CreateMountTargetRequest & WithIpv4Address(Ipv4AddressT &&value)
CreateMountTargetRequest & WithSubnetId(SubnetIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector