AWS SDK for C++  0.12.9
AWS SDK for C++
AttachVolumeRequest.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/ec2/EC2_EXPORTS.h>
17 #include <aws/ec2/EC2Request.h>
19 
20 namespace Aws
21 {
22 namespace EC2
23 {
24 namespace Model
25 {
26 
31  {
32  public:
34  Aws::String SerializePayload() const override;
35 
42  inline bool GetDryRun() const{ return m_dryRun; }
43 
50  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
51 
58  inline AttachVolumeRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
59 
64  inline const Aws::String& GetVolumeId() const{ return m_volumeId; }
65 
70  inline void SetVolumeId(const Aws::String& value) { m_volumeIdHasBeenSet = true; m_volumeId = value; }
71 
76  inline void SetVolumeId(Aws::String&& value) { m_volumeIdHasBeenSet = true; m_volumeId = value; }
77 
82  inline void SetVolumeId(const char* value) { m_volumeIdHasBeenSet = true; m_volumeId.assign(value); }
83 
88  inline AttachVolumeRequest& WithVolumeId(const Aws::String& value) { SetVolumeId(value); return *this;}
89 
94  inline AttachVolumeRequest& WithVolumeId(Aws::String&& value) { SetVolumeId(value); return *this;}
95 
100  inline AttachVolumeRequest& WithVolumeId(const char* value) { SetVolumeId(value); return *this;}
101 
105  inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
106 
110  inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
111 
115  inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
116 
120  inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
121 
125  inline AttachVolumeRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
126 
130  inline AttachVolumeRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(value); return *this;}
131 
135  inline AttachVolumeRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
136 
141  inline const Aws::String& GetDevice() const{ return m_device; }
142 
147  inline void SetDevice(const Aws::String& value) { m_deviceHasBeenSet = true; m_device = value; }
148 
153  inline void SetDevice(Aws::String&& value) { m_deviceHasBeenSet = true; m_device = value; }
154 
159  inline void SetDevice(const char* value) { m_deviceHasBeenSet = true; m_device.assign(value); }
160 
165  inline AttachVolumeRequest& WithDevice(const Aws::String& value) { SetDevice(value); return *this;}
166 
171  inline AttachVolumeRequest& WithDevice(Aws::String&& value) { SetDevice(value); return *this;}
172 
177  inline AttachVolumeRequest& WithDevice(const char* value) { SetDevice(value); return *this;}
178 
179  private:
180  bool m_dryRun;
181  bool m_dryRunHasBeenSet;
182  Aws::String m_volumeId;
183  bool m_volumeIdHasBeenSet;
184  Aws::String m_instanceId;
185  bool m_instanceIdHasBeenSet;
186  Aws::String m_device;
187  bool m_deviceHasBeenSet;
188  };
189 
190 } // namespace Model
191 } // namespace EC2
192 } // namespace Aws
AttachVolumeRequest & WithDryRun(bool value)
const Aws::String & GetDevice() const
void SetVolumeId(const Aws::String &value)
AttachVolumeRequest & WithDevice(const char *value)
const Aws::String & GetInstanceId() const
AttachVolumeRequest & WithDevice(const Aws::String &value)
const Aws::String & GetVolumeId() const
void SetInstanceId(Aws::String &&value)
AttachVolumeRequest & WithInstanceId(const char *value)
void SetDevice(const Aws::String &value)
AttachVolumeRequest & WithInstanceId(const Aws::String &value)
AttachVolumeRequest & WithVolumeId(Aws::String &&value)
void SetVolumeId(Aws::String &&value)
AttachVolumeRequest & WithInstanceId(Aws::String &&value)
AttachVolumeRequest & WithDevice(Aws::String &&value)
AttachVolumeRequest & WithVolumeId(const Aws::String &value)
AttachVolumeRequest & WithVolumeId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:34
void SetInstanceId(const Aws::String &value)
JSON (JavaScript Object Notation).