AWS SDK for C++  0.14.3
AWS SDK for C++
EbsVolume.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
18 
19 namespace Aws
20 {
21 namespace Utils
22 {
23 namespace Json
24 {
25  class JsonValue;
26 } // namespace Json
27 } // namespace Utils
28 namespace EMR
29 {
30 namespace Model
31 {
32 
37  {
38  public:
39  EbsVolume();
40  EbsVolume(const Aws::Utils::Json::JsonValue& jsonValue);
41  EbsVolume& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
42  Aws::Utils::Json::JsonValue Jsonize() const;
43 
47  inline const Aws::String& GetDevice() const{ return m_device; }
48 
52  inline void SetDevice(const Aws::String& value) { m_deviceHasBeenSet = true; m_device = value; }
53 
57  inline void SetDevice(Aws::String&& value) { m_deviceHasBeenSet = true; m_device = value; }
58 
62  inline void SetDevice(const char* value) { m_deviceHasBeenSet = true; m_device.assign(value); }
63 
67  inline EbsVolume& WithDevice(const Aws::String& value) { SetDevice(value); return *this;}
68 
72  inline EbsVolume& WithDevice(Aws::String&& value) { SetDevice(value); return *this;}
73 
77  inline EbsVolume& WithDevice(const char* value) { SetDevice(value); return *this;}
78 
82  inline const Aws::String& GetVolumeId() const{ return m_volumeId; }
83 
87  inline void SetVolumeId(const Aws::String& value) { m_volumeIdHasBeenSet = true; m_volumeId = value; }
88 
92  inline void SetVolumeId(Aws::String&& value) { m_volumeIdHasBeenSet = true; m_volumeId = value; }
93 
97  inline void SetVolumeId(const char* value) { m_volumeIdHasBeenSet = true; m_volumeId.assign(value); }
98 
102  inline EbsVolume& WithVolumeId(const Aws::String& value) { SetVolumeId(value); return *this;}
103 
107  inline EbsVolume& WithVolumeId(Aws::String&& value) { SetVolumeId(value); return *this;}
108 
112  inline EbsVolume& WithVolumeId(const char* value) { SetVolumeId(value); return *this;}
113 
114  private:
115  Aws::String m_device;
116  bool m_deviceHasBeenSet;
117  Aws::String m_volumeId;
118  bool m_volumeIdHasBeenSet;
119  };
120 
121 } // namespace Model
122 } // namespace EMR
123 } // namespace Aws
void SetVolumeId(const char *value)
Definition: EbsVolume.h:97
void SetDevice(const char *value)
Definition: EbsVolume.h:62
void SetDevice(const Aws::String &value)
Definition: EbsVolume.h:52
EbsVolume & WithVolumeId(const Aws::String &value)
Definition: EbsVolume.h:102
EbsVolume & WithVolumeId(const char *value)
Definition: EbsVolume.h:112
EbsVolume & WithVolumeId(Aws::String &&value)
Definition: EbsVolume.h:107
const Aws::String & GetVolumeId() const
Definition: EbsVolume.h:82
void SetDevice(Aws::String &&value)
Definition: EbsVolume.h:57
const Aws::String & GetDevice() const
Definition: EbsVolume.h:47
EbsVolume & WithDevice(Aws::String &&value)
Definition: EbsVolume.h:72
EbsVolume & WithDevice(const char *value)
Definition: EbsVolume.h:77
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetVolumeId(Aws::String &&value)
Definition: EbsVolume.h:92
EbsVolume & WithDevice(const Aws::String &value)
Definition: EbsVolume.h:67
#define AWS_EMR_API
Definition: EMR_EXPORTS.h:37
void SetVolumeId(const Aws::String &value)
Definition: EbsVolume.h:87
JSON (JavaScript Object Notation).