AWS SDK for C++  1.9.20
AWS SDK for C++
EbsBlockDevice.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace EMR
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
46  inline const VolumeSpecification& GetVolumeSpecification() const{ return m_volumeSpecification; }
47 
52  inline bool VolumeSpecificationHasBeenSet() const { return m_volumeSpecificationHasBeenSet; }
53 
58  inline void SetVolumeSpecification(const VolumeSpecification& value) { m_volumeSpecificationHasBeenSet = true; m_volumeSpecification = value; }
59 
64  inline void SetVolumeSpecification(VolumeSpecification&& value) { m_volumeSpecificationHasBeenSet = true; m_volumeSpecification = std::move(value); }
65 
70  inline EbsBlockDevice& WithVolumeSpecification(const VolumeSpecification& value) { SetVolumeSpecification(value); return *this;}
71 
76  inline EbsBlockDevice& WithVolumeSpecification(VolumeSpecification&& value) { SetVolumeSpecification(std::move(value)); return *this;}
77 
78 
82  inline const Aws::String& GetDevice() const{ return m_device; }
83 
87  inline bool DeviceHasBeenSet() const { return m_deviceHasBeenSet; }
88 
92  inline void SetDevice(const Aws::String& value) { m_deviceHasBeenSet = true; m_device = value; }
93 
97  inline void SetDevice(Aws::String&& value) { m_deviceHasBeenSet = true; m_device = std::move(value); }
98 
102  inline void SetDevice(const char* value) { m_deviceHasBeenSet = true; m_device.assign(value); }
103 
107  inline EbsBlockDevice& WithDevice(const Aws::String& value) { SetDevice(value); return *this;}
108 
112  inline EbsBlockDevice& WithDevice(Aws::String&& value) { SetDevice(std::move(value)); return *this;}
113 
117  inline EbsBlockDevice& WithDevice(const char* value) { SetDevice(value); return *this;}
118 
119  private:
120 
121  VolumeSpecification m_volumeSpecification;
122  bool m_volumeSpecificationHasBeenSet;
123 
124  Aws::String m_device;
125  bool m_deviceHasBeenSet;
126  };
127 
128 } // namespace Model
129 } // namespace EMR
130 } // namespace Aws
Aws::EMR::Model::EbsBlockDevice::VolumeSpecificationHasBeenSet
bool VolumeSpecificationHasBeenSet() const
Definition: EbsBlockDevice.h:52
Aws::EMR::Model::EbsBlockDevice::WithVolumeSpecification
EbsBlockDevice & WithVolumeSpecification(VolumeSpecification &&value)
Definition: EbsBlockDevice.h:76
EMR_EXPORTS.h
Aws::EMR::Model::VolumeSpecification
Definition: VolumeSpecification.h:34
Aws::EMR::Model::EbsBlockDevice::WithDevice
EbsBlockDevice & WithDevice(const Aws::String &value)
Definition: EbsBlockDevice.h:107
Aws::EMR::Model::EbsBlockDevice
Definition: EbsBlockDevice.h:34
Aws::EMR::Model::EbsBlockDevice::GetVolumeSpecification
const VolumeSpecification & GetVolumeSpecification() const
Definition: EbsBlockDevice.h:46
Aws::EMR::Model::EbsBlockDevice::GetDevice
const Aws::String & GetDevice() const
Definition: EbsBlockDevice.h:82
Aws::EMR::Model::EbsBlockDevice::DeviceHasBeenSet
bool DeviceHasBeenSet() const
Definition: EbsBlockDevice.h:87
Aws::EMR::Model::EbsBlockDevice::EbsBlockDevice
EbsBlockDevice(Aws::Utils::Json::JsonView jsonValue)
Aws::EMR::Model::EbsBlockDevice::SetDevice
void SetDevice(const Aws::String &value)
Definition: EbsBlockDevice.h:92
VolumeSpecification.h
Aws::EMR::Model::ExecutionEngineType::NOT_SET
@ NOT_SET
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::EMR::Model::EbsBlockDevice::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::EMR::Model::EbsBlockDevice::WithVolumeSpecification
EbsBlockDevice & WithVolumeSpecification(const VolumeSpecification &value)
Definition: EbsBlockDevice.h:70
Aws::EMR::Model::EbsBlockDevice::SetDevice
void SetDevice(const char *value)
Definition: EbsBlockDevice.h:102
Aws
Definition: AccessManagementClient.h:15
Aws::EMR::Model::EbsBlockDevice::WithDevice
EbsBlockDevice & WithDevice(Aws::String &&value)
Definition: EbsBlockDevice.h:112
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EMR::Model::EbsBlockDevice::SetDevice
void SetDevice(Aws::String &&value)
Definition: EbsBlockDevice.h:97
Aws::EMR::Model::EbsBlockDevice::SetVolumeSpecification
void SetVolumeSpecification(const VolumeSpecification &value)
Definition: EbsBlockDevice.h:58
Aws::EMR::Model::EbsBlockDevice::EbsBlockDevice
EbsBlockDevice()
Aws::EMR::Model::EbsBlockDevice::operator=
EbsBlockDevice & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::EMR::Model::EbsBlockDevice::SetVolumeSpecification
void SetVolumeSpecification(VolumeSpecification &&value)
Definition: EbsBlockDevice.h:64
AWS_EMR_API
#define AWS_EMR_API
Definition: EMR_EXPORTS.h:28
Aws::EMR::Model::EbsBlockDevice::WithDevice
EbsBlockDevice & WithDevice(const char *value)
Definition: EbsBlockDevice.h:117