AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetHostName(const Aws::String& value) { m_hostNameHasBeenSet = true; m_hostName = value; }
48 inline void SetHostName(Aws::String&& value) { m_hostNameHasBeenSet = true; m_hostName = std::move(value); }
49 inline void SetHostName(const char* value) { m_hostNameHasBeenSet = true; m_hostName.assign(value); }
50 inline VirtualMachine& WithHostName(const Aws::String& value) { SetHostName(value); return *this;}
51 inline VirtualMachine& WithHostName(Aws::String&& value) { SetHostName(std::move(value)); return *this;}
52 inline VirtualMachine& WithHostName(const char* value) { SetHostName(value); return *this;}
54
56
59 inline const Aws::String& GetHypervisorId() const{ return m_hypervisorId; }
60 inline bool HypervisorIdHasBeenSet() const { return m_hypervisorIdHasBeenSet; }
61 inline void SetHypervisorId(const Aws::String& value) { m_hypervisorIdHasBeenSet = true; m_hypervisorId = value; }
62 inline void SetHypervisorId(Aws::String&& value) { m_hypervisorIdHasBeenSet = true; m_hypervisorId = std::move(value); }
63 inline void SetHypervisorId(const char* value) { m_hypervisorIdHasBeenSet = true; m_hypervisorId.assign(value); }
64 inline VirtualMachine& WithHypervisorId(const Aws::String& value) { SetHypervisorId(value); return *this;}
65 inline VirtualMachine& WithHypervisorId(Aws::String&& value) { SetHypervisorId(std::move(value)); return *this;}
66 inline VirtualMachine& WithHypervisorId(const char* value) { SetHypervisorId(value); return *this;}
68
70
74 inline const Aws::Utils::DateTime& GetLastBackupDate() const{ return m_lastBackupDate; }
75 inline bool LastBackupDateHasBeenSet() const { return m_lastBackupDateHasBeenSet; }
76 inline void SetLastBackupDate(const Aws::Utils::DateTime& value) { m_lastBackupDateHasBeenSet = true; m_lastBackupDate = value; }
77 inline void SetLastBackupDate(Aws::Utils::DateTime&& value) { m_lastBackupDateHasBeenSet = true; m_lastBackupDate = std::move(value); }
78 inline VirtualMachine& WithLastBackupDate(const Aws::Utils::DateTime& value) { SetLastBackupDate(value); return *this;}
79 inline VirtualMachine& WithLastBackupDate(Aws::Utils::DateTime&& value) { SetLastBackupDate(std::move(value)); return *this;}
81
83
86 inline const Aws::String& GetName() const{ return m_name; }
87 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
88 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
89 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
90 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
91 inline VirtualMachine& WithName(const Aws::String& value) { SetName(value); return *this;}
92 inline VirtualMachine& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
93 inline VirtualMachine& WithName(const char* value) { SetName(value); return *this;}
95
97
100 inline const Aws::String& GetPath() const{ return m_path; }
101 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
102 inline void SetPath(const Aws::String& value) { m_pathHasBeenSet = true; m_path = value; }
103 inline void SetPath(Aws::String&& value) { m_pathHasBeenSet = true; m_path = std::move(value); }
104 inline void SetPath(const char* value) { m_pathHasBeenSet = true; m_path.assign(value); }
105 inline VirtualMachine& WithPath(const Aws::String& value) { SetPath(value); return *this;}
106 inline VirtualMachine& WithPath(Aws::String&& value) { SetPath(std::move(value)); return *this;}
107 inline VirtualMachine& WithPath(const char* value) { SetPath(value); return *this;}
109
111
115 inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
116 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
117 inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
118 inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
119 inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
120 inline VirtualMachine& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
121 inline VirtualMachine& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
122 inline VirtualMachine& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
124 private:
125
126 Aws::String m_hostName;
127 bool m_hostNameHasBeenSet = false;
128
129 Aws::String m_hypervisorId;
130 bool m_hypervisorIdHasBeenSet = false;
131
132 Aws::Utils::DateTime m_lastBackupDate;
133 bool m_lastBackupDateHasBeenSet = false;
134
135 Aws::String m_name;
136 bool m_nameHasBeenSet = false;
137
138 Aws::String m_path;
139 bool m_pathHasBeenSet = false;
140
141 Aws::String m_resourceArn;
142 bool m_resourceArnHasBeenSet = false;
143 };
144
145} // namespace Model
146} // namespace BackupGateway
147} // namespace Aws
const Aws::Utils::DateTime & GetLastBackupDate() const
void SetPath(const Aws::String &value)
AWS_BACKUPGATEWAY_API VirtualMachine()
AWS_BACKUPGATEWAY_API VirtualMachine(Aws::Utils::Json::JsonView jsonValue)
VirtualMachine & WithHostName(Aws::String &&value)
VirtualMachine & WithResourceArn(const char *value)
VirtualMachine & WithName(const char *value)
VirtualMachine & WithName(Aws::String &&value)
void SetLastBackupDate(const Aws::Utils::DateTime &value)
VirtualMachine & WithHypervisorId(const char *value)
AWS_BACKUPGATEWAY_API VirtualMachine & operator=(Aws::Utils::Json::JsonView jsonValue)
VirtualMachine & WithResourceArn(Aws::String &&value)
VirtualMachine & WithPath(Aws::String &&value)
const Aws::String & GetName() const
void SetLastBackupDate(Aws::Utils::DateTime &&value)
void SetResourceArn(const Aws::String &value)
VirtualMachine & WithHostName(const char *value)
VirtualMachine & WithName(const Aws::String &value)
VirtualMachine & WithLastBackupDate(const Aws::Utils::DateTime &value)
VirtualMachine & WithLastBackupDate(Aws::Utils::DateTime &&value)
AWS_BACKUPGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const
VirtualMachine & WithPath(const char *value)
VirtualMachine & WithHypervisorId(const Aws::String &value)
VirtualMachine & WithHypervisorId(Aws::String &&value)
void SetName(const Aws::String &value)
const Aws::String & GetResourceArn() const
void SetHostName(const Aws::String &value)
void SetHypervisorId(const Aws::String &value)
const Aws::String & GetHostName() const
VirtualMachine & WithHostName(const Aws::String &value)
VirtualMachine & WithResourceArn(const Aws::String &value)
void SetHypervisorId(Aws::String &&value)
const Aws::String & GetHypervisorId() const
VirtualMachine & WithPath(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue