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#include <aws/crt/cbor/Cbor.h>
20namespace BackupGateway {
34 AWS_BACKUPGATEWAY_API
Hypervisor(
const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
35 AWS_BACKUPGATEWAY_API
Hypervisor&
operator=(
const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
36 AWS_BACKUPGATEWAY_API
void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder)
const;
45 template <
typename HostT = Aws::String>
47 m_hostHasBeenSet =
true;
48 m_host = std::forward<HostT>(value);
50 template <
typename HostT = Aws::String>
52 SetHost(std::forward<HostT>(value));
63 template <
typename HypervisorArnT = Aws::String>
65 m_hypervisorArnHasBeenSet =
true;
66 m_hypervisorArn = std::forward<HypervisorArnT>(value);
68 template <
typename HypervisorArnT = Aws::String>
82 template <
typename KmsKeyArnT = Aws::String>
84 m_kmsKeyArnHasBeenSet =
true;
85 m_kmsKeyArn = std::forward<KmsKeyArnT>(value);
87 template <
typename KmsKeyArnT = Aws::String>
100 template <
typename NameT = Aws::String>
102 m_nameHasBeenSet =
true;
103 m_name = std::forward<NameT>(value);
105 template <
typename NameT = Aws::String>
107 SetName(std::forward<NameT>(value));
119 m_stateHasBeenSet =
true;
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;
bool KmsKeyArnHasBeenSet() const
bool NameHasBeenSet() const
AWS_BACKUPGATEWAY_API Hypervisor & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
void SetName(NameT &&value)
void SetKmsKeyArn(KmsKeyArnT &&value)
Hypervisor & WithState(HypervisorState value)
const Aws::String & GetHypervisorArn() const
AWS_BACKUPGATEWAY_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
void SetHypervisorArn(HypervisorArnT &&value)
AWS_BACKUPGATEWAY_API Hypervisor(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
bool HostHasBeenSet() const
Hypervisor & WithName(NameT &&value)
const Aws::String & GetHost() const
Hypervisor & WithHypervisorArn(HypervisorArnT &&value)
void SetHost(HostT &&value)
const Aws::String & GetName() const
Hypervisor & WithHost(HostT &&value)
AWS_BACKUPGATEWAY_API Hypervisor()=default
bool HypervisorArnHasBeenSet() const
void SetState(HypervisorState value)
HypervisorState GetState() const
const Aws::String & GetKmsKeyArn() const
Hypervisor & WithKmsKeyArn(KmsKeyArnT &&value)
bool StateHasBeenSet() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String