AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
VirtualMachineDetails.h
1
6#pragma once
7#include <aws/backup-gateway/BackupGateway_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/backup-gateway/model/VmwareTag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace BackupGateway
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_BACKUPGATEWAY_API VirtualMachineDetails();
39 AWS_BACKUPGATEWAY_API VirtualMachineDetails(Aws::Utils::Json::JsonView jsonValue);
41 AWS_BACKUPGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetHostName() const{ return m_hostName; }
49 inline bool HostNameHasBeenSet() const { return m_hostNameHasBeenSet; }
50 inline void SetHostName(const Aws::String& value) { m_hostNameHasBeenSet = true; m_hostName = value; }
51 inline void SetHostName(Aws::String&& value) { m_hostNameHasBeenSet = true; m_hostName = std::move(value); }
52 inline void SetHostName(const char* value) { m_hostNameHasBeenSet = true; m_hostName.assign(value); }
53 inline VirtualMachineDetails& WithHostName(const Aws::String& value) { SetHostName(value); return *this;}
54 inline VirtualMachineDetails& WithHostName(Aws::String&& value) { SetHostName(std::move(value)); return *this;}
55 inline VirtualMachineDetails& WithHostName(const char* value) { SetHostName(value); return *this;}
57
59
62 inline const Aws::String& GetHypervisorId() const{ return m_hypervisorId; }
63 inline bool HypervisorIdHasBeenSet() const { return m_hypervisorIdHasBeenSet; }
64 inline void SetHypervisorId(const Aws::String& value) { m_hypervisorIdHasBeenSet = true; m_hypervisorId = value; }
65 inline void SetHypervisorId(Aws::String&& value) { m_hypervisorIdHasBeenSet = true; m_hypervisorId = std::move(value); }
66 inline void SetHypervisorId(const char* value) { m_hypervisorIdHasBeenSet = true; m_hypervisorId.assign(value); }
67 inline VirtualMachineDetails& WithHypervisorId(const Aws::String& value) { SetHypervisorId(value); return *this;}
68 inline VirtualMachineDetails& WithHypervisorId(Aws::String&& value) { SetHypervisorId(std::move(value)); return *this;}
69 inline VirtualMachineDetails& WithHypervisorId(const char* value) { SetHypervisorId(value); return *this;}
71
73
77 inline const Aws::Utils::DateTime& GetLastBackupDate() const{ return m_lastBackupDate; }
78 inline bool LastBackupDateHasBeenSet() const { return m_lastBackupDateHasBeenSet; }
79 inline void SetLastBackupDate(const Aws::Utils::DateTime& value) { m_lastBackupDateHasBeenSet = true; m_lastBackupDate = value; }
80 inline void SetLastBackupDate(Aws::Utils::DateTime&& value) { m_lastBackupDateHasBeenSet = true; m_lastBackupDate = std::move(value); }
82 inline VirtualMachineDetails& WithLastBackupDate(Aws::Utils::DateTime&& value) { SetLastBackupDate(std::move(value)); return *this;}
84
86
89 inline const Aws::String& GetName() const{ return m_name; }
90 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
91 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
92 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
93 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
94 inline VirtualMachineDetails& WithName(const Aws::String& value) { SetName(value); return *this;}
95 inline VirtualMachineDetails& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
96 inline VirtualMachineDetails& WithName(const char* value) { SetName(value); return *this;}
98
100
103 inline const Aws::String& GetPath() const{ return m_path; }
104 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
105 inline void SetPath(const Aws::String& value) { m_pathHasBeenSet = true; m_path = value; }
106 inline void SetPath(Aws::String&& value) { m_pathHasBeenSet = true; m_path = std::move(value); }
107 inline void SetPath(const char* value) { m_pathHasBeenSet = true; m_path.assign(value); }
108 inline VirtualMachineDetails& WithPath(const Aws::String& value) { SetPath(value); return *this;}
109 inline VirtualMachineDetails& WithPath(Aws::String&& value) { SetPath(std::move(value)); return *this;}
110 inline VirtualMachineDetails& WithPath(const char* value) { SetPath(value); return *this;}
112
114
118 inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
119 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
120 inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
121 inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
122 inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
123 inline VirtualMachineDetails& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
124 inline VirtualMachineDetails& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
125 inline VirtualMachineDetails& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
127
129
133 inline const Aws::Vector<VmwareTag>& GetVmwareTags() const{ return m_vmwareTags; }
134 inline bool VmwareTagsHasBeenSet() const { return m_vmwareTagsHasBeenSet; }
135 inline void SetVmwareTags(const Aws::Vector<VmwareTag>& value) { m_vmwareTagsHasBeenSet = true; m_vmwareTags = value; }
136 inline void SetVmwareTags(Aws::Vector<VmwareTag>&& value) { m_vmwareTagsHasBeenSet = true; m_vmwareTags = std::move(value); }
137 inline VirtualMachineDetails& WithVmwareTags(const Aws::Vector<VmwareTag>& value) { SetVmwareTags(value); return *this;}
138 inline VirtualMachineDetails& WithVmwareTags(Aws::Vector<VmwareTag>&& value) { SetVmwareTags(std::move(value)); return *this;}
139 inline VirtualMachineDetails& AddVmwareTags(const VmwareTag& value) { m_vmwareTagsHasBeenSet = true; m_vmwareTags.push_back(value); return *this; }
140 inline VirtualMachineDetails& AddVmwareTags(VmwareTag&& value) { m_vmwareTagsHasBeenSet = true; m_vmwareTags.push_back(std::move(value)); return *this; }
142 private:
143
144 Aws::String m_hostName;
145 bool m_hostNameHasBeenSet = false;
146
147 Aws::String m_hypervisorId;
148 bool m_hypervisorIdHasBeenSet = false;
149
150 Aws::Utils::DateTime m_lastBackupDate;
151 bool m_lastBackupDateHasBeenSet = false;
152
153 Aws::String m_name;
154 bool m_nameHasBeenSet = false;
155
156 Aws::String m_path;
157 bool m_pathHasBeenSet = false;
158
159 Aws::String m_resourceArn;
160 bool m_resourceArnHasBeenSet = false;
161
162 Aws::Vector<VmwareTag> m_vmwareTags;
163 bool m_vmwareTagsHasBeenSet = false;
164 };
165
166} // namespace Model
167} // namespace BackupGateway
168} // namespace Aws
VirtualMachineDetails & WithResourceArn(Aws::String &&value)
void SetLastBackupDate(const Aws::Utils::DateTime &value)
VirtualMachineDetails & WithName(const char *value)
void SetVmwareTags(const Aws::Vector< VmwareTag > &value)
AWS_BACKUPGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetVmwareTags(Aws::Vector< VmwareTag > &&value)
VirtualMachineDetails & WithResourceArn(const char *value)
VirtualMachineDetails & WithPath(const Aws::String &value)
const Aws::Utils::DateTime & GetLastBackupDate() const
VirtualMachineDetails & WithHostName(const char *value)
void SetLastBackupDate(Aws::Utils::DateTime &&value)
AWS_BACKUPGATEWAY_API VirtualMachineDetails(Aws::Utils::Json::JsonView jsonValue)
VirtualMachineDetails & WithHostName(Aws::String &&value)
VirtualMachineDetails & WithHypervisorId(const char *value)
const Aws::Vector< VmwareTag > & GetVmwareTags() const
VirtualMachineDetails & WithVmwareTags(const Aws::Vector< VmwareTag > &value)
VirtualMachineDetails & WithResourceArn(const Aws::String &value)
VirtualMachineDetails & AddVmwareTags(VmwareTag &&value)
VirtualMachineDetails & WithVmwareTags(Aws::Vector< VmwareTag > &&value)
VirtualMachineDetails & WithPath(const char *value)
VirtualMachineDetails & WithName(const Aws::String &value)
VirtualMachineDetails & WithName(Aws::String &&value)
VirtualMachineDetails & WithLastBackupDate(Aws::Utils::DateTime &&value)
VirtualMachineDetails & AddVmwareTags(const VmwareTag &value)
VirtualMachineDetails & WithHypervisorId(Aws::String &&value)
VirtualMachineDetails & WithHostName(const Aws::String &value)
AWS_BACKUPGATEWAY_API VirtualMachineDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
VirtualMachineDetails & WithHypervisorId(const Aws::String &value)
VirtualMachineDetails & WithPath(Aws::String &&value)
VirtualMachineDetails & WithLastBackupDate(const Aws::Utils::DateTime &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue