AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
ModificationState.h
1
6#pragma once
7#include <aws/crt/cbor/Cbor.h>
8#include <aws/workspaces/WorkSpaces_EXPORTS.h>
9#include <aws/workspaces/model/ModificationResourceEnum.h>
10#include <aws/workspaces/model/ModificationStateEnum.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Cbor {
17class CborValue;
18} // namespace Cbor
19} // namespace Utils
20namespace WorkSpaces {
21namespace Model {
22
29 public:
30 AWS_WORKSPACES_API ModificationState() = default;
31 AWS_WORKSPACES_API ModificationState(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
32 AWS_WORKSPACES_API ModificationState& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_WORKSPACES_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
34
36
39 inline ModificationResourceEnum GetResource() const { return m_resource; }
40 inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; }
42 m_resourceHasBeenSet = true;
43 m_resource = value;
44 }
46 SetResource(value);
47 return *this;
48 }
50
52
55 inline ModificationStateEnum GetState() const { return m_state; }
56 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
57 inline void SetState(ModificationStateEnum value) {
58 m_stateHasBeenSet = true;
59 m_state = value;
60 }
62 SetState(value);
63 return *this;
64 }
66 private:
68
70 bool m_resourceHasBeenSet = false;
71 bool m_stateHasBeenSet = false;
72};
73
74} // namespace Model
75} // namespace WorkSpaces
76} // namespace Aws
AWS_WORKSPACES_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
ModificationStateEnum GetState() const
ModificationState & WithResource(ModificationResourceEnum value)
void SetState(ModificationStateEnum value)
ModificationState & WithState(ModificationStateEnum value)
void SetResource(ModificationResourceEnum value)
ModificationResourceEnum GetResource() const
AWS_WORKSPACES_API ModificationState()=default
AWS_WORKSPACES_API ModificationState & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_WORKSPACES_API ModificationState(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)