AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
VirtualMachine.h
1
6#pragma once
7#include <aws/backup-gateway/BackupGateway_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace BackupGateway {
21namespace Model {
22
29 public:
30 AWS_BACKUPGATEWAY_API VirtualMachine() = default;
31 AWS_BACKUPGATEWAY_API VirtualMachine(Aws::Utils::Json::JsonView jsonValue);
32 AWS_BACKUPGATEWAY_API VirtualMachine& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_BACKUPGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetHostName() const { return m_hostName; }
40 inline bool HostNameHasBeenSet() const { return m_hostNameHasBeenSet; }
41 template <typename HostNameT = Aws::String>
42 void SetHostName(HostNameT&& value) {
43 m_hostNameHasBeenSet = true;
44 m_hostName = std::forward<HostNameT>(value);
45 }
46 template <typename HostNameT = Aws::String>
47 VirtualMachine& WithHostName(HostNameT&& value) {
48 SetHostName(std::forward<HostNameT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetHypervisorId() const { return m_hypervisorId; }
58 inline bool HypervisorIdHasBeenSet() const { return m_hypervisorIdHasBeenSet; }
59 template <typename HypervisorIdT = Aws::String>
60 void SetHypervisorId(HypervisorIdT&& value) {
61 m_hypervisorIdHasBeenSet = true;
62 m_hypervisorId = std::forward<HypervisorIdT>(value);
63 }
64 template <typename HypervisorIdT = Aws::String>
65 VirtualMachine& WithHypervisorId(HypervisorIdT&& value) {
66 SetHypervisorId(std::forward<HypervisorIdT>(value));
67 return *this;
68 }
70
72
76 inline const Aws::Utils::DateTime& GetLastBackupDate() const { return m_lastBackupDate; }
77 inline bool LastBackupDateHasBeenSet() const { return m_lastBackupDateHasBeenSet; }
78 template <typename LastBackupDateT = Aws::Utils::DateTime>
79 void SetLastBackupDate(LastBackupDateT&& value) {
80 m_lastBackupDateHasBeenSet = true;
81 m_lastBackupDate = std::forward<LastBackupDateT>(value);
82 }
83 template <typename LastBackupDateT = Aws::Utils::DateTime>
84 VirtualMachine& WithLastBackupDate(LastBackupDateT&& value) {
85 SetLastBackupDate(std::forward<LastBackupDateT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::String& GetName() const { return m_name; }
95 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
96 template <typename NameT = Aws::String>
97 void SetName(NameT&& value) {
98 m_nameHasBeenSet = true;
99 m_name = std::forward<NameT>(value);
100 }
101 template <typename NameT = Aws::String>
102 VirtualMachine& WithName(NameT&& value) {
103 SetName(std::forward<NameT>(value));
104 return *this;
105 }
107
109
112 inline const Aws::String& GetPath() const { return m_path; }
113 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
114 template <typename PathT = Aws::String>
115 void SetPath(PathT&& value) {
116 m_pathHasBeenSet = true;
117 m_path = std::forward<PathT>(value);
118 }
119 template <typename PathT = Aws::String>
120 VirtualMachine& WithPath(PathT&& value) {
121 SetPath(std::forward<PathT>(value));
122 return *this;
123 }
125
127
131 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
132 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
133 template <typename ResourceArnT = Aws::String>
134 void SetResourceArn(ResourceArnT&& value) {
135 m_resourceArnHasBeenSet = true;
136 m_resourceArn = std::forward<ResourceArnT>(value);
137 }
138 template <typename ResourceArnT = Aws::String>
139 VirtualMachine& WithResourceArn(ResourceArnT&& value) {
140 SetResourceArn(std::forward<ResourceArnT>(value));
141 return *this;
142 }
144 private:
145 Aws::String m_hostName;
146
147 Aws::String m_hypervisorId;
148
149 Aws::Utils::DateTime m_lastBackupDate{};
150
151 Aws::String m_name;
152
153 Aws::String m_path;
154
155 Aws::String m_resourceArn;
156 bool m_hostNameHasBeenSet = false;
157 bool m_hypervisorIdHasBeenSet = false;
158 bool m_lastBackupDateHasBeenSet = false;
159 bool m_nameHasBeenSet = false;
160 bool m_pathHasBeenSet = false;
161 bool m_resourceArnHasBeenSet = false;
162};
163
164} // namespace Model
165} // namespace BackupGateway
166} // namespace Aws
const Aws::Utils::DateTime & GetLastBackupDate() const
AWS_BACKUPGATEWAY_API VirtualMachine(Aws::Utils::Json::JsonView jsonValue)
void SetResourceArn(ResourceArnT &&value)
VirtualMachine & WithHypervisorId(HypervisorIdT &&value)
AWS_BACKUPGATEWAY_API VirtualMachine & operator=(Aws::Utils::Json::JsonView jsonValue)
VirtualMachine & WithPath(PathT &&value)
const Aws::String & GetName() const
void SetHypervisorId(HypervisorIdT &&value)
VirtualMachine & WithName(NameT &&value)
void SetLastBackupDate(LastBackupDateT &&value)
AWS_BACKUPGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const
VirtualMachine & WithLastBackupDate(LastBackupDateT &&value)
VirtualMachine & WithHostName(HostNameT &&value)
const Aws::String & GetResourceArn() const
const Aws::String & GetHostName() const
AWS_BACKUPGATEWAY_API VirtualMachine()=default
const Aws::String & GetHypervisorId() const
VirtualMachine & WithResourceArn(ResourceArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue