AWS SDK for C++

AWS SDK for C++ Version 1.11.916

Loading...
Searching...
No Matches
ResponsePartitionKey.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/crt/cbor/Cbor.h>
10#include <aws/pi/PI_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Cbor {
17class CborValue;
18} // namespace Cbor
19} // namespace Utils
20namespace PI {
21namespace Model {
22
32 public:
33 AWS_PI_API ResponsePartitionKey() = default;
34 AWS_PI_API ResponsePartitionKey(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
35 AWS_PI_API ResponsePartitionKey& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
36 AWS_PI_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
37
39
42 inline const Aws::Map<Aws::String, Aws::String>& GetDimensions() const { return m_dimensions; }
43 inline bool DimensionsHasBeenSet() const { return m_dimensionsHasBeenSet; }
44 template <typename DimensionsT = Aws::Map<Aws::String, Aws::String>>
45 void SetDimensions(DimensionsT&& value) {
46 m_dimensionsHasBeenSet = true;
47 m_dimensions = std::forward<DimensionsT>(value);
48 }
49 template <typename DimensionsT = Aws::Map<Aws::String, Aws::String>>
50 ResponsePartitionKey& WithDimensions(DimensionsT&& value) {
51 SetDimensions(std::forward<DimensionsT>(value));
52 return *this;
53 }
54 template <typename DimensionsKeyT = Aws::String, typename DimensionsValueT = Aws::String>
55 ResponsePartitionKey& AddDimensions(DimensionsKeyT&& key, DimensionsValueT&& value) {
56 m_dimensionsHasBeenSet = true;
57 m_dimensions.emplace(std::forward<DimensionsKeyT>(key), std::forward<DimensionsValueT>(value));
58 return *this;
59 }
61 private:
63 bool m_dimensionsHasBeenSet = false;
64};
65
66} // namespace Model
67} // namespace PI
68} // namespace Aws
ResponsePartitionKey & AddDimensions(DimensionsKeyT &&key, DimensionsValueT &&value)
AWS_PI_API ResponsePartitionKey & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_PI_API ResponsePartitionKey(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const Aws::Map< Aws::String, Aws::String > & GetDimensions() const
ResponsePartitionKey & WithDimensions(DimensionsT &&value)
AWS_PI_API ResponsePartitionKey()=default
AWS_PI_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map