AWS SDK for C++

AWS SDK for C++ Version 1.11.901

Loading...
Searching...
No Matches
AccessGrantPrincipalAttribute.h
1
6#pragma once
7#include <aws/cloudwatchomni/CloudWatchOmni_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 CloudWatchOmni {
20namespace Model {
21
29 public:
30 AWS_CLOUDWATCHOMNI_API AccessGrantPrincipalAttribute() = default;
31 AWS_CLOUDWATCHOMNI_API AccessGrantPrincipalAttribute(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
32 AWS_CLOUDWATCHOMNI_API AccessGrantPrincipalAttribute& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_CLOUDWATCHOMNI_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
34
36
43 inline const Aws::String& GetKey() const { return m_key; }
44 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
45 template <typename KeyT = Aws::String>
46 void SetKey(KeyT&& value) {
47 m_keyHasBeenSet = true;
48 m_key = std::forward<KeyT>(value);
49 }
50 template <typename KeyT = Aws::String>
52 SetKey(std::forward<KeyT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetValue() const { return m_value; }
62 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
63 template <typename ValueT = Aws::String>
64 void SetValue(ValueT&& value) {
65 m_valueHasBeenSet = true;
66 m_value = std::forward<ValueT>(value);
67 }
68 template <typename ValueT = Aws::String>
70 SetValue(std::forward<ValueT>(value));
71 return *this;
72 }
74 private:
75 Aws::String m_key;
76
77 Aws::String m_value;
78 bool m_keyHasBeenSet = false;
79 bool m_valueHasBeenSet = false;
80};
81
82} // namespace Model
83} // namespace CloudWatchOmni
84} // namespace Aws
AccessGrantPrincipalAttribute & WithValue(ValueT &&value)
AWS_CLOUDWATCHOMNI_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_CLOUDWATCHOMNI_API AccessGrantPrincipalAttribute()=default
AWS_CLOUDWATCHOMNI_API AccessGrantPrincipalAttribute(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_CLOUDWATCHOMNI_API AccessGrantPrincipalAttribute & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String