AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
UpdateResult.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
31 public:
32 AWS_WORKSPACES_API UpdateResult() = default;
33 AWS_WORKSPACES_API UpdateResult(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_WORKSPACES_API UpdateResult& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
35 AWS_WORKSPACES_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
36
38
42 inline bool GetUpdateAvailable() const { return m_updateAvailable; }
43 inline bool UpdateAvailableHasBeenSet() const { return m_updateAvailableHasBeenSet; }
44 inline void SetUpdateAvailable(bool value) {
45 m_updateAvailableHasBeenSet = true;
46 m_updateAvailable = value;
47 }
48 inline UpdateResult& WithUpdateAvailable(bool value) {
49 SetUpdateAvailable(value);
50 return *this;
51 }
53
55
59 inline const Aws::String& GetDescription() const { return m_description; }
60 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
61 template <typename DescriptionT = Aws::String>
62 void SetDescription(DescriptionT&& value) {
63 m_descriptionHasBeenSet = true;
64 m_description = std::forward<DescriptionT>(value);
65 }
66 template <typename DescriptionT = Aws::String>
67 UpdateResult& WithDescription(DescriptionT&& value) {
68 SetDescription(std::forward<DescriptionT>(value));
69 return *this;
70 }
72 private:
73 bool m_updateAvailable{false};
74
75 Aws::String m_description;
76 bool m_updateAvailableHasBeenSet = false;
77 bool m_descriptionHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace WorkSpaces
82} // namespace Aws
const Aws::String & GetDescription() const
UpdateResult & WithUpdateAvailable(bool value)
AWS_WORKSPACES_API UpdateResult(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_WORKSPACES_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_WORKSPACES_API UpdateResult & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_WORKSPACES_API UpdateResult()=default
UpdateResult & WithDescription(DescriptionT &&value)
void SetDescription(DescriptionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String