AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
EdgeIdentifier.h
1
6#pragma once
7#include <aws/context/Context_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 Context {
20namespace Model {
21
30 public:
31 AWS_CONTEXT_API EdgeIdentifier() = default;
32 AWS_CONTEXT_API EdgeIdentifier(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_CONTEXT_API EdgeIdentifier& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_CONTEXT_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
35
37
40 inline const Aws::String& GetFrom() const { return m_from; }
41 inline bool FromHasBeenSet() const { return m_fromHasBeenSet; }
42 template <typename FromT = Aws::String>
43 void SetFrom(FromT&& value) {
44 m_fromHasBeenSet = true;
45 m_from = std::forward<FromT>(value);
46 }
47 template <typename FromT = Aws::String>
48 EdgeIdentifier& WithFrom(FromT&& value) {
49 SetFrom(std::forward<FromT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetTo() const { return m_to; }
59 inline bool ToHasBeenSet() const { return m_toHasBeenSet; }
60 template <typename ToT = Aws::String>
61 void SetTo(ToT&& value) {
62 m_toHasBeenSet = true;
63 m_to = std::forward<ToT>(value);
64 }
65 template <typename ToT = Aws::String>
66 EdgeIdentifier& WithTo(ToT&& value) {
67 SetTo(std::forward<ToT>(value));
68 return *this;
69 }
71 private:
72 Aws::String m_from;
73
74 Aws::String m_to;
75 bool m_fromHasBeenSet = false;
76 bool m_toHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace Context
81} // namespace Aws
AWS_CONTEXT_API EdgeIdentifier(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_CONTEXT_API EdgeIdentifier & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const Aws::String & GetFrom() const
EdgeIdentifier & WithFrom(FromT &&value)
EdgeIdentifier & WithTo(ToT &&value)
AWS_CONTEXT_API EdgeIdentifier()=default
const Aws::String & GetTo() const
AWS_CONTEXT_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String