AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
BillingConfiguration.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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Cbor {
16class CborValue;
17} // namespace Cbor
18} // namespace Utils
19namespace WorkspacesInstances {
20namespace Model {
21
29 public:
30 AWS_WORKSPACESINSTANCES_API BillingConfiguration() = default;
31 AWS_WORKSPACESINSTANCES_API BillingConfiguration(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
32 AWS_WORKSPACESINSTANCES_API BillingConfiguration& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_WORKSPACESINSTANCES_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
34
36
41 inline BillingMode GetBillingMode() const { return m_billingMode; }
42 inline bool BillingModeHasBeenSet() const { return m_billingModeHasBeenSet; }
43 inline void SetBillingMode(BillingMode value) {
44 m_billingModeHasBeenSet = true;
45 m_billingMode = value;
46 }
48 SetBillingMode(value);
49 return *this;
50 }
52 private:
53 BillingMode m_billingMode{BillingMode::NOT_SET};
54 bool m_billingModeHasBeenSet = false;
55};
56
57} // namespace Model
58} // namespace WorkspacesInstances
59} // namespace Aws
AWS_WORKSPACESINSTANCES_API BillingConfiguration & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_WORKSPACESINSTANCES_API BillingConfiguration(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_WORKSPACESINSTANCES_API BillingConfiguration()=default
BillingConfiguration & WithBillingMode(BillingMode value)
AWS_WORKSPACESINSTANCES_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const