AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
PathSegment.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
55 public:
56 AWS_CONTEXT_API PathSegment() = default;
57 AWS_CONTEXT_API PathSegment(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
58 AWS_CONTEXT_API PathSegment& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
59 AWS_CONTEXT_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
60
62
66 inline const Aws::String& GetLevel() const { return m_level; }
67 inline bool LevelHasBeenSet() const { return m_levelHasBeenSet; }
68 template <typename LevelT = Aws::String>
69 void SetLevel(LevelT&& value) {
70 m_levelHasBeenSet = true;
71 m_level = std::forward<LevelT>(value);
72 }
73 template <typename LevelT = Aws::String>
74 PathSegment& WithLevel(LevelT&& value) {
75 SetLevel(std::forward<LevelT>(value));
76 return *this;
77 }
79
81
86 inline const Aws::String& GetId() const { return m_id; }
87 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
88 template <typename IdT = Aws::String>
89 void SetId(IdT&& value) {
90 m_idHasBeenSet = true;
91 m_id = std::forward<IdT>(value);
92 }
93 template <typename IdT = Aws::String>
94 PathSegment& WithId(IdT&& value) {
95 SetId(std::forward<IdT>(value));
96 return *this;
97 }
99 private:
100 Aws::String m_level;
101
102 Aws::String m_id;
103 bool m_levelHasBeenSet = false;
104 bool m_idHasBeenSet = false;
105};
106
107} // namespace Model
108} // namespace Context
109} // namespace Aws
AWS_CONTEXT_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
void SetLevel(LevelT &&value)
Definition PathSegment.h:69
AWS_CONTEXT_API PathSegment()=default
PathSegment & WithLevel(LevelT &&value)
Definition PathSegment.h:74
const Aws::String & GetLevel() const
Definition PathSegment.h:66
const Aws::String & GetId() const
Definition PathSegment.h:86
AWS_CONTEXT_API PathSegment(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
PathSegment & WithId(IdT &&value)
Definition PathSegment.h:94
AWS_CONTEXT_API PathSegment & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String