AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InstanceSnapshotInfo.h
1
6#pragma once
7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/lightsail/model/DiskInfo.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 Lightsail
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_LIGHTSAIL_API InstanceSnapshotInfo();
39 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const Aws::String& GetFromBundleId() const{ return m_fromBundleId; }
48 inline bool FromBundleIdHasBeenSet() const { return m_fromBundleIdHasBeenSet; }
49 inline void SetFromBundleId(const Aws::String& value) { m_fromBundleIdHasBeenSet = true; m_fromBundleId = value; }
50 inline void SetFromBundleId(Aws::String&& value) { m_fromBundleIdHasBeenSet = true; m_fromBundleId = std::move(value); }
51 inline void SetFromBundleId(const char* value) { m_fromBundleIdHasBeenSet = true; m_fromBundleId.assign(value); }
52 inline InstanceSnapshotInfo& WithFromBundleId(const Aws::String& value) { SetFromBundleId(value); return *this;}
53 inline InstanceSnapshotInfo& WithFromBundleId(Aws::String&& value) { SetFromBundleId(std::move(value)); return *this;}
54 inline InstanceSnapshotInfo& WithFromBundleId(const char* value) { SetFromBundleId(value); return *this;}
56
58
62 inline const Aws::String& GetFromBlueprintId() const{ return m_fromBlueprintId; }
63 inline bool FromBlueprintIdHasBeenSet() const { return m_fromBlueprintIdHasBeenSet; }
64 inline void SetFromBlueprintId(const Aws::String& value) { m_fromBlueprintIdHasBeenSet = true; m_fromBlueprintId = value; }
65 inline void SetFromBlueprintId(Aws::String&& value) { m_fromBlueprintIdHasBeenSet = true; m_fromBlueprintId = std::move(value); }
66 inline void SetFromBlueprintId(const char* value) { m_fromBlueprintIdHasBeenSet = true; m_fromBlueprintId.assign(value); }
67 inline InstanceSnapshotInfo& WithFromBlueprintId(const Aws::String& value) { SetFromBlueprintId(value); return *this;}
68 inline InstanceSnapshotInfo& WithFromBlueprintId(Aws::String&& value) { SetFromBlueprintId(std::move(value)); return *this;}
69 inline InstanceSnapshotInfo& WithFromBlueprintId(const char* value) { SetFromBlueprintId(value); return *this;}
71
73
77 inline const Aws::Vector<DiskInfo>& GetFromDiskInfo() const{ return m_fromDiskInfo; }
78 inline bool FromDiskInfoHasBeenSet() const { return m_fromDiskInfoHasBeenSet; }
79 inline void SetFromDiskInfo(const Aws::Vector<DiskInfo>& value) { m_fromDiskInfoHasBeenSet = true; m_fromDiskInfo = value; }
80 inline void SetFromDiskInfo(Aws::Vector<DiskInfo>&& value) { m_fromDiskInfoHasBeenSet = true; m_fromDiskInfo = std::move(value); }
81 inline InstanceSnapshotInfo& WithFromDiskInfo(const Aws::Vector<DiskInfo>& value) { SetFromDiskInfo(value); return *this;}
82 inline InstanceSnapshotInfo& WithFromDiskInfo(Aws::Vector<DiskInfo>&& value) { SetFromDiskInfo(std::move(value)); return *this;}
83 inline InstanceSnapshotInfo& AddFromDiskInfo(const DiskInfo& value) { m_fromDiskInfoHasBeenSet = true; m_fromDiskInfo.push_back(value); return *this; }
84 inline InstanceSnapshotInfo& AddFromDiskInfo(DiskInfo&& value) { m_fromDiskInfoHasBeenSet = true; m_fromDiskInfo.push_back(std::move(value)); return *this; }
86 private:
87
88 Aws::String m_fromBundleId;
89 bool m_fromBundleIdHasBeenSet = false;
90
91 Aws::String m_fromBlueprintId;
92 bool m_fromBlueprintIdHasBeenSet = false;
93
94 Aws::Vector<DiskInfo> m_fromDiskInfo;
95 bool m_fromDiskInfoHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace Lightsail
100} // namespace Aws
InstanceSnapshotInfo & WithFromDiskInfo(Aws::Vector< DiskInfo > &&value)
InstanceSnapshotInfo & WithFromBundleId(Aws::String &&value)
const Aws::Vector< DiskInfo > & GetFromDiskInfo() const
InstanceSnapshotInfo & WithFromDiskInfo(const Aws::Vector< DiskInfo > &value)
InstanceSnapshotInfo & WithFromBlueprintId(const Aws::String &value)
void SetFromDiskInfo(Aws::Vector< DiskInfo > &&value)
InstanceSnapshotInfo & WithFromBundleId(const char *value)
InstanceSnapshotInfo & AddFromDiskInfo(DiskInfo &&value)
AWS_LIGHTSAIL_API InstanceSnapshotInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
InstanceSnapshotInfo & WithFromBundleId(const Aws::String &value)
InstanceSnapshotInfo & WithFromBlueprintId(Aws::String &&value)
void SetFromDiskInfo(const Aws::Vector< DiskInfo > &value)
InstanceSnapshotInfo & AddFromDiskInfo(const DiskInfo &value)
void SetFromBlueprintId(const Aws::String &value)
InstanceSnapshotInfo & WithFromBlueprintId(const char *value)
void SetFromBundleId(const Aws::String &value)
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LIGHTSAIL_API InstanceSnapshotInfo(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue