AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename HostNameT = Aws::String>
51 void SetHostName(HostNameT&& value) { m_hostNameHasBeenSet = true; m_hostName = std::forward<HostNameT>(value); }
52 template<typename HostNameT = Aws::String>
53 VirtualMachineDetails& WithHostName(HostNameT&& value) { SetHostName(std::forward<HostNameT>(value)); return *this;}
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) { m_hypervisorIdHasBeenSet = true; m_hypervisorId = std::forward<HypervisorIdT>(value); }
64 template<typename HypervisorIdT = Aws::String>
65 VirtualMachineDetails& WithHypervisorId(HypervisorIdT&& value) { SetHypervisorId(std::forward<HypervisorIdT>(value)); return *this;}
67
69
73 inline const Aws::Utils::DateTime& GetLastBackupDate() const { return m_lastBackupDate; }
74 inline bool LastBackupDateHasBeenSet() const { return m_lastBackupDateHasBeenSet; }
75 template<typename LastBackupDateT = Aws::Utils::DateTime>
76 void SetLastBackupDate(LastBackupDateT&& value) { m_lastBackupDateHasBeenSet = true; m_lastBackupDate = std::forward<LastBackupDateT>(value); }
77 template<typename LastBackupDateT = Aws::Utils::DateTime>
78 VirtualMachineDetails& WithLastBackupDate(LastBackupDateT&& value) { SetLastBackupDate(std::forward<LastBackupDateT>(value)); return *this;}
80
82
85 inline const Aws::String& GetName() const { return m_name; }
86 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
87 template<typename NameT = Aws::String>
88 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
89 template<typename NameT = Aws::String>
90 VirtualMachineDetails& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
92
94
97 inline const Aws::String& GetPath() const { return m_path; }
98 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
99 template<typename PathT = Aws::String>
100 void SetPath(PathT&& value) { m_pathHasBeenSet = true; m_path = std::forward<PathT>(value); }
101 template<typename PathT = Aws::String>
102 VirtualMachineDetails& WithPath(PathT&& value) { SetPath(std::forward<PathT>(value)); return *this;}
104
106
110 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
111 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
112 template<typename ResourceArnT = Aws::String>
113 void SetResourceArn(ResourceArnT&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::forward<ResourceArnT>(value); }
114 template<typename ResourceArnT = Aws::String>
115 VirtualMachineDetails& WithResourceArn(ResourceArnT&& value) { SetResourceArn(std::forward<ResourceArnT>(value)); return *this;}
117
119
123 inline const Aws::Vector<VmwareTag>& GetVmwareTags() const { return m_vmwareTags; }
124 inline bool VmwareTagsHasBeenSet() const { return m_vmwareTagsHasBeenSet; }
125 template<typename VmwareTagsT = Aws::Vector<VmwareTag>>
126 void SetVmwareTags(VmwareTagsT&& value) { m_vmwareTagsHasBeenSet = true; m_vmwareTags = std::forward<VmwareTagsT>(value); }
127 template<typename VmwareTagsT = Aws::Vector<VmwareTag>>
128 VirtualMachineDetails& WithVmwareTags(VmwareTagsT&& value) { SetVmwareTags(std::forward<VmwareTagsT>(value)); return *this;}
129 template<typename VmwareTagsT = VmwareTag>
130 VirtualMachineDetails& AddVmwareTags(VmwareTagsT&& value) { m_vmwareTagsHasBeenSet = true; m_vmwareTags.emplace_back(std::forward<VmwareTagsT>(value)); return *this; }
132 private:
133
134 Aws::String m_hostName;
135 bool m_hostNameHasBeenSet = false;
136
137 Aws::String m_hypervisorId;
138 bool m_hypervisorIdHasBeenSet = false;
139
140 Aws::Utils::DateTime m_lastBackupDate{};
141 bool m_lastBackupDateHasBeenSet = false;
142
143 Aws::String m_name;
144 bool m_nameHasBeenSet = false;
145
146 Aws::String m_path;
147 bool m_pathHasBeenSet = false;
148
149 Aws::String m_resourceArn;
150 bool m_resourceArnHasBeenSet = false;
151
152 Aws::Vector<VmwareTag> m_vmwareTags;
153 bool m_vmwareTagsHasBeenSet = false;
154 };
155
156} // namespace Model
157} // namespace BackupGateway
158} // 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