AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
CreditSpecificationRequest.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/CpuCreditsEnum.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 CreditSpecificationRequest() = default;
31 AWS_WORKSPACESINSTANCES_API CreditSpecificationRequest(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
32 AWS_WORKSPACESINSTANCES_API CreditSpecificationRequest& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_WORKSPACESINSTANCES_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
34
36
39 inline CpuCreditsEnum GetCpuCredits() const { return m_cpuCredits; }
40 inline bool CpuCreditsHasBeenSet() const { return m_cpuCreditsHasBeenSet; }
41 inline void SetCpuCredits(CpuCreditsEnum value) {
42 m_cpuCreditsHasBeenSet = true;
43 m_cpuCredits = value;
44 }
46 SetCpuCredits(value);
47 return *this;
48 }
50 private:
52 bool m_cpuCreditsHasBeenSet = false;
53};
54
55} // namespace Model
56} // namespace WorkspacesInstances
57} // namespace Aws
AWS_WORKSPACESINSTANCES_API CreditSpecificationRequest(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_WORKSPACESINSTANCES_API CreditSpecificationRequest()=default
AWS_WORKSPACESINSTANCES_API CreditSpecificationRequest & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_WORKSPACESINSTANCES_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
CreditSpecificationRequest & WithCpuCredits(CpuCreditsEnum value)