AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
ContainerAttribute.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/crt/cbor/Cbor.h>
9#include <aws/network-firewall/NetworkFirewall_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Cbor {
16class CborValue;
17} // namespace Cbor
18} // namespace Utils
19namespace NetworkFirewall {
20namespace Model {
21
31 public:
32 AWS_NETWORKFIREWALL_API ContainerAttribute() = default;
33 AWS_NETWORKFIREWALL_API ContainerAttribute(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_NETWORKFIREWALL_API ContainerAttribute& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
35 AWS_NETWORKFIREWALL_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
36
38
46 inline const Aws::String& GetKey() const { return m_key; }
47 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
48 template <typename KeyT = Aws::String>
49 void SetKey(KeyT&& value) {
50 m_keyHasBeenSet = true;
51 m_key = std::forward<KeyT>(value);
52 }
53 template <typename KeyT = Aws::String>
54 ContainerAttribute& WithKey(KeyT&& value) {
55 SetKey(std::forward<KeyT>(value));
56 return *this;
57 }
59
61
90 inline const Aws::String& GetValue() const { return m_value; }
91 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
92 template <typename ValueT = Aws::String>
93 void SetValue(ValueT&& value) {
94 m_valueHasBeenSet = true;
95 m_value = std::forward<ValueT>(value);
96 }
97 template <typename ValueT = Aws::String>
98 ContainerAttribute& WithValue(ValueT&& value) {
99 SetValue(std::forward<ValueT>(value));
100 return *this;
101 }
103 private:
104 Aws::String m_key;
105
106 Aws::String m_value;
107 bool m_keyHasBeenSet = false;
108 bool m_valueHasBeenSet = false;
109};
110
111} // namespace Model
112} // namespace NetworkFirewall
113} // namespace Aws
AWS_NETWORKFIREWALL_API ContainerAttribute & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_NETWORKFIREWALL_API ContainerAttribute()=default
ContainerAttribute & WithValue(ValueT &&value)
AWS_NETWORKFIREWALL_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
ContainerAttribute & WithKey(KeyT &&value)
AWS_NETWORKFIREWALL_API ContainerAttribute(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String