AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
SupportedInstanceConfiguration.h
1
6#pragma once
7#include <aws/crt/cbor/Cbor.h>
8#include <aws/workspaces-instances/WorkspacesInstances_EXPORTS.h>
9#include <aws/workspaces-instances/model/BillingMode.h>
10#include <aws/workspaces-instances/model/InstanceConfigurationTenancyEnum.h>
11#include <aws/workspaces-instances/model/PlatformTypeEnum.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Cbor {
18class CborValue;
19} // namespace Cbor
20} // namespace Utils
21namespace WorkspacesInstances {
22namespace Model {
23
32 public:
33 AWS_WORKSPACESINSTANCES_API SupportedInstanceConfiguration() = default;
34 AWS_WORKSPACESINSTANCES_API SupportedInstanceConfiguration(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
35 AWS_WORKSPACESINSTANCES_API SupportedInstanceConfiguration& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
36 AWS_WORKSPACESINSTANCES_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
37
39
42 inline BillingMode GetBillingMode() const { return m_billingMode; }
43 inline bool BillingModeHasBeenSet() const { return m_billingModeHasBeenSet; }
44 inline void SetBillingMode(BillingMode value) {
45 m_billingModeHasBeenSet = true;
46 m_billingMode = value;
47 }
49 SetBillingMode(value);
50 return *this;
51 }
53
55
59 inline PlatformTypeEnum GetPlatformType() const { return m_platformType; }
60 inline bool PlatformTypeHasBeenSet() const { return m_platformTypeHasBeenSet; }
61 inline void SetPlatformType(PlatformTypeEnum value) {
62 m_platformTypeHasBeenSet = true;
63 m_platformType = value;
64 }
66 SetPlatformType(value);
67 return *this;
68 }
70
72
75 inline InstanceConfigurationTenancyEnum GetTenancy() const { return m_tenancy; }
76 inline bool TenancyHasBeenSet() const { return m_tenancyHasBeenSet; }
78 m_tenancyHasBeenSet = true;
79 m_tenancy = value;
80 }
86 private:
87 BillingMode m_billingMode{BillingMode::NOT_SET};
88
90
92 bool m_billingModeHasBeenSet = false;
93 bool m_platformTypeHasBeenSet = false;
94 bool m_tenancyHasBeenSet = false;
95};
96
97} // namespace Model
98} // namespace WorkspacesInstances
99} // namespace Aws
SupportedInstanceConfiguration & WithPlatformType(PlatformTypeEnum value)
AWS_WORKSPACESINSTANCES_API SupportedInstanceConfiguration & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_WORKSPACESINSTANCES_API SupportedInstanceConfiguration()=default
AWS_WORKSPACESINSTANCES_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
SupportedInstanceConfiguration & WithBillingMode(BillingMode value)
SupportedInstanceConfiguration & WithTenancy(InstanceConfigurationTenancyEnum value)
AWS_WORKSPACESINSTANCES_API SupportedInstanceConfiguration(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)