AWS SDK for C++  0.14.3
AWS SDK for C++
DetachVolumeRequest.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 DetachVolumeRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
59 
63  inline const Aws::String& GetVolumeId() const{ return m_volumeId; }
64 
68  inline void SetVolumeId(const Aws::String& value) { m_volumeIdHasBeenSet = true; m_volumeId = value; }
69 
73  inline void SetVolumeId(Aws::String&& value) { m_volumeIdHasBeenSet = true; m_volumeId = value; }
74 
78  inline void SetVolumeId(const char* value) { m_volumeIdHasBeenSet = true; m_volumeId.assign(value); }
79 
83  inline DetachVolumeRequest& WithVolumeId(const Aws::String& value) { SetVolumeId(value); return *this;}
84 
88  inline DetachVolumeRequest& WithVolumeId(Aws::String&& value) { SetVolumeId(value); return *this;}
89 
93  inline DetachVolumeRequest& WithVolumeId(const char* value) { SetVolumeId(value); return *this;}
94 
98  inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
99 
103  inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
104 
108  inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
109 
113  inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
114 
118  inline DetachVolumeRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
119 
123  inline DetachVolumeRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(value); return *this;}
124 
128  inline DetachVolumeRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
129 
133  inline const Aws::String& GetDevice() const{ return m_device; }
134 
138  inline void SetDevice(const Aws::String& value) { m_deviceHasBeenSet = true; m_device = value; }
139 
143  inline void SetDevice(Aws::String&& value) { m_deviceHasBeenSet = true; m_device = value; }
144 
148  inline void SetDevice(const char* value) { m_deviceHasBeenSet = true; m_device.assign(value); }
149 
153  inline DetachVolumeRequest& WithDevice(const Aws::String& value) { SetDevice(value); return *this;}
154 
158  inline DetachVolumeRequest& WithDevice(Aws::String&& value) { SetDevice(value); return *this;}
159 
163  inline DetachVolumeRequest& WithDevice(const char* value) { SetDevice(value); return *this;}
164 
174  inline bool GetForce() const{ return m_force; }
175 
185  inline void SetForce(bool value) { m_forceHasBeenSet = true; m_force = value; }
186 
196  inline DetachVolumeRequest& WithForce(bool value) { SetForce(value); return *this;}
197 
198  private:
199  bool m_dryRun;
200  bool m_dryRunHasBeenSet;
201  Aws::String m_volumeId;
202  bool m_volumeIdHasBeenSet;
203  Aws::String m_instanceId;
204  bool m_instanceIdHasBeenSet;
205  Aws::String m_device;
206  bool m_deviceHasBeenSet;
207  bool m_force;
208  bool m_forceHasBeenSet;
209  };
210 
211 } // namespace Model
212 } // namespace EC2
213 } // namespace Aws
const Aws::String & GetInstanceId() const
void SetInstanceId(const Aws::String &value)
DetachVolumeRequest & WithDevice(Aws::String &&value)
DetachVolumeRequest & WithVolumeId(const char *value)
DetachVolumeRequest & WithInstanceId(const Aws::String &value)
DetachVolumeRequest & WithVolumeId(const Aws::String &value)
DetachVolumeRequest & WithDryRun(bool value)
void SetInstanceId(Aws::String &&value)
DetachVolumeRequest & WithDevice(const char *value)
void SetVolumeId(Aws::String &&value)
const Aws::String & GetDevice() const
DetachVolumeRequest & WithVolumeId(Aws::String &&value)
DetachVolumeRequest & WithForce(bool value)
DetachVolumeRequest & WithInstanceId(const char *value)
DetachVolumeRequest & WithInstanceId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetDevice(const Aws::String &value)
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:37
void SetVolumeId(const Aws::String &value)
const Aws::String & GetVolumeId() const
DetachVolumeRequest & WithDevice(const Aws::String &value)
JSON (JavaScript Object Notation).