AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
EbsBlockDevice.h
1
6#pragma once
7#include <aws/elasticmapreduce/EMR_EXPORTS.h>
8#include <aws/elasticmapreduce/model/VolumeSpecification.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace EMR
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_EMR_API EbsBlockDevice();
40
41
43
48 inline const VolumeSpecification& GetVolumeSpecification() const{ return m_volumeSpecification; }
49 inline bool VolumeSpecificationHasBeenSet() const { return m_volumeSpecificationHasBeenSet; }
50 inline void SetVolumeSpecification(const VolumeSpecification& value) { m_volumeSpecificationHasBeenSet = true; m_volumeSpecification = value; }
51 inline void SetVolumeSpecification(VolumeSpecification&& value) { m_volumeSpecificationHasBeenSet = true; m_volumeSpecification = std::move(value); }
53 inline EbsBlockDevice& WithVolumeSpecification(VolumeSpecification&& value) { SetVolumeSpecification(std::move(value)); return *this;}
55
57
60 inline const Aws::String& GetDevice() const{ return m_device; }
61 inline bool DeviceHasBeenSet() const { return m_deviceHasBeenSet; }
62 inline void SetDevice(const Aws::String& value) { m_deviceHasBeenSet = true; m_device = value; }
63 inline void SetDevice(Aws::String&& value) { m_deviceHasBeenSet = true; m_device = std::move(value); }
64 inline void SetDevice(const char* value) { m_deviceHasBeenSet = true; m_device.assign(value); }
65 inline EbsBlockDevice& WithDevice(const Aws::String& value) { SetDevice(value); return *this;}
66 inline EbsBlockDevice& WithDevice(Aws::String&& value) { SetDevice(std::move(value)); return *this;}
67 inline EbsBlockDevice& WithDevice(const char* value) { SetDevice(value); return *this;}
69 private:
70
71 VolumeSpecification m_volumeSpecification;
72 bool m_volumeSpecificationHasBeenSet = false;
73
74 Aws::String m_device;
75 bool m_deviceHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace EMR
80} // namespace Aws
void SetVolumeSpecification(VolumeSpecification &&value)
EbsBlockDevice & WithDevice(Aws::String &&value)
void SetVolumeSpecification(const VolumeSpecification &value)
void SetDevice(Aws::String &&value)
AWS_EMR_API EbsBlockDevice(Aws::Utils::Json::JsonView jsonValue)
void SetDevice(const char *value)
EbsBlockDevice & WithDevice(const char *value)
AWS_EMR_API EbsBlockDevice & operator=(Aws::Utils::Json::JsonView jsonValue)
const VolumeSpecification & GetVolumeSpecification() const
void SetDevice(const Aws::String &value)
EbsBlockDevice & WithVolumeSpecification(VolumeSpecification &&value)
EbsBlockDevice & WithDevice(const Aws::String &value)
AWS_EMR_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetDevice() const
EbsBlockDevice & WithVolumeSpecification(const VolumeSpecification &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue