AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
VirtualMachineDetails.h
1
6#pragma once
7#include <aws/backup-gateway/BackupGateway_EXPORTS.h>
8#include <aws/backup-gateway/model/VmwareTag.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace BackupGateway {
23namespace Model {
24
32 public:
33 AWS_BACKUPGATEWAY_API VirtualMachineDetails() = default;
34 AWS_BACKUPGATEWAY_API VirtualMachineDetails(Aws::Utils::Json::JsonView jsonValue);
36 AWS_BACKUPGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetHostName() const { return m_hostName; }
43 inline bool HostNameHasBeenSet() const { return m_hostNameHasBeenSet; }
44 template <typename HostNameT = Aws::String>
45 void SetHostName(HostNameT&& value) {
46 m_hostNameHasBeenSet = true;
47 m_hostName = std::forward<HostNameT>(value);
48 }
49 template <typename HostNameT = Aws::String>
50 VirtualMachineDetails& WithHostName(HostNameT&& value) {
51 SetHostName(std::forward<HostNameT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetHypervisorId() const { return m_hypervisorId; }
61 inline bool HypervisorIdHasBeenSet() const { return m_hypervisorIdHasBeenSet; }
62 template <typename HypervisorIdT = Aws::String>
63 void SetHypervisorId(HypervisorIdT&& value) {
64 m_hypervisorIdHasBeenSet = true;
65 m_hypervisorId = std::forward<HypervisorIdT>(value);
66 }
67 template <typename HypervisorIdT = Aws::String>
68 VirtualMachineDetails& WithHypervisorId(HypervisorIdT&& value) {
69 SetHypervisorId(std::forward<HypervisorIdT>(value));
70 return *this;
71 }
73
75
79 inline const Aws::Utils::DateTime& GetLastBackupDate() const { return m_lastBackupDate; }
80 inline bool LastBackupDateHasBeenSet() const { return m_lastBackupDateHasBeenSet; }
81 template <typename LastBackupDateT = Aws::Utils::DateTime>
82 void SetLastBackupDate(LastBackupDateT&& value) {
83 m_lastBackupDateHasBeenSet = true;
84 m_lastBackupDate = std::forward<LastBackupDateT>(value);
85 }
86 template <typename LastBackupDateT = Aws::Utils::DateTime>
87 VirtualMachineDetails& WithLastBackupDate(LastBackupDateT&& value) {
88 SetLastBackupDate(std::forward<LastBackupDateT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::String& GetName() const { return m_name; }
98 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
99 template <typename NameT = Aws::String>
100 void SetName(NameT&& value) {
101 m_nameHasBeenSet = true;
102 m_name = std::forward<NameT>(value);
103 }
104 template <typename NameT = Aws::String>
106 SetName(std::forward<NameT>(value));
107 return *this;
108 }
110
112
115 inline const Aws::String& GetPath() const { return m_path; }
116 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
117 template <typename PathT = Aws::String>
118 void SetPath(PathT&& value) {
119 m_pathHasBeenSet = true;
120 m_path = std::forward<PathT>(value);
121 }
122 template <typename PathT = Aws::String>
124 SetPath(std::forward<PathT>(value));
125 return *this;
126 }
128
130
134 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
135 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
136 template <typename ResourceArnT = Aws::String>
137 void SetResourceArn(ResourceArnT&& value) {
138 m_resourceArnHasBeenSet = true;
139 m_resourceArn = std::forward<ResourceArnT>(value);
140 }
141 template <typename ResourceArnT = Aws::String>
142 VirtualMachineDetails& WithResourceArn(ResourceArnT&& value) {
143 SetResourceArn(std::forward<ResourceArnT>(value));
144 return *this;
145 }
147
149
153 inline const Aws::Vector<VmwareTag>& GetVmwareTags() const { return m_vmwareTags; }
154 inline bool VmwareTagsHasBeenSet() const { return m_vmwareTagsHasBeenSet; }
155 template <typename VmwareTagsT = Aws::Vector<VmwareTag>>
156 void SetVmwareTags(VmwareTagsT&& value) {
157 m_vmwareTagsHasBeenSet = true;
158 m_vmwareTags = std::forward<VmwareTagsT>(value);
159 }
160 template <typename VmwareTagsT = Aws::Vector<VmwareTag>>
161 VirtualMachineDetails& WithVmwareTags(VmwareTagsT&& value) {
162 SetVmwareTags(std::forward<VmwareTagsT>(value));
163 return *this;
164 }
165 template <typename VmwareTagsT = VmwareTag>
166 VirtualMachineDetails& AddVmwareTags(VmwareTagsT&& value) {
167 m_vmwareTagsHasBeenSet = true;
168 m_vmwareTags.emplace_back(std::forward<VmwareTagsT>(value));
169 return *this;
170 }
172 private:
173 Aws::String m_hostName;
174
175 Aws::String m_hypervisorId;
176
177 Aws::Utils::DateTime m_lastBackupDate{};
178
179 Aws::String m_name;
180
181 Aws::String m_path;
182
183 Aws::String m_resourceArn;
184
185 Aws::Vector<VmwareTag> m_vmwareTags;
186 bool m_hostNameHasBeenSet = false;
187 bool m_hypervisorIdHasBeenSet = false;
188 bool m_lastBackupDateHasBeenSet = false;
189 bool m_nameHasBeenSet = false;
190 bool m_pathHasBeenSet = false;
191 bool m_resourceArnHasBeenSet = false;
192 bool m_vmwareTagsHasBeenSet = false;
193};
194
195} // namespace Model
196} // namespace BackupGateway
197} // namespace Aws
VirtualMachineDetails & WithVmwareTags(VmwareTagsT &&value)
VirtualMachineDetails & AddVmwareTags(VmwareTagsT &&value)
AWS_BACKUPGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BACKUPGATEWAY_API VirtualMachineDetails()=default
VirtualMachineDetails & WithName(NameT &&value)
const Aws::Utils::DateTime & GetLastBackupDate() const
VirtualMachineDetails & WithHostName(HostNameT &&value)
AWS_BACKUPGATEWAY_API VirtualMachineDetails(Aws::Utils::Json::JsonView jsonValue)
VirtualMachineDetails & WithHypervisorId(HypervisorIdT &&value)
VirtualMachineDetails & WithPath(PathT &&value)
const Aws::Vector< VmwareTag > & GetVmwareTags() const
VirtualMachineDetails & WithResourceArn(ResourceArnT &&value)
VirtualMachineDetails & WithLastBackupDate(LastBackupDateT &&value)
AWS_BACKUPGATEWAY_API VirtualMachineDetails & operator=(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