AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename HostT = Aws::String>
52 void SetHost(HostT&& value) { m_hostHasBeenSet = true; m_host = std::forward<HostT>(value); }
53 template<typename HostT = Aws::String>
54 Hypervisor& WithHost(HostT&& value) { SetHost(std::forward<HostT>(value)); return *this;}
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) { m_hypervisorArnHasBeenSet = true; m_hypervisorArn = std::forward<HypervisorArnT>(value); }
65 template<typename HypervisorArnT = Aws::String>
66 Hypervisor& WithHypervisorArn(HypervisorArnT&& value) { SetHypervisorArn(std::forward<HypervisorArnT>(value)); return *this;}
68
70
74 inline const Aws::String& GetKmsKeyArn() const { return m_kmsKeyArn; }
75 inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
76 template<typename KmsKeyArnT = Aws::String>
77 void SetKmsKeyArn(KmsKeyArnT&& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = std::forward<KmsKeyArnT>(value); }
78 template<typename KmsKeyArnT = Aws::String>
79 Hypervisor& WithKmsKeyArn(KmsKeyArnT&& value) { SetKmsKeyArn(std::forward<KmsKeyArnT>(value)); return *this;}
81
83
86 inline const Aws::String& GetName() const { return m_name; }
87 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
88 template<typename NameT = Aws::String>
89 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
90 template<typename NameT = Aws::String>
91 Hypervisor& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
93
95
98 inline HypervisorState GetState() const { return m_state; }
99 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
100 inline void SetState(HypervisorState value) { m_stateHasBeenSet = true; m_state = value; }
101 inline Hypervisor& WithState(HypervisorState value) { SetState(value); return *this;}
103 private:
104
105 Aws::String m_host;
106 bool m_hostHasBeenSet = false;
107
108 Aws::String m_hypervisorArn;
109 bool m_hypervisorArnHasBeenSet = false;
110
111 Aws::String m_kmsKeyArn;
112 bool m_kmsKeyArnHasBeenSet = false;
113
114 Aws::String m_name;
115 bool m_nameHasBeenSet = false;
116
118 bool m_stateHasBeenSet = false;
119 };
120
121} // namespace Model
122} // namespace BackupGateway
123} // namespace Aws
void SetKmsKeyArn(KmsKeyArnT &&value)
Definition Hypervisor.h:77
Hypervisor & WithState(HypervisorState value)
Definition Hypervisor.h:101
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:91
const Aws::String & GetHost() const
Definition Hypervisor.h:49
Hypervisor & WithHypervisorArn(HypervisorArnT &&value)
Definition Hypervisor.h:66
AWS_BACKUPGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetName() const
Definition Hypervisor.h:86
Hypervisor & WithHost(HostT &&value)
Definition Hypervisor.h:54
AWS_BACKUPGATEWAY_API Hypervisor & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BACKUPGATEWAY_API Hypervisor()=default
void SetState(HypervisorState value)
Definition Hypervisor.h:100
HypervisorState GetState() const
Definition Hypervisor.h:98
const Aws::String & GetKmsKeyArn() const
Definition Hypervisor.h:74
Hypervisor & WithKmsKeyArn(KmsKeyArnT &&value)
Definition Hypervisor.h:79
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue