AWS SDK for C++

AWS SDK for C++ Version 1.11.717

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/pi/PI_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace PI {
21namespace Model {
22
32 public:
33 AWS_PI_API ResponsePartitionKey() = default;
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=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, Aws::String > & GetDimensions() const
AWS_PI_API ResponsePartitionKey(Aws::Utils::Json::JsonView jsonValue)
ResponsePartitionKey & WithDimensions(DimensionsT &&value)
AWS_PI_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_PI_API ResponsePartitionKey()=default
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Aws::Utils::Json::JsonValue JsonValue