AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
AccountModel.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/crt/cbor/Cbor.h>
9#include <aws/workspaces/WorkSpaces_EXPORTS.h>
10#include <aws/workspaces/model/AccountModelStatus.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 AccountModel() = default;
31 AWS_WORKSPACES_API AccountModel(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
32 AWS_WORKSPACES_API AccountModel& 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 const Aws::String& GetModelId() const { return m_modelId; }
40 inline bool ModelIdHasBeenSet() const { return m_modelIdHasBeenSet; }
41 template <typename ModelIdT = Aws::String>
42 void SetModelId(ModelIdT&& value) {
43 m_modelIdHasBeenSet = true;
44 m_modelId = std::forward<ModelIdT>(value);
45 }
46 template <typename ModelIdT = Aws::String>
47 AccountModel& WithModelId(ModelIdT&& value) {
48 SetModelId(std::forward<ModelIdT>(value));
49 return *this;
50 }
52
54
58 inline const Aws::String& GetName() const { return m_name; }
59 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
60 template <typename NameT = Aws::String>
61 void SetName(NameT&& value) {
62 m_nameHasBeenSet = true;
63 m_name = std::forward<NameT>(value);
64 }
65 template <typename NameT = Aws::String>
66 AccountModel& WithName(NameT&& value) {
67 SetName(std::forward<NameT>(value));
68 return *this;
69 }
71
73
76 inline AccountModelStatus GetStatus() const { return m_status; }
77 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
78 inline void SetStatus(AccountModelStatus value) {
79 m_statusHasBeenSet = true;
80 m_status = value;
81 }
83 SetStatus(value);
84 return *this;
85 }
87 private:
88 Aws::String m_modelId;
89
90 Aws::String m_name;
91
93 bool m_modelIdHasBeenSet = false;
94 bool m_nameHasBeenSet = false;
95 bool m_statusHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace WorkSpaces
100} // namespace Aws
AccountModel & WithModelId(ModelIdT &&value)
void SetModelId(ModelIdT &&value)
AccountModel & WithName(NameT &&value)
AWS_WORKSPACES_API AccountModel & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AccountModel & WithStatus(AccountModelStatus value)
AWS_WORKSPACES_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AccountModelStatus GetStatus() const
AWS_WORKSPACES_API AccountModel()=default
void SetStatus(AccountModelStatus value)
const Aws::String & GetName() const
AWS_WORKSPACES_API AccountModel(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const Aws::String & GetModelId() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String