AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
EbsInstanceBlockDevice.h
1
6#pragma once
7#include <aws/snow-device-management/SnowDeviceManagement_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/snow-device-management/model/AttachmentStatus.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SnowDeviceManagement
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_SNOWDEVICEMANAGEMENT_API EbsInstanceBlockDevice();
38 AWS_SNOWDEVICEMANAGEMENT_API EbsInstanceBlockDevice(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SNOWDEVICEMANAGEMENT_API EbsInstanceBlockDevice& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SNOWDEVICEMANAGEMENT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::Utils::DateTime& GetAttachTime() const{ return m_attachTime; }
48 inline bool AttachTimeHasBeenSet() const { return m_attachTimeHasBeenSet; }
49 inline void SetAttachTime(const Aws::Utils::DateTime& value) { m_attachTimeHasBeenSet = true; m_attachTime = value; }
50 inline void SetAttachTime(Aws::Utils::DateTime&& value) { m_attachTimeHasBeenSet = true; m_attachTime = std::move(value); }
51 inline EbsInstanceBlockDevice& WithAttachTime(const Aws::Utils::DateTime& value) { SetAttachTime(value); return *this;}
52 inline EbsInstanceBlockDevice& WithAttachTime(Aws::Utils::DateTime&& value) { SetAttachTime(std::move(value)); return *this;}
54
56
60 inline bool GetDeleteOnTermination() const{ return m_deleteOnTermination; }
61 inline bool DeleteOnTerminationHasBeenSet() const { return m_deleteOnTerminationHasBeenSet; }
62 inline void SetDeleteOnTermination(bool value) { m_deleteOnTerminationHasBeenSet = true; m_deleteOnTermination = value; }
63 inline EbsInstanceBlockDevice& WithDeleteOnTermination(bool value) { SetDeleteOnTermination(value); return *this;}
65
67
70 inline const AttachmentStatus& GetStatus() const{ return m_status; }
71 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
72 inline void SetStatus(const AttachmentStatus& value) { m_statusHasBeenSet = true; m_status = value; }
73 inline void SetStatus(AttachmentStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
74 inline EbsInstanceBlockDevice& WithStatus(const AttachmentStatus& value) { SetStatus(value); return *this;}
75 inline EbsInstanceBlockDevice& WithStatus(AttachmentStatus&& value) { SetStatus(std::move(value)); return *this;}
77
79
82 inline const Aws::String& GetVolumeId() const{ return m_volumeId; }
83 inline bool VolumeIdHasBeenSet() const { return m_volumeIdHasBeenSet; }
84 inline void SetVolumeId(const Aws::String& value) { m_volumeIdHasBeenSet = true; m_volumeId = value; }
85 inline void SetVolumeId(Aws::String&& value) { m_volumeIdHasBeenSet = true; m_volumeId = std::move(value); }
86 inline void SetVolumeId(const char* value) { m_volumeIdHasBeenSet = true; m_volumeId.assign(value); }
87 inline EbsInstanceBlockDevice& WithVolumeId(const Aws::String& value) { SetVolumeId(value); return *this;}
88 inline EbsInstanceBlockDevice& WithVolumeId(Aws::String&& value) { SetVolumeId(std::move(value)); return *this;}
89 inline EbsInstanceBlockDevice& WithVolumeId(const char* value) { SetVolumeId(value); return *this;}
91 private:
92
93 Aws::Utils::DateTime m_attachTime;
94 bool m_attachTimeHasBeenSet = false;
95
96 bool m_deleteOnTermination;
97 bool m_deleteOnTerminationHasBeenSet = false;
98
99 AttachmentStatus m_status;
100 bool m_statusHasBeenSet = false;
101
102 Aws::String m_volumeId;
103 bool m_volumeIdHasBeenSet = false;
104 };
105
106} // namespace Model
107} // namespace SnowDeviceManagement
108} // namespace Aws
EbsInstanceBlockDevice & WithAttachTime(Aws::Utils::DateTime &&value)
AWS_SNOWDEVICEMANAGEMENT_API EbsInstanceBlockDevice(Aws::Utils::Json::JsonView jsonValue)
EbsInstanceBlockDevice & WithVolumeId(const char *value)
EbsInstanceBlockDevice & WithStatus(const AttachmentStatus &value)
EbsInstanceBlockDevice & WithVolumeId(const Aws::String &value)
AWS_SNOWDEVICEMANAGEMENT_API EbsInstanceBlockDevice & operator=(Aws::Utils::Json::JsonView jsonValue)
EbsInstanceBlockDevice & WithVolumeId(Aws::String &&value)
EbsInstanceBlockDevice & WithStatus(AttachmentStatus &&value)
EbsInstanceBlockDevice & WithAttachTime(const Aws::Utils::DateTime &value)
AWS_SNOWDEVICEMANAGEMENT_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue