AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DiskMap.h
1
6#pragma once
7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Lightsail
22{
23namespace Model
24{
25
31 class DiskMap
32 {
33 public:
34 AWS_LIGHTSAIL_API DiskMap();
35 AWS_LIGHTSAIL_API DiskMap(Aws::Utils::Json::JsonView jsonValue);
36 AWS_LIGHTSAIL_API DiskMap& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
45 inline const Aws::String& GetOriginalDiskPath() const{ return m_originalDiskPath; }
46 inline bool OriginalDiskPathHasBeenSet() const { return m_originalDiskPathHasBeenSet; }
47 inline void SetOriginalDiskPath(const Aws::String& value) { m_originalDiskPathHasBeenSet = true; m_originalDiskPath = value; }
48 inline void SetOriginalDiskPath(Aws::String&& value) { m_originalDiskPathHasBeenSet = true; m_originalDiskPath = std::move(value); }
49 inline void SetOriginalDiskPath(const char* value) { m_originalDiskPathHasBeenSet = true; m_originalDiskPath.assign(value); }
50 inline DiskMap& WithOriginalDiskPath(const Aws::String& value) { SetOriginalDiskPath(value); return *this;}
51 inline DiskMap& WithOriginalDiskPath(Aws::String&& value) { SetOriginalDiskPath(std::move(value)); return *this;}
52 inline DiskMap& WithOriginalDiskPath(const char* value) { SetOriginalDiskPath(value); return *this;}
54
56
59 inline const Aws::String& GetNewDiskName() const{ return m_newDiskName; }
60 inline bool NewDiskNameHasBeenSet() const { return m_newDiskNameHasBeenSet; }
61 inline void SetNewDiskName(const Aws::String& value) { m_newDiskNameHasBeenSet = true; m_newDiskName = value; }
62 inline void SetNewDiskName(Aws::String&& value) { m_newDiskNameHasBeenSet = true; m_newDiskName = std::move(value); }
63 inline void SetNewDiskName(const char* value) { m_newDiskNameHasBeenSet = true; m_newDiskName.assign(value); }
64 inline DiskMap& WithNewDiskName(const Aws::String& value) { SetNewDiskName(value); return *this;}
65 inline DiskMap& WithNewDiskName(Aws::String&& value) { SetNewDiskName(std::move(value)); return *this;}
66 inline DiskMap& WithNewDiskName(const char* value) { SetNewDiskName(value); return *this;}
68 private:
69
70 Aws::String m_originalDiskPath;
71 bool m_originalDiskPathHasBeenSet = false;
72
73 Aws::String m_newDiskName;
74 bool m_newDiskNameHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace Lightsail
79} // namespace Aws
AWS_LIGHTSAIL_API DiskMap(Aws::Utils::Json::JsonView jsonValue)
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
bool OriginalDiskPathHasBeenSet() const
Definition DiskMap.h:46
DiskMap & WithOriginalDiskPath(const Aws::String &value)
Definition DiskMap.h:50
void SetNewDiskName(const char *value)
Definition DiskMap.h:63
void SetOriginalDiskPath(const Aws::String &value)
Definition DiskMap.h:47
AWS_LIGHTSAIL_API DiskMap()
AWS_LIGHTSAIL_API DiskMap & operator=(Aws::Utils::Json::JsonView jsonValue)
DiskMap & WithOriginalDiskPath(Aws::String &&value)
Definition DiskMap.h:51
void SetNewDiskName(Aws::String &&value)
Definition DiskMap.h:62
bool NewDiskNameHasBeenSet() const
Definition DiskMap.h:60
DiskMap & WithNewDiskName(const char *value)
Definition DiskMap.h:66
void SetOriginalDiskPath(Aws::String &&value)
Definition DiskMap.h:48
DiskMap & WithNewDiskName(const Aws::String &value)
Definition DiskMap.h:64
DiskMap & WithOriginalDiskPath(const char *value)
Definition DiskMap.h:52
const Aws::String & GetOriginalDiskPath() const
Definition DiskMap.h:45
DiskMap & WithNewDiskName(Aws::String &&value)
Definition DiskMap.h:65
const Aws::String & GetNewDiskName() const
Definition DiskMap.h:59
void SetNewDiskName(const Aws::String &value)
Definition DiskMap.h:61
void SetOriginalDiskPath(const char *value)
Definition DiskMap.h:49
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue