AWS SDK for C++  1.9.105
AWS SDK for C++
InstanceSnapshotInfo.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace Lightsail
24 {
25 namespace Model
26 {
27 
34  {
35  public:
40 
41 
46  inline const Aws::String& GetFromBundleId() const{ return m_fromBundleId; }
47 
52  inline bool FromBundleIdHasBeenSet() const { return m_fromBundleIdHasBeenSet; }
53 
58  inline void SetFromBundleId(const Aws::String& value) { m_fromBundleIdHasBeenSet = true; m_fromBundleId = value; }
59 
64  inline void SetFromBundleId(Aws::String&& value) { m_fromBundleIdHasBeenSet = true; m_fromBundleId = std::move(value); }
65 
70  inline void SetFromBundleId(const char* value) { m_fromBundleIdHasBeenSet = true; m_fromBundleId.assign(value); }
71 
76  inline InstanceSnapshotInfo& WithFromBundleId(const Aws::String& value) { SetFromBundleId(value); return *this;}
77 
82  inline InstanceSnapshotInfo& WithFromBundleId(Aws::String&& value) { SetFromBundleId(std::move(value)); return *this;}
83 
88  inline InstanceSnapshotInfo& WithFromBundleId(const char* value) { SetFromBundleId(value); return *this;}
89 
90 
95  inline const Aws::String& GetFromBlueprintId() const{ return m_fromBlueprintId; }
96 
101  inline bool FromBlueprintIdHasBeenSet() const { return m_fromBlueprintIdHasBeenSet; }
102 
107  inline void SetFromBlueprintId(const Aws::String& value) { m_fromBlueprintIdHasBeenSet = true; m_fromBlueprintId = value; }
108 
113  inline void SetFromBlueprintId(Aws::String&& value) { m_fromBlueprintIdHasBeenSet = true; m_fromBlueprintId = std::move(value); }
114 
119  inline void SetFromBlueprintId(const char* value) { m_fromBlueprintIdHasBeenSet = true; m_fromBlueprintId.assign(value); }
120 
125  inline InstanceSnapshotInfo& WithFromBlueprintId(const Aws::String& value) { SetFromBlueprintId(value); return *this;}
126 
131  inline InstanceSnapshotInfo& WithFromBlueprintId(Aws::String&& value) { SetFromBlueprintId(std::move(value)); return *this;}
132 
137  inline InstanceSnapshotInfo& WithFromBlueprintId(const char* value) { SetFromBlueprintId(value); return *this;}
138 
139 
144  inline const Aws::Vector<DiskInfo>& GetFromDiskInfo() const{ return m_fromDiskInfo; }
145 
150  inline bool FromDiskInfoHasBeenSet() const { return m_fromDiskInfoHasBeenSet; }
151 
156  inline void SetFromDiskInfo(const Aws::Vector<DiskInfo>& value) { m_fromDiskInfoHasBeenSet = true; m_fromDiskInfo = value; }
157 
162  inline void SetFromDiskInfo(Aws::Vector<DiskInfo>&& value) { m_fromDiskInfoHasBeenSet = true; m_fromDiskInfo = std::move(value); }
163 
168  inline InstanceSnapshotInfo& WithFromDiskInfo(const Aws::Vector<DiskInfo>& value) { SetFromDiskInfo(value); return *this;}
169 
174  inline InstanceSnapshotInfo& WithFromDiskInfo(Aws::Vector<DiskInfo>&& value) { SetFromDiskInfo(std::move(value)); return *this;}
175 
180  inline InstanceSnapshotInfo& AddFromDiskInfo(const DiskInfo& value) { m_fromDiskInfoHasBeenSet = true; m_fromDiskInfo.push_back(value); return *this; }
181 
186  inline InstanceSnapshotInfo& AddFromDiskInfo(DiskInfo&& value) { m_fromDiskInfoHasBeenSet = true; m_fromDiskInfo.push_back(std::move(value)); return *this; }
187 
188  private:
189 
190  Aws::String m_fromBundleId;
191  bool m_fromBundleIdHasBeenSet;
192 
193  Aws::String m_fromBlueprintId;
194  bool m_fromBlueprintIdHasBeenSet;
195 
196  Aws::Vector<DiskInfo> m_fromDiskInfo;
197  bool m_fromDiskInfoHasBeenSet;
198  };
199 
200 } // namespace Model
201 } // namespace Lightsail
202 } // namespace Aws
Aws::Lightsail::Model::InstanceSnapshotInfo::InstanceSnapshotInfo
InstanceSnapshotInfo()
Aws::Lightsail::Model::InstanceSnapshotInfo::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
DiskInfo.h
Aws::Lightsail::Model::InstanceSnapshotInfo::GetFromBundleId
const Aws::String & GetFromBundleId() const
Definition: InstanceSnapshotInfo.h:46
Aws::Lightsail::Model::InstanceSnapshotInfo::SetFromBundleId
void SetFromBundleId(const Aws::String &value)
Definition: InstanceSnapshotInfo.h:58
Aws::Lightsail::Model::InstanceSnapshotInfo::SetFromBlueprintId
void SetFromBlueprintId(const char *value)
Definition: InstanceSnapshotInfo.h:119
Aws::Lightsail::Model::InstanceSnapshotInfo::SetFromBlueprintId
void SetFromBlueprintId(const Aws::String &value)
Definition: InstanceSnapshotInfo.h:107
Aws::Lightsail::Model::InstanceSnapshotInfo::SetFromDiskInfo
void SetFromDiskInfo(Aws::Vector< DiskInfo > &&value)
Definition: InstanceSnapshotInfo.h:162
Aws::Lightsail::Model::InstanceSnapshotInfo::FromDiskInfoHasBeenSet
bool FromDiskInfoHasBeenSet() const
Definition: InstanceSnapshotInfo.h:150
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Lightsail::Model::InstanceSnapshotInfo::operator=
InstanceSnapshotInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Lightsail::Model::InstanceSnapshotInfo::WithFromBlueprintId
InstanceSnapshotInfo & WithFromBlueprintId(const char *value)
Definition: InstanceSnapshotInfo.h:137
Aws::Lightsail::Model::InstanceSnapshotInfo::SetFromDiskInfo
void SetFromDiskInfo(const Aws::Vector< DiskInfo > &value)
Definition: InstanceSnapshotInfo.h:156
Aws::Lightsail::Model::InstanceSnapshotInfo::GetFromDiskInfo
const Aws::Vector< DiskInfo > & GetFromDiskInfo() const
Definition: InstanceSnapshotInfo.h:144
AWSVector.h
Aws::Lightsail::Model::InstanceSnapshotInfo::SetFromBundleId
void SetFromBundleId(Aws::String &&value)
Definition: InstanceSnapshotInfo.h:64
Aws::Lightsail::Model::InstanceSnapshotInfo::WithFromBlueprintId
InstanceSnapshotInfo & WithFromBlueprintId(Aws::String &&value)
Definition: InstanceSnapshotInfo.h:131
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Lightsail::Model::InstanceSnapshotInfo::FromBlueprintIdHasBeenSet
bool FromBlueprintIdHasBeenSet() const
Definition: InstanceSnapshotInfo.h:101
Lightsail_EXPORTS.h
Aws::Lightsail::Model::InstanceSnapshotInfo::WithFromBundleId
InstanceSnapshotInfo & WithFromBundleId(const char *value)
Definition: InstanceSnapshotInfo.h:88
Aws::Lightsail::Model::InstanceSnapshotInfo
Definition: InstanceSnapshotInfo.h:34
Aws::Lightsail::Model::DiskInfo
Definition: DiskInfo.h:32
Aws::Lightsail::Model::InstanceSnapshotInfo::AddFromDiskInfo
InstanceSnapshotInfo & AddFromDiskInfo(const DiskInfo &value)
Definition: InstanceSnapshotInfo.h:180
Aws::Lightsail::Model::InstanceSnapshotInfo::SetFromBlueprintId
void SetFromBlueprintId(Aws::String &&value)
Definition: InstanceSnapshotInfo.h:113
Aws::Lightsail::Model::InstanceSnapshotInfo::WithFromBlueprintId
InstanceSnapshotInfo & WithFromBlueprintId(const Aws::String &value)
Definition: InstanceSnapshotInfo.h:125
Aws
Definition: AccessManagementClient.h:15
Aws::Lightsail::Model::InstanceSnapshotInfo::AddFromDiskInfo
InstanceSnapshotInfo & AddFromDiskInfo(DiskInfo &&value)
Definition: InstanceSnapshotInfo.h:186
Aws::Lightsail::Model::InstanceSnapshotInfo::WithFromDiskInfo
InstanceSnapshotInfo & WithFromDiskInfo(const Aws::Vector< DiskInfo > &value)
Definition: InstanceSnapshotInfo.h:168
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lightsail::Model::InstanceSnapshotInfo::WithFromBundleId
InstanceSnapshotInfo & WithFromBundleId(const Aws::String &value)
Definition: InstanceSnapshotInfo.h:76
Aws::Lightsail::Model::InstanceSnapshotInfo::SetFromBundleId
void SetFromBundleId(const char *value)
Definition: InstanceSnapshotInfo.h:70
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::InstanceSnapshotInfo::GetFromBlueprintId
const Aws::String & GetFromBlueprintId() const
Definition: InstanceSnapshotInfo.h:95
Aws::Lightsail::Model::InstanceSnapshotInfo::WithFromDiskInfo
InstanceSnapshotInfo & WithFromDiskInfo(Aws::Vector< DiskInfo > &&value)
Definition: InstanceSnapshotInfo.h:174
Aws::Lightsail::Model::InstanceSnapshotInfo::InstanceSnapshotInfo
InstanceSnapshotInfo(Aws::Utils::Json::JsonView jsonValue)
Aws::Lightsail::Model::InstanceSnapshotInfo::FromBundleIdHasBeenSet
bool FromBundleIdHasBeenSet() const
Definition: InstanceSnapshotInfo.h:52
Aws::Lightsail::Model::InstanceSnapshotInfo::WithFromBundleId
InstanceSnapshotInfo & WithFromBundleId(Aws::String &&value)
Definition: InstanceSnapshotInfo.h:82