AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Hypervisor.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/backup-gateway/model/HypervisorState.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
36 {
37 public:
38 AWS_BACKUPGATEWAY_API Hypervisor();
39 AWS_BACKUPGATEWAY_API Hypervisor(Aws::Utils::Json::JsonView jsonValue);
40 AWS_BACKUPGATEWAY_API Hypervisor& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_BACKUPGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline const Aws::String& GetHost() const{ return m_host; }
50 inline bool HostHasBeenSet() const { return m_hostHasBeenSet; }
51 inline void SetHost(const Aws::String& value) { m_hostHasBeenSet = true; m_host = value; }
52 inline void SetHost(Aws::String&& value) { m_hostHasBeenSet = true; m_host = std::move(value); }
53 inline void SetHost(const char* value) { m_hostHasBeenSet = true; m_host.assign(value); }
54 inline Hypervisor& WithHost(const Aws::String& value) { SetHost(value); return *this;}
55 inline Hypervisor& WithHost(Aws::String&& value) { SetHost(std::move(value)); return *this;}
56 inline Hypervisor& WithHost(const char* value) { SetHost(value); return *this;}
58
60
63 inline const Aws::String& GetHypervisorArn() const{ return m_hypervisorArn; }
64 inline bool HypervisorArnHasBeenSet() const { return m_hypervisorArnHasBeenSet; }
65 inline void SetHypervisorArn(const Aws::String& value) { m_hypervisorArnHasBeenSet = true; m_hypervisorArn = value; }
66 inline void SetHypervisorArn(Aws::String&& value) { m_hypervisorArnHasBeenSet = true; m_hypervisorArn = std::move(value); }
67 inline void SetHypervisorArn(const char* value) { m_hypervisorArnHasBeenSet = true; m_hypervisorArn.assign(value); }
68 inline Hypervisor& WithHypervisorArn(const Aws::String& value) { SetHypervisorArn(value); return *this;}
69 inline Hypervisor& WithHypervisorArn(Aws::String&& value) { SetHypervisorArn(std::move(value)); return *this;}
70 inline Hypervisor& WithHypervisorArn(const char* value) { SetHypervisorArn(value); return *this;}
72
74
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 Hypervisor& WithKmsKeyArn(const Aws::String& value) { SetKmsKeyArn(value); return *this;}
84 inline Hypervisor& WithKmsKeyArn(Aws::String&& value) { SetKmsKeyArn(std::move(value)); return *this;}
85 inline Hypervisor& WithKmsKeyArn(const char* value) { SetKmsKeyArn(value); return *this;}
87
89
92 inline const Aws::String& GetName() const{ return m_name; }
93 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
94 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
95 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
96 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
97 inline Hypervisor& WithName(const Aws::String& value) { SetName(value); return *this;}
98 inline Hypervisor& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
99 inline Hypervisor& WithName(const char* value) { SetName(value); return *this;}
101
103
106 inline const HypervisorState& GetState() const{ return m_state; }
107 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
108 inline void SetState(const HypervisorState& value) { m_stateHasBeenSet = true; m_state = value; }
109 inline void SetState(HypervisorState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
110 inline Hypervisor& WithState(const HypervisorState& value) { SetState(value); return *this;}
111 inline Hypervisor& WithState(HypervisorState&& value) { SetState(std::move(value)); return *this;}
113 private:
114
115 Aws::String m_host;
116 bool m_hostHasBeenSet = false;
117
118 Aws::String m_hypervisorArn;
119 bool m_hypervisorArnHasBeenSet = false;
120
121 Aws::String m_kmsKeyArn;
122 bool m_kmsKeyArnHasBeenSet = false;
123
124 Aws::String m_name;
125 bool m_nameHasBeenSet = false;
126
127 HypervisorState m_state;
128 bool m_stateHasBeenSet = false;
129 };
130
131} // namespace Model
132} // namespace BackupGateway
133} // namespace Aws
Hypervisor & WithKmsKeyArn(const char *value)
Definition Hypervisor.h:85
Hypervisor & WithHost(const Aws::String &value)
Definition Hypervisor.h:54
void SetKmsKeyArn(const char *value)
Definition Hypervisor.h:82
Hypervisor & WithHost(Aws::String &&value)
Definition Hypervisor.h:55
void SetState(const HypervisorState &value)
Definition Hypervisor.h:108
AWS_BACKUPGATEWAY_API Hypervisor(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetHypervisorArn() const
Definition Hypervisor.h:63
void SetHypervisorArn(const char *value)
Definition Hypervisor.h:67
Hypervisor & WithKmsKeyArn(const Aws::String &value)
Definition Hypervisor.h:83
Hypervisor & WithName(const char *value)
Definition Hypervisor.h:99
void SetKmsKeyArn(const Aws::String &value)
Definition Hypervisor.h:80
Hypervisor & WithHypervisorArn(Aws::String &&value)
Definition Hypervisor.h:69
Hypervisor & WithState(const HypervisorState &value)
Definition Hypervisor.h:110
const Aws::String & GetHost() const
Definition Hypervisor.h:49
Hypervisor & WithKmsKeyArn(Aws::String &&value)
Definition Hypervisor.h:84
void SetHost(const char *value)
Definition Hypervisor.h:53
void SetHypervisorArn(Aws::String &&value)
Definition Hypervisor.h:66
void SetHost(Aws::String &&value)
Definition Hypervisor.h:52
const HypervisorState & GetState() const
Definition Hypervisor.h:106
Hypervisor & WithState(HypervisorState &&value)
Definition Hypervisor.h:111
Hypervisor & WithName(const Aws::String &value)
Definition Hypervisor.h:97
Hypervisor & WithName(Aws::String &&value)
Definition Hypervisor.h:98
AWS_BACKUPGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetKmsKeyArn(Aws::String &&value)
Definition Hypervisor.h:81
void SetHypervisorArn(const Aws::String &value)
Definition Hypervisor.h:65
const Aws::String & GetName() const
Definition Hypervisor.h:92
Hypervisor & WithHypervisorArn(const Aws::String &value)
Definition Hypervisor.h:68
void SetHost(const Aws::String &value)
Definition Hypervisor.h:51
void SetName(const Aws::String &value)
Definition Hypervisor.h:94
AWS_BACKUPGATEWAY_API Hypervisor & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetName(const char *value)
Definition Hypervisor.h:96
void SetName(Aws::String &&value)
Definition Hypervisor.h:95
Hypervisor & WithHost(const char *value)
Definition Hypervisor.h:56
void SetState(HypervisorState &&value)
Definition Hypervisor.h:109
const Aws::String & GetKmsKeyArn() const
Definition Hypervisor.h:78
Hypervisor & WithHypervisorArn(const char *value)
Definition Hypervisor.h:70
AWS_BACKUPGATEWAY_API Hypervisor()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue