AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
Model.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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Cbor {
16class CborValue;
17} // namespace Cbor
18} // namespace Utils
19namespace WorkSpaces {
20namespace Model {
21
27class Model {
28 public:
29 AWS_WORKSPACES_API Model() = default;
30 AWS_WORKSPACES_API Model(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
31 AWS_WORKSPACES_API Model& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
32 AWS_WORKSPACES_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
33
35
38 inline const Aws::String& GetModelId() const { return m_modelId; }
39 inline bool ModelIdHasBeenSet() const { return m_modelIdHasBeenSet; }
40 template <typename ModelIdT = Aws::String>
41 void SetModelId(ModelIdT&& value) {
42 m_modelIdHasBeenSet = true;
43 m_modelId = std::forward<ModelIdT>(value);
44 }
45 template <typename ModelIdT = Aws::String>
46 Model& WithModelId(ModelIdT&& value) {
47 SetModelId(std::forward<ModelIdT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetName() const { return m_name; }
57 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
58 template <typename NameT = Aws::String>
59 void SetName(NameT&& value) {
60 m_nameHasBeenSet = true;
61 m_name = std::forward<NameT>(value);
62 }
63 template <typename NameT = Aws::String>
64 Model& WithName(NameT&& value) {
65 SetName(std::forward<NameT>(value));
66 return *this;
67 }
69 private:
70 Aws::String m_modelId;
71
72 Aws::String m_name;
73 bool m_modelIdHasBeenSet = false;
74 bool m_nameHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace WorkSpaces
79} // namespace Aws
void SetModelId(ModelIdT &&value)
Definition Model.h:41
AWS_WORKSPACES_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
Model & WithName(NameT &&value)
Definition Model.h:64
const Aws::String & GetModelId() const
Definition Model.h:38
AWS_WORKSPACES_API Model(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_WORKSPACES_API Model()=default
AWS_WORKSPACES_API Model & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
void SetName(NameT &&value)
Definition Model.h:59
Model & WithModelId(ModelIdT &&value)
Definition Model.h:46
bool ModelIdHasBeenSet() const
Definition Model.h:39
bool NameHasBeenSet() const
Definition Model.h:57
const Aws::String & GetName() const
Definition Model.h:56
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String