AWS SDK for C++  0.12.9
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 
31  {
32  public:
34  Aws::String SerializePayload() const override;
35 
39  inline const Aws::String& GetFileSystemId() const{ return m_fileSystemId; }
40 
44  inline void SetFileSystemId(const Aws::String& value) { m_fileSystemIdHasBeenSet = true; m_fileSystemId = value; }
45 
49  inline void SetFileSystemId(Aws::String&& value) { m_fileSystemIdHasBeenSet = true; m_fileSystemId = value; }
50 
54  inline void SetFileSystemId(const char* value) { m_fileSystemIdHasBeenSet = true; m_fileSystemId.assign(value); }
55 
59  inline CreateMountTargetRequest& WithFileSystemId(const Aws::String& value) { SetFileSystemId(value); return *this;}
60 
64  inline CreateMountTargetRequest& WithFileSystemId(Aws::String&& value) { SetFileSystemId(value); return *this;}
65 
69  inline CreateMountTargetRequest& WithFileSystemId(const char* value) { SetFileSystemId(value); return *this;}
70 
74  inline const Aws::String& GetSubnetId() const{ return m_subnetId; }
75 
79  inline void SetSubnetId(const Aws::String& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; }
80 
84  inline void SetSubnetId(Aws::String&& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; }
85 
89  inline void SetSubnetId(const char* value) { m_subnetIdHasBeenSet = true; m_subnetId.assign(value); }
90 
94  inline CreateMountTargetRequest& WithSubnetId(const Aws::String& value) { SetSubnetId(value); return *this;}
95 
99  inline CreateMountTargetRequest& WithSubnetId(Aws::String&& value) { SetSubnetId(value); return *this;}
100 
104  inline CreateMountTargetRequest& WithSubnetId(const char* value) { SetSubnetId(value); return *this;}
105 
109  inline const Aws::String& GetIpAddress() const{ return m_ipAddress; }
110 
114  inline void SetIpAddress(const Aws::String& value) { m_ipAddressHasBeenSet = true; m_ipAddress = value; }
115 
119  inline void SetIpAddress(Aws::String&& value) { m_ipAddressHasBeenSet = true; m_ipAddress = value; }
120 
124  inline void SetIpAddress(const char* value) { m_ipAddressHasBeenSet = true; m_ipAddress.assign(value); }
125 
129  inline CreateMountTargetRequest& WithIpAddress(const Aws::String& value) { SetIpAddress(value); return *this;}
130 
134  inline CreateMountTargetRequest& WithIpAddress(Aws::String&& value) { SetIpAddress(value); return *this;}
135 
139  inline CreateMountTargetRequest& WithIpAddress(const char* value) { SetIpAddress(value); return *this;}
140 
145  inline const Aws::Vector<Aws::String>& GetSecurityGroups() const{ return m_securityGroups; }
146 
151  inline void SetSecurityGroups(const Aws::Vector<Aws::String>& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = value; }
152 
157  inline void SetSecurityGroups(Aws::Vector<Aws::String>&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = value; }
158 
163  inline CreateMountTargetRequest& WithSecurityGroups(const Aws::Vector<Aws::String>& value) { SetSecurityGroups(value); return *this;}
164 
169  inline CreateMountTargetRequest& WithSecurityGroups(Aws::Vector<Aws::String>&& value) { SetSecurityGroups(value); return *this;}
170 
175  inline CreateMountTargetRequest& AddSecurityGroups(const Aws::String& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(value); return *this; }
176 
181  inline CreateMountTargetRequest& AddSecurityGroups(Aws::String&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(value); return *this; }
182 
187  inline CreateMountTargetRequest& AddSecurityGroups(const char* value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(value); return *this; }
188 
189  private:
190  Aws::String m_fileSystemId;
191  bool m_fileSystemIdHasBeenSet;
192  Aws::String m_subnetId;
193  bool m_subnetIdHasBeenSet;
194  Aws::String m_ipAddress;
195  bool m_ipAddressHasBeenSet;
196  Aws::Vector<Aws::String> m_securityGroups;
197  bool m_securityGroupsHasBeenSet;
198  };
199 
200 } // namespace Model
201 } // namespace EFS
202 } // 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:34
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).