AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
VirtualMachine.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 <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace BackupGateway
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_BACKUPGATEWAY_API VirtualMachine() = default;
36 AWS_BACKUPGATEWAY_API VirtualMachine(Aws::Utils::Json::JsonView jsonValue);
37 AWS_BACKUPGATEWAY_API VirtualMachine& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_BACKUPGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetHostName() const { return m_hostName; }
46 inline bool HostNameHasBeenSet() const { return m_hostNameHasBeenSet; }
47 template<typename HostNameT = Aws::String>
48 void SetHostName(HostNameT&& value) { m_hostNameHasBeenSet = true; m_hostName = std::forward<HostNameT>(value); }
49 template<typename HostNameT = Aws::String>
50 VirtualMachine& WithHostName(HostNameT&& value) { SetHostName(std::forward<HostNameT>(value)); return *this;}
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) { m_hypervisorIdHasBeenSet = true; m_hypervisorId = std::forward<HypervisorIdT>(value); }
61 template<typename HypervisorIdT = Aws::String>
62 VirtualMachine& WithHypervisorId(HypervisorIdT&& value) { SetHypervisorId(std::forward<HypervisorIdT>(value)); return *this;}
64
66
70 inline const Aws::Utils::DateTime& GetLastBackupDate() const { return m_lastBackupDate; }
71 inline bool LastBackupDateHasBeenSet() const { return m_lastBackupDateHasBeenSet; }
72 template<typename LastBackupDateT = Aws::Utils::DateTime>
73 void SetLastBackupDate(LastBackupDateT&& value) { m_lastBackupDateHasBeenSet = true; m_lastBackupDate = std::forward<LastBackupDateT>(value); }
74 template<typename LastBackupDateT = Aws::Utils::DateTime>
75 VirtualMachine& WithLastBackupDate(LastBackupDateT&& value) { SetLastBackupDate(std::forward<LastBackupDateT>(value)); return *this;}
77
79
82 inline const Aws::String& GetName() const { return m_name; }
83 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
84 template<typename NameT = Aws::String>
85 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
86 template<typename NameT = Aws::String>
87 VirtualMachine& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
89
91
94 inline const Aws::String& GetPath() const { return m_path; }
95 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
96 template<typename PathT = Aws::String>
97 void SetPath(PathT&& value) { m_pathHasBeenSet = true; m_path = std::forward<PathT>(value); }
98 template<typename PathT = Aws::String>
99 VirtualMachine& WithPath(PathT&& value) { SetPath(std::forward<PathT>(value)); return *this;}
101
103
107 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
108 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
109 template<typename ResourceArnT = Aws::String>
110 void SetResourceArn(ResourceArnT&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::forward<ResourceArnT>(value); }
111 template<typename ResourceArnT = Aws::String>
112 VirtualMachine& WithResourceArn(ResourceArnT&& value) { SetResourceArn(std::forward<ResourceArnT>(value)); return *this;}
114 private:
115
116 Aws::String m_hostName;
117 bool m_hostNameHasBeenSet = false;
118
119 Aws::String m_hypervisorId;
120 bool m_hypervisorIdHasBeenSet = false;
121
122 Aws::Utils::DateTime m_lastBackupDate{};
123 bool m_lastBackupDateHasBeenSet = false;
124
125 Aws::String m_name;
126 bool m_nameHasBeenSet = false;
127
128 Aws::String m_path;
129 bool m_pathHasBeenSet = false;
130
131 Aws::String m_resourceArn;
132 bool m_resourceArnHasBeenSet = false;
133 };
134
135} // namespace Model
136} // namespace BackupGateway
137} // namespace Aws
const Aws::Utils::DateTime & GetLastBackupDate() const
const Aws::String & GetPath() 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