AWS SDK for C++  0.14.3
AWS SDK for C++
CreateVirtualMFADeviceRequest.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
16 #include <aws/iam/IAM_EXPORTS.h>
17 #include <aws/iam/IAMRequest.h>
19 
20 namespace Aws
21 {
22 namespace IAM
23 {
24 namespace Model
25 {
26 
30  {
31  public:
33  Aws::String SerializePayload() const override;
34 
47  inline const Aws::String& GetPath() const{ return m_path; }
48 
61  inline void SetPath(const Aws::String& value) { m_pathHasBeenSet = true; m_path = value; }
62 
75  inline void SetPath(Aws::String&& value) { m_pathHasBeenSet = true; m_path = value; }
76 
89  inline void SetPath(const char* value) { m_pathHasBeenSet = true; m_path.assign(value); }
90 
103  inline CreateVirtualMFADeviceRequest& WithPath(const Aws::String& value) { SetPath(value); return *this;}
104 
117  inline CreateVirtualMFADeviceRequest& WithPath(Aws::String&& value) { SetPath(value); return *this;}
118 
131  inline CreateVirtualMFADeviceRequest& WithPath(const char* value) { SetPath(value); return *this;}
132 
140  inline const Aws::String& GetVirtualMFADeviceName() const{ return m_virtualMFADeviceName; }
141 
149  inline void SetVirtualMFADeviceName(const Aws::String& value) { m_virtualMFADeviceNameHasBeenSet = true; m_virtualMFADeviceName = value; }
150 
158  inline void SetVirtualMFADeviceName(Aws::String&& value) { m_virtualMFADeviceNameHasBeenSet = true; m_virtualMFADeviceName = value; }
159 
167  inline void SetVirtualMFADeviceName(const char* value) { m_virtualMFADeviceNameHasBeenSet = true; m_virtualMFADeviceName.assign(value); }
168 
176  inline CreateVirtualMFADeviceRequest& WithVirtualMFADeviceName(const Aws::String& value) { SetVirtualMFADeviceName(value); return *this;}
177 
185  inline CreateVirtualMFADeviceRequest& WithVirtualMFADeviceName(Aws::String&& value) { SetVirtualMFADeviceName(value); return *this;}
186 
194  inline CreateVirtualMFADeviceRequest& WithVirtualMFADeviceName(const char* value) { SetVirtualMFADeviceName(value); return *this;}
195 
196  private:
197  Aws::String m_path;
198  bool m_pathHasBeenSet;
199  Aws::String m_virtualMFADeviceName;
200  bool m_virtualMFADeviceNameHasBeenSet;
201  };
202 
203 } // namespace Model
204 } // namespace IAM
205 } // namespace Aws
CreateVirtualMFADeviceRequest & WithPath(const char *value)
CreateVirtualMFADeviceRequest & WithVirtualMFADeviceName(const Aws::String &value)
CreateVirtualMFADeviceRequest & WithVirtualMFADeviceName(Aws::String &&value)
CreateVirtualMFADeviceRequest & WithPath(Aws::String &&value)
CreateVirtualMFADeviceRequest & WithVirtualMFADeviceName(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_IAM_API
Definition: IAM_EXPORTS.h:37
CreateVirtualMFADeviceRequest & WithPath(const Aws::String &value)
JSON (JavaScript Object Notation).