AWS SDK for C++

AWS SDK for C++ Version 1.11.871

Loading...
Searching...
No Matches
EntitlementAttribute.h
1
6#pragma once
7#include <aws/appstream/AppStream_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/crt/cbor/Cbor.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Cbor {
16class CborValue;
17} // namespace Cbor
18} // namespace Utils
19namespace AppStream {
20namespace Model {
21
31 public:
32 AWS_APPSTREAM_API EntitlementAttribute() = default;
33 AWS_APPSTREAM_API EntitlementAttribute(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_APPSTREAM_API EntitlementAttribute& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
35 AWS_APPSTREAM_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
36
38
46 inline const Aws::String& GetName() const { return m_name; }
47 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
48 template <typename NameT = Aws::String>
49 void SetName(NameT&& value) {
50 m_nameHasBeenSet = true;
51 m_name = std::forward<NameT>(value);
52 }
53 template <typename NameT = Aws::String>
55 SetName(std::forward<NameT>(value));
56 return *this;
57 }
59
61
65 inline const Aws::String& GetValue() const { return m_value; }
66 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
67 template <typename ValueT = Aws::String>
68 void SetValue(ValueT&& value) {
69 m_valueHasBeenSet = true;
70 m_value = std::forward<ValueT>(value);
71 }
72 template <typename ValueT = Aws::String>
74 SetValue(std::forward<ValueT>(value));
75 return *this;
76 }
78 private:
79 Aws::String m_name;
80
81 Aws::String m_value;
82 bool m_nameHasBeenSet = false;
83 bool m_valueHasBeenSet = false;
84};
85
86} // namespace Model
87} // namespace AppStream
88} // namespace Aws
AWS_APPSTREAM_API EntitlementAttribute & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
EntitlementAttribute & WithValue(ValueT &&value)
AWS_APPSTREAM_API EntitlementAttribute()=default
AWS_APPSTREAM_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_APPSTREAM_API EntitlementAttribute(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
EntitlementAttribute & WithName(NameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String