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/opsworks/OpsWorks_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/opsworks/model/VolumeType.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 OpsWorks
23{
24namespace Model
25{
26
36 {
37 public:
38 AWS_OPSWORKS_API EbsBlockDevice();
39 AWS_OPSWORKS_API EbsBlockDevice(Aws::Utils::Json::JsonView jsonValue);
41 AWS_OPSWORKS_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetSnapshotId() const{ return m_snapshotId; }
49 inline bool SnapshotIdHasBeenSet() const { return m_snapshotIdHasBeenSet; }
50 inline void SetSnapshotId(const Aws::String& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = value; }
51 inline void SetSnapshotId(Aws::String&& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = std::move(value); }
52 inline void SetSnapshotId(const char* value) { m_snapshotIdHasBeenSet = true; m_snapshotId.assign(value); }
53 inline EbsBlockDevice& WithSnapshotId(const Aws::String& value) { SetSnapshotId(value); return *this;}
54 inline EbsBlockDevice& WithSnapshotId(Aws::String&& value) { SetSnapshotId(std::move(value)); return *this;}
55 inline EbsBlockDevice& WithSnapshotId(const char* value) { SetSnapshotId(value); return *this;}
57
59
64 inline int GetIops() const{ return m_iops; }
65 inline bool IopsHasBeenSet() const { return m_iopsHasBeenSet; }
66 inline void SetIops(int value) { m_iopsHasBeenSet = true; m_iops = value; }
67 inline EbsBlockDevice& WithIops(int value) { SetIops(value); return *this;}
69
71
75 inline int GetVolumeSize() const{ return m_volumeSize; }
76 inline bool VolumeSizeHasBeenSet() const { return m_volumeSizeHasBeenSet; }
77 inline void SetVolumeSize(int value) { m_volumeSizeHasBeenSet = true; m_volumeSize = value; }
78 inline EbsBlockDevice& WithVolumeSize(int value) { SetVolumeSize(value); return *this;}
80
82
92 inline const VolumeType& GetVolumeType() const{ return m_volumeType; }
93 inline bool VolumeTypeHasBeenSet() const { return m_volumeTypeHasBeenSet; }
94 inline void SetVolumeType(const VolumeType& value) { m_volumeTypeHasBeenSet = true; m_volumeType = value; }
95 inline void SetVolumeType(VolumeType&& value) { m_volumeTypeHasBeenSet = true; m_volumeType = std::move(value); }
96 inline EbsBlockDevice& WithVolumeType(const VolumeType& value) { SetVolumeType(value); return *this;}
97 inline EbsBlockDevice& WithVolumeType(VolumeType&& value) { SetVolumeType(std::move(value)); return *this;}
99
101
104 inline bool GetDeleteOnTermination() const{ return m_deleteOnTermination; }
105 inline bool DeleteOnTerminationHasBeenSet() const { return m_deleteOnTerminationHasBeenSet; }
106 inline void SetDeleteOnTermination(bool value) { m_deleteOnTerminationHasBeenSet = true; m_deleteOnTermination = value; }
107 inline EbsBlockDevice& WithDeleteOnTermination(bool value) { SetDeleteOnTermination(value); return *this;}
109 private:
110
111 Aws::String m_snapshotId;
112 bool m_snapshotIdHasBeenSet = false;
113
114 int m_iops;
115 bool m_iopsHasBeenSet = false;
116
117 int m_volumeSize;
118 bool m_volumeSizeHasBeenSet = false;
119
120 VolumeType m_volumeType;
121 bool m_volumeTypeHasBeenSet = false;
122
123 bool m_deleteOnTermination;
124 bool m_deleteOnTerminationHasBeenSet = false;
125 };
126
127} // namespace Model
128} // namespace OpsWorks
129} // namespace Aws
AWS_OPSWORKS_API Aws::Utils::Json::JsonValue Jsonize() const
EbsBlockDevice & WithSnapshotId(const char *value)
void SetSnapshotId(const char *value)
void SetVolumeType(const VolumeType &value)
const Aws::String & GetSnapshotId() const
const VolumeType & GetVolumeType() const
void SetSnapshotId(const Aws::String &value)
EbsBlockDevice & WithVolumeSize(int value)
EbsBlockDevice & WithSnapshotId(const Aws::String &value)
AWS_OPSWORKS_API EbsBlockDevice(Aws::Utils::Json::JsonView jsonValue)
EbsBlockDevice & WithDeleteOnTermination(bool value)
EbsBlockDevice & WithIops(int value)
EbsBlockDevice & WithVolumeType(const VolumeType &value)
void SetSnapshotId(Aws::String &&value)
EbsBlockDevice & WithVolumeType(VolumeType &&value)
void SetVolumeType(VolumeType &&value)
EbsBlockDevice & WithSnapshotId(Aws::String &&value)
AWS_OPSWORKS_API EbsBlockDevice & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue