AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
Dimension.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
36class Dimension {
37 public:
38 AWS_NETWORKFIREWALL_API Dimension() = default;
39 AWS_NETWORKFIREWALL_API Dimension(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
40 AWS_NETWORKFIREWALL_API Dimension& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
41 AWS_NETWORKFIREWALL_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
42
44
47 inline const Aws::String& GetValue() const { return m_value; }
48 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
49 template <typename ValueT = Aws::String>
50 void SetValue(ValueT&& value) {
51 m_valueHasBeenSet = true;
52 m_value = std::forward<ValueT>(value);
53 }
54 template <typename ValueT = Aws::String>
55 Dimension& WithValue(ValueT&& value) {
56 SetValue(std::forward<ValueT>(value));
57 return *this;
58 }
60 private:
61 Aws::String m_value;
62 bool m_valueHasBeenSet = false;
63};
64
65} // namespace Model
66} // namespace NetworkFirewall
67} // namespace Aws
AWS_NETWORKFIREWALL_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
const Aws::String & GetValue() const
Definition Dimension.h:47
AWS_NETWORKFIREWALL_API Dimension & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
Dimension & WithValue(ValueT &&value)
Definition Dimension.h:55
AWS_NETWORKFIREWALL_API Dimension()=default
AWS_NETWORKFIREWALL_API Dimension(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String