AWS SDK for C++  0.14.3
AWS SDK for C++
CreateMountTargetRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
20 
21 namespace Aws
22 {
23 namespace EFS
24 {
25 namespace Model
26 {
27 
32  {
33  public:
35  Aws::String SerializePayload() const override;
36 
40  inline const Aws::String& GetFileSystemId() const{ return m_fileSystemId; }
41 
45  inline void SetFileSystemId(const Aws::String& value) { m_fileSystemIdHasBeenSet = true; m_fileSystemId = value; }
46 
50  inline void SetFileSystemId(Aws::String&& value) { m_fileSystemIdHasBeenSet = true; m_fileSystemId = value; }
51 
55  inline void SetFileSystemId(const char* value) { m_fileSystemIdHasBeenSet = true; m_fileSystemId.assign(value); }
56 
60  inline CreateMountTargetRequest& WithFileSystemId(const Aws::String& value) { SetFileSystemId(value); return *this;}
61 
65  inline CreateMountTargetRequest& WithFileSystemId(Aws::String&& value) { SetFileSystemId(value); return *this;}
66 
70  inline CreateMountTargetRequest& WithFileSystemId(const char* value) { SetFileSystemId(value); return *this;}
71 
75  inline const Aws::String& GetSubnetId() const{ return m_subnetId; }
76 
80  inline void SetSubnetId(const Aws::String& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; }
81 
85  inline void SetSubnetId(Aws::String&& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; }
86 
90  inline void SetSubnetId(const char* value) { m_subnetIdHasBeenSet = true; m_subnetId.assign(value); }
91 
95  inline CreateMountTargetRequest& WithSubnetId(const Aws::String& value) { SetSubnetId(value); return *this;}
96 
100  inline CreateMountTargetRequest& WithSubnetId(Aws::String&& value) { SetSubnetId(value); return *this;}
101 
105  inline CreateMountTargetRequest& WithSubnetId(const char* value) { SetSubnetId(value); return *this;}
106 
110  inline const Aws::String& GetIpAddress() const{ return m_ipAddress; }
111 
115  inline void SetIpAddress(const Aws::String& value) { m_ipAddressHasBeenSet = true; m_ipAddress = value; }
116 
120  inline void SetIpAddress(Aws::String&& value) { m_ipAddressHasBeenSet = true; m_ipAddress = value; }
121 
125  inline void SetIpAddress(const char* value) { m_ipAddressHasBeenSet = true; m_ipAddress.assign(value); }
126 
130  inline CreateMountTargetRequest& WithIpAddress(const Aws::String& value) { SetIpAddress(value); return *this;}
131 
135  inline CreateMountTargetRequest& WithIpAddress(Aws::String&& value) { SetIpAddress(value); return *this;}
136 
140  inline CreateMountTargetRequest& WithIpAddress(const char* value) { SetIpAddress(value); return *this;}
141 
146  inline const Aws::Vector<Aws::String>& GetSecurityGroups() const{ return m_securityGroups; }
147 
152  inline void SetSecurityGroups(const Aws::Vector<Aws::String>& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = value; }
153 
158  inline void SetSecurityGroups(Aws::Vector<Aws::String>&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = value; }
159 
164  inline CreateMountTargetRequest& WithSecurityGroups(const Aws::Vector<Aws::String>& value) { SetSecurityGroups(value); return *this;}
165 
170  inline CreateMountTargetRequest& WithSecurityGroups(Aws::Vector<Aws::String>&& value) { SetSecurityGroups(value); return *this;}
171 
176  inline CreateMountTargetRequest& AddSecurityGroups(const Aws::String& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(value); return *this; }
177 
182  inline CreateMountTargetRequest& AddSecurityGroups(Aws::String&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(value); return *this; }
183 
188  inline CreateMountTargetRequest& AddSecurityGroups(const char* value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(value); return *this; }
189 
190  private:
191  Aws::String m_fileSystemId;
192  bool m_fileSystemIdHasBeenSet;
193  Aws::String m_subnetId;
194  bool m_subnetIdHasBeenSet;
195  Aws::String m_ipAddress;
196  bool m_ipAddressHasBeenSet;
197  Aws::Vector<Aws::String> m_securityGroups;
198  bool m_securityGroupsHasBeenSet;
199  };
200 
201 } // namespace Model
202 } // namespace EFS
203 } // namespace Aws
CreateMountTargetRequest & WithFileSystemId(const char *value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
#define AWS_EFS_API
Definition: EFS_EXPORTS.h:37
CreateMountTargetRequest & WithSecurityGroups(Aws::Vector< Aws::String > &&value)
CreateMountTargetRequest & AddSecurityGroups(Aws::String &&value)
CreateMountTargetRequest & WithFileSystemId(Aws::String &&value)
CreateMountTargetRequest & WithIpAddress(Aws::String &&value)
CreateMountTargetRequest & WithSubnetId(const char *value)
void SetFileSystemId(const Aws::String &value)
CreateMountTargetRequest & AddSecurityGroups(const char *value)
CreateMountTargetRequest & WithFileSystemId(const Aws::String &value)
void SetSecurityGroups(const Aws::Vector< Aws::String > &value)
CreateMountTargetRequest & WithIpAddress(const char *value)
void SetSecurityGroups(Aws::Vector< Aws::String > &&value)
CreateMountTargetRequest & WithIpAddress(const Aws::String &value)
const Aws::Vector< Aws::String > & GetSecurityGroups() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CreateMountTargetRequest & AddSecurityGroups(const Aws::String &value)
CreateMountTargetRequest & WithSubnetId(const Aws::String &value)
CreateMountTargetRequest & WithSubnetId(Aws::String &&value)
CreateMountTargetRequest & WithSecurityGroups(const Aws::Vector< Aws::String > &value)
JSON (JavaScript Object Notation).