AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
HypervisorDetails.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/backup-gateway/model/SyncMetadataStatus.h>
11#include <aws/backup-gateway/model/HypervisorState.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
37 {
38 public:
39 AWS_BACKUPGATEWAY_API HypervisorDetails();
40 AWS_BACKUPGATEWAY_API HypervisorDetails(Aws::Utils::Json::JsonView jsonValue);
41 AWS_BACKUPGATEWAY_API HypervisorDetails& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_BACKUPGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
50 inline const Aws::String& GetHost() const{ return m_host; }
51 inline bool HostHasBeenSet() const { return m_hostHasBeenSet; }
52 inline void SetHost(const Aws::String& value) { m_hostHasBeenSet = true; m_host = value; }
53 inline void SetHost(Aws::String&& value) { m_hostHasBeenSet = true; m_host = std::move(value); }
54 inline void SetHost(const char* value) { m_hostHasBeenSet = true; m_host.assign(value); }
55 inline HypervisorDetails& WithHost(const Aws::String& value) { SetHost(value); return *this;}
56 inline HypervisorDetails& WithHost(Aws::String&& value) { SetHost(std::move(value)); return *this;}
57 inline HypervisorDetails& WithHost(const char* value) { SetHost(value); return *this;}
59
61
64 inline const Aws::String& GetHypervisorArn() const{ return m_hypervisorArn; }
65 inline bool HypervisorArnHasBeenSet() const { return m_hypervisorArnHasBeenSet; }
66 inline void SetHypervisorArn(const Aws::String& value) { m_hypervisorArnHasBeenSet = true; m_hypervisorArn = value; }
67 inline void SetHypervisorArn(Aws::String&& value) { m_hypervisorArnHasBeenSet = true; m_hypervisorArn = std::move(value); }
68 inline void SetHypervisorArn(const char* value) { m_hypervisorArnHasBeenSet = true; m_hypervisorArn.assign(value); }
69 inline HypervisorDetails& WithHypervisorArn(const Aws::String& value) { SetHypervisorArn(value); return *this;}
70 inline HypervisorDetails& WithHypervisorArn(Aws::String&& value) { SetHypervisorArn(std::move(value)); return *this;}
71 inline HypervisorDetails& WithHypervisorArn(const char* value) { SetHypervisorArn(value); return *this;}
73
75
78 inline const Aws::String& GetKmsKeyArn() const{ return m_kmsKeyArn; }
79 inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
80 inline void SetKmsKeyArn(const Aws::String& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = value; }
81 inline void SetKmsKeyArn(Aws::String&& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = std::move(value); }
82 inline void SetKmsKeyArn(const char* value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn.assign(value); }
83 inline HypervisorDetails& WithKmsKeyArn(const Aws::String& value) { SetKmsKeyArn(value); return *this;}
84 inline HypervisorDetails& WithKmsKeyArn(Aws::String&& value) { SetKmsKeyArn(std::move(value)); return *this;}
85 inline HypervisorDetails& WithKmsKeyArn(const char* value) { SetKmsKeyArn(value); return *this;}
87
89
93 inline const Aws::Utils::DateTime& GetLastSuccessfulMetadataSyncTime() const{ return m_lastSuccessfulMetadataSyncTime; }
94 inline bool LastSuccessfulMetadataSyncTimeHasBeenSet() const { return m_lastSuccessfulMetadataSyncTimeHasBeenSet; }
95 inline void SetLastSuccessfulMetadataSyncTime(const Aws::Utils::DateTime& value) { m_lastSuccessfulMetadataSyncTimeHasBeenSet = true; m_lastSuccessfulMetadataSyncTime = value; }
96 inline void SetLastSuccessfulMetadataSyncTime(Aws::Utils::DateTime&& value) { m_lastSuccessfulMetadataSyncTimeHasBeenSet = true; m_lastSuccessfulMetadataSyncTime = std::move(value); }
100
102
105 inline const SyncMetadataStatus& GetLatestMetadataSyncStatus() const{ return m_latestMetadataSyncStatus; }
106 inline bool LatestMetadataSyncStatusHasBeenSet() const { return m_latestMetadataSyncStatusHasBeenSet; }
107 inline void SetLatestMetadataSyncStatus(const SyncMetadataStatus& value) { m_latestMetadataSyncStatusHasBeenSet = true; m_latestMetadataSyncStatus = value; }
108 inline void SetLatestMetadataSyncStatus(SyncMetadataStatus&& value) { m_latestMetadataSyncStatusHasBeenSet = true; m_latestMetadataSyncStatus = std::move(value); }
112
114
117 inline const Aws::String& GetLatestMetadataSyncStatusMessage() const{ return m_latestMetadataSyncStatusMessage; }
118 inline bool LatestMetadataSyncStatusMessageHasBeenSet() const { return m_latestMetadataSyncStatusMessageHasBeenSet; }
119 inline void SetLatestMetadataSyncStatusMessage(const Aws::String& value) { m_latestMetadataSyncStatusMessageHasBeenSet = true; m_latestMetadataSyncStatusMessage = value; }
120 inline void SetLatestMetadataSyncStatusMessage(Aws::String&& value) { m_latestMetadataSyncStatusMessageHasBeenSet = true; m_latestMetadataSyncStatusMessage = std::move(value); }
121 inline void SetLatestMetadataSyncStatusMessage(const char* value) { m_latestMetadataSyncStatusMessageHasBeenSet = true; m_latestMetadataSyncStatusMessage.assign(value); }
126
128
132 inline const Aws::String& GetLogGroupArn() const{ return m_logGroupArn; }
133 inline bool LogGroupArnHasBeenSet() const { return m_logGroupArnHasBeenSet; }
134 inline void SetLogGroupArn(const Aws::String& value) { m_logGroupArnHasBeenSet = true; m_logGroupArn = value; }
135 inline void SetLogGroupArn(Aws::String&& value) { m_logGroupArnHasBeenSet = true; m_logGroupArn = std::move(value); }
136 inline void SetLogGroupArn(const char* value) { m_logGroupArnHasBeenSet = true; m_logGroupArn.assign(value); }
137 inline HypervisorDetails& WithLogGroupArn(const Aws::String& value) { SetLogGroupArn(value); return *this;}
138 inline HypervisorDetails& WithLogGroupArn(Aws::String&& value) { SetLogGroupArn(std::move(value)); return *this;}
139 inline HypervisorDetails& WithLogGroupArn(const char* value) { SetLogGroupArn(value); return *this;}
141
143
146 inline const Aws::String& GetName() const{ return m_name; }
147 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
148 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
149 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
150 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
151 inline HypervisorDetails& WithName(const Aws::String& value) { SetName(value); return *this;}
152 inline HypervisorDetails& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
153 inline HypervisorDetails& WithName(const char* value) { SetName(value); return *this;}
155
157
162 inline const HypervisorState& GetState() const{ return m_state; }
163 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
164 inline void SetState(const HypervisorState& value) { m_stateHasBeenSet = true; m_state = value; }
165 inline void SetState(HypervisorState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
166 inline HypervisorDetails& WithState(const HypervisorState& value) { SetState(value); return *this;}
167 inline HypervisorDetails& WithState(HypervisorState&& value) { SetState(std::move(value)); return *this;}
169 private:
170
171 Aws::String m_host;
172 bool m_hostHasBeenSet = false;
173
174 Aws::String m_hypervisorArn;
175 bool m_hypervisorArnHasBeenSet = false;
176
177 Aws::String m_kmsKeyArn;
178 bool m_kmsKeyArnHasBeenSet = false;
179
180 Aws::Utils::DateTime m_lastSuccessfulMetadataSyncTime;
181 bool m_lastSuccessfulMetadataSyncTimeHasBeenSet = false;
182
183 SyncMetadataStatus m_latestMetadataSyncStatus;
184 bool m_latestMetadataSyncStatusHasBeenSet = false;
185
186 Aws::String m_latestMetadataSyncStatusMessage;
187 bool m_latestMetadataSyncStatusMessageHasBeenSet = false;
188
189 Aws::String m_logGroupArn;
190 bool m_logGroupArnHasBeenSet = false;
191
192 Aws::String m_name;
193 bool m_nameHasBeenSet = false;
194
195 HypervisorState m_state;
196 bool m_stateHasBeenSet = false;
197 };
198
199} // namespace Model
200} // namespace BackupGateway
201} // namespace Aws
HypervisorDetails & WithKmsKeyArn(Aws::String &&value)
const SyncMetadataStatus & GetLatestMetadataSyncStatus() const
HypervisorDetails & WithLatestMetadataSyncStatus(const SyncMetadataStatus &value)
HypervisorDetails & WithName(const Aws::String &value)
HypervisorDetails & WithHost(const Aws::String &value)
HypervisorDetails & WithLatestMetadataSyncStatusMessage(const Aws::String &value)
HypervisorDetails & WithHypervisorArn(const char *value)
const Aws::String & GetLatestMetadataSyncStatusMessage() const
AWS_BACKUPGATEWAY_API HypervisorDetails(Aws::Utils::Json::JsonView jsonValue)
void SetHypervisorArn(const Aws::String &value)
HypervisorDetails & WithHypervisorArn(Aws::String &&value)
HypervisorDetails & WithLogGroupArn(const Aws::String &value)
void SetLatestMetadataSyncStatus(SyncMetadataStatus &&value)
HypervisorDetails & WithKmsKeyArn(const Aws::String &value)
HypervisorDetails & WithKmsKeyArn(const char *value)
void SetLastSuccessfulMetadataSyncTime(const Aws::Utils::DateTime &value)
HypervisorDetails & WithLatestMetadataSyncStatus(SyncMetadataStatus &&value)
void SetLatestMetadataSyncStatus(const SyncMetadataStatus &value)
HypervisorDetails & WithHypervisorArn(const Aws::String &value)
HypervisorDetails & WithLastSuccessfulMetadataSyncTime(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetLastSuccessfulMetadataSyncTime() const
HypervisorDetails & WithHost(Aws::String &&value)
void SetLatestMetadataSyncStatusMessage(Aws::String &&value)
HypervisorDetails & WithName(Aws::String &&value)
AWS_BACKUPGATEWAY_API HypervisorDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
HypervisorDetails & WithName(const char *value)
HypervisorDetails & WithLogGroupArn(const char *value)
HypervisorDetails & WithHost(const char *value)
HypervisorDetails & WithLatestMetadataSyncStatusMessage(const char *value)
void SetState(const HypervisorState &value)
void SetLastSuccessfulMetadataSyncTime(Aws::Utils::DateTime &&value)
void SetLatestMetadataSyncStatusMessage(const char *value)
HypervisorDetails & WithState(const HypervisorState &value)
void SetKmsKeyArn(const Aws::String &value)
HypervisorDetails & WithLogGroupArn(Aws::String &&value)
HypervisorDetails & WithLatestMetadataSyncStatusMessage(Aws::String &&value)
void SetLatestMetadataSyncStatusMessage(const Aws::String &value)
void SetLogGroupArn(const Aws::String &value)
HypervisorDetails & WithState(HypervisorState &&value)
AWS_BACKUPGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const
HypervisorDetails & WithLastSuccessfulMetadataSyncTime(const Aws::Utils::DateTime &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue