AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
ResourceSelector.h
1
6#pragma once
7#include <aws/context/Context_EXPORTS.h>
8#include <aws/context/model/PathSegment.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/crt/cbor/Cbor.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Cbor {
17class CborValue;
18} // namespace Cbor
19} // namespace Utils
20namespace Context {
21namespace Model {
22
33 public:
34 AWS_CONTEXT_API ResourceSelector() = default;
35 AWS_CONTEXT_API ResourceSelector(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
36 AWS_CONTEXT_API ResourceSelector& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
37 AWS_CONTEXT_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
38
40
44 inline const Aws::Vector<PathSegment>& GetPath() const { return m_path; }
45 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
46 template <typename PathT = Aws::Vector<PathSegment>>
47 void SetPath(PathT&& value) {
48 m_pathHasBeenSet = true;
49 m_path = std::forward<PathT>(value);
50 }
51 template <typename PathT = Aws::Vector<PathSegment>>
52 ResourceSelector& WithPath(PathT&& value) {
53 SetPath(std::forward<PathT>(value));
54 return *this;
55 }
56 template <typename PathT = PathSegment>
57 ResourceSelector& AddPath(PathT&& value) {
58 m_pathHasBeenSet = true;
59 m_path.emplace_back(std::forward<PathT>(value));
60 return *this;
61 }
63 private:
65 bool m_pathHasBeenSet = false;
66};
67
68} // namespace Model
69} // namespace Context
70} // namespace Aws
const Aws::Vector< PathSegment > & GetPath() const
ResourceSelector & WithPath(PathT &&value)
AWS_CONTEXT_API ResourceSelector & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_CONTEXT_API ResourceSelector()=default
AWS_CONTEXT_API ResourceSelector(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
ResourceSelector & AddPath(PathT &&value)
AWS_CONTEXT_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
std::vector< T, Aws::Allocator< T > > Vector