AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
Hypervisor.h
1
6#pragma once
7#include <aws/backup-gateway/BackupGateway_EXPORTS.h>
8#include <aws/backup-gateway/model/HypervisorState.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace BackupGateway {
21namespace Model {
22
32 public:
33 AWS_BACKUPGATEWAY_API Hypervisor() = default;
34 AWS_BACKUPGATEWAY_API Hypervisor(Aws::Utils::Json::JsonView jsonValue);
35 AWS_BACKUPGATEWAY_API Hypervisor& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_BACKUPGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline const Aws::String& GetHost() const { return m_host; }
44 inline bool HostHasBeenSet() const { return m_hostHasBeenSet; }
45 template <typename HostT = Aws::String>
46 void SetHost(HostT&& value) {
47 m_hostHasBeenSet = true;
48 m_host = std::forward<HostT>(value);
49 }
50 template <typename HostT = Aws::String>
51 Hypervisor& WithHost(HostT&& value) {
52 SetHost(std::forward<HostT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetHypervisorArn() const { return m_hypervisorArn; }
62 inline bool HypervisorArnHasBeenSet() const { return m_hypervisorArnHasBeenSet; }
63 template <typename HypervisorArnT = Aws::String>
64 void SetHypervisorArn(HypervisorArnT&& value) {
65 m_hypervisorArnHasBeenSet = true;
66 m_hypervisorArn = std::forward<HypervisorArnT>(value);
67 }
68 template <typename HypervisorArnT = Aws::String>
69 Hypervisor& WithHypervisorArn(HypervisorArnT&& value) {
70 SetHypervisorArn(std::forward<HypervisorArnT>(value));
71 return *this;
72 }
74
76
80 inline const Aws::String& GetKmsKeyArn() const { return m_kmsKeyArn; }
81 inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
82 template <typename KmsKeyArnT = Aws::String>
83 void SetKmsKeyArn(KmsKeyArnT&& value) {
84 m_kmsKeyArnHasBeenSet = true;
85 m_kmsKeyArn = std::forward<KmsKeyArnT>(value);
86 }
87 template <typename KmsKeyArnT = Aws::String>
88 Hypervisor& WithKmsKeyArn(KmsKeyArnT&& value) {
89 SetKmsKeyArn(std::forward<KmsKeyArnT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::String& GetName() const { return m_name; }
99 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
100 template <typename NameT = Aws::String>
101 void SetName(NameT&& value) {
102 m_nameHasBeenSet = true;
103 m_name = std::forward<NameT>(value);
104 }
105 template <typename NameT = Aws::String>
106 Hypervisor& WithName(NameT&& value) {
107 SetName(std::forward<NameT>(value));
108 return *this;
109 }
111
113
116 inline HypervisorState GetState() const { return m_state; }
117 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
118 inline void SetState(HypervisorState value) {
119 m_stateHasBeenSet = true;
120 m_state = value;
121 }
123 SetState(value);
124 return *this;
125 }
127 private:
128 Aws::String m_host;
129
130 Aws::String m_hypervisorArn;
131
132 Aws::String m_kmsKeyArn;
133
134 Aws::String m_name;
135
137 bool m_hostHasBeenSet = false;
138 bool m_hypervisorArnHasBeenSet = false;
139 bool m_kmsKeyArnHasBeenSet = false;
140 bool m_nameHasBeenSet = false;
141 bool m_stateHasBeenSet = false;
142};
143
144} // namespace Model
145} // namespace BackupGateway
146} // namespace Aws
void SetKmsKeyArn(KmsKeyArnT &&value)
Definition Hypervisor.h:83
Hypervisor & WithState(HypervisorState value)
Definition Hypervisor.h:122
AWS_BACKUPGATEWAY_API Hypervisor(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetHypervisorArn() const
Definition Hypervisor.h:61
void SetHypervisorArn(HypervisorArnT &&value)
Definition Hypervisor.h:64
Hypervisor & WithName(NameT &&value)
Definition Hypervisor.h:106
const Aws::String & GetHost() const
Definition Hypervisor.h:43
Hypervisor & WithHypervisorArn(HypervisorArnT &&value)
Definition Hypervisor.h:69
AWS_BACKUPGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetName() const
Definition Hypervisor.h:98
Hypervisor & WithHost(HostT &&value)
Definition Hypervisor.h:51
AWS_BACKUPGATEWAY_API Hypervisor & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BACKUPGATEWAY_API Hypervisor()=default
void SetState(HypervisorState value)
Definition Hypervisor.h:118
HypervisorState GetState() const
Definition Hypervisor.h:116
const Aws::String & GetKmsKeyArn() const
Definition Hypervisor.h:80
Hypervisor & WithKmsKeyArn(KmsKeyArnT &&value)
Definition Hypervisor.h:88
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue