AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateMountTargetRequest.h
1
6#pragma once
7#include <aws/elasticfilesystem/EFS_EXPORTS.h>
8#include <aws/elasticfilesystem/EFSRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace EFS
16{
17namespace Model
18{
19
26 {
27 public:
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateMountTarget"; }
35
36 AWS_EFS_API Aws::String SerializePayload() const override;
37
38
40
43 inline const Aws::String& GetFileSystemId() const{ return m_fileSystemId; }
44 inline bool FileSystemIdHasBeenSet() const { return m_fileSystemIdHasBeenSet; }
45 inline void SetFileSystemId(const Aws::String& value) { m_fileSystemIdHasBeenSet = true; m_fileSystemId = value; }
46 inline void SetFileSystemId(Aws::String&& value) { m_fileSystemIdHasBeenSet = true; m_fileSystemId = std::move(value); }
47 inline void SetFileSystemId(const char* value) { m_fileSystemIdHasBeenSet = true; m_fileSystemId.assign(value); }
48 inline CreateMountTargetRequest& WithFileSystemId(const Aws::String& value) { SetFileSystemId(value); return *this;}
49 inline CreateMountTargetRequest& WithFileSystemId(Aws::String&& value) { SetFileSystemId(std::move(value)); return *this;}
50 inline CreateMountTargetRequest& WithFileSystemId(const char* value) { SetFileSystemId(value); return *this;}
52
54
58 inline const Aws::String& GetSubnetId() const{ return m_subnetId; }
59 inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
60 inline void SetSubnetId(const Aws::String& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; }
61 inline void SetSubnetId(Aws::String&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::move(value); }
62 inline void SetSubnetId(const char* value) { m_subnetIdHasBeenSet = true; m_subnetId.assign(value); }
63 inline CreateMountTargetRequest& WithSubnetId(const Aws::String& value) { SetSubnetId(value); return *this;}
64 inline CreateMountTargetRequest& WithSubnetId(Aws::String&& value) { SetSubnetId(std::move(value)); return *this;}
65 inline CreateMountTargetRequest& WithSubnetId(const char* value) { SetSubnetId(value); return *this;}
67
69
72 inline const Aws::String& GetIpAddress() const{ return m_ipAddress; }
73 inline bool IpAddressHasBeenSet() const { return m_ipAddressHasBeenSet; }
74 inline void SetIpAddress(const Aws::String& value) { m_ipAddressHasBeenSet = true; m_ipAddress = value; }
75 inline void SetIpAddress(Aws::String&& value) { m_ipAddressHasBeenSet = true; m_ipAddress = std::move(value); }
76 inline void SetIpAddress(const char* value) { m_ipAddressHasBeenSet = true; m_ipAddress.assign(value); }
77 inline CreateMountTargetRequest& WithIpAddress(const Aws::String& value) { SetIpAddress(value); return *this;}
78 inline CreateMountTargetRequest& WithIpAddress(Aws::String&& value) { SetIpAddress(std::move(value)); return *this;}
79 inline CreateMountTargetRequest& WithIpAddress(const char* value) { SetIpAddress(value); return *this;}
81
83
87 inline const Aws::Vector<Aws::String>& GetSecurityGroups() const{ return m_securityGroups; }
88 inline bool SecurityGroupsHasBeenSet() const { return m_securityGroupsHasBeenSet; }
89 inline void SetSecurityGroups(const Aws::Vector<Aws::String>& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = value; }
90 inline void SetSecurityGroups(Aws::Vector<Aws::String>&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = std::move(value); }
93 inline CreateMountTargetRequest& AddSecurityGroups(const Aws::String& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(value); return *this; }
94 inline CreateMountTargetRequest& AddSecurityGroups(Aws::String&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(std::move(value)); return *this; }
95 inline CreateMountTargetRequest& AddSecurityGroups(const char* value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(value); return *this; }
97 private:
98
99 Aws::String m_fileSystemId;
100 bool m_fileSystemIdHasBeenSet = false;
101
102 Aws::String m_subnetId;
103 bool m_subnetIdHasBeenSet = false;
104
105 Aws::String m_ipAddress;
106 bool m_ipAddressHasBeenSet = false;
107
108 Aws::Vector<Aws::String> m_securityGroups;
109 bool m_securityGroupsHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace EFS
114} // namespace Aws
CreateMountTargetRequest & WithSubnetId(const char *value)
void SetSecurityGroups(Aws::Vector< Aws::String > &&value)
virtual const char * GetServiceRequestName() const override
CreateMountTargetRequest & WithFileSystemId(const Aws::String &value)
CreateMountTargetRequest & WithIpAddress(const Aws::String &value)
CreateMountTargetRequest & WithSubnetId(Aws::String &&value)
void SetSecurityGroups(const Aws::Vector< Aws::String > &value)
CreateMountTargetRequest & WithIpAddress(Aws::String &&value)
CreateMountTargetRequest & WithSubnetId(const Aws::String &value)
const Aws::Vector< Aws::String > & GetSecurityGroups() const
CreateMountTargetRequest & WithFileSystemId(const char *value)
CreateMountTargetRequest & WithSecurityGroups(const Aws::Vector< Aws::String > &value)
AWS_EFS_API Aws::String SerializePayload() const override
CreateMountTargetRequest & WithFileSystemId(Aws::String &&value)
CreateMountTargetRequest & WithSecurityGroups(Aws::Vector< Aws::String > &&value)
CreateMountTargetRequest & AddSecurityGroups(Aws::String &&value)
CreateMountTargetRequest & WithIpAddress(const char *value)
CreateMountTargetRequest & AddSecurityGroups(const Aws::String &value)
CreateMountTargetRequest & AddSecurityGroups(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector