AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ResponsePartitionKey.h
1
6#pragma once
7#include <aws/pi/PI_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace PI
23{
24namespace Model
25{
26
36 {
37 public:
38 AWS_PI_API ResponsePartitionKey() = default;
42
43
45
48 inline const Aws::Map<Aws::String, Aws::String>& GetDimensions() const { return m_dimensions; }
49 inline bool DimensionsHasBeenSet() const { return m_dimensionsHasBeenSet; }
50 template<typename DimensionsT = Aws::Map<Aws::String, Aws::String>>
51 void SetDimensions(DimensionsT&& value) { m_dimensionsHasBeenSet = true; m_dimensions = std::forward<DimensionsT>(value); }
52 template<typename DimensionsT = Aws::Map<Aws::String, Aws::String>>
53 ResponsePartitionKey& WithDimensions(DimensionsT&& value) { SetDimensions(std::forward<DimensionsT>(value)); return *this;}
54 template<typename DimensionsKeyT = Aws::String, typename DimensionsValueT = Aws::String>
55 ResponsePartitionKey& AddDimensions(DimensionsKeyT&& key, DimensionsValueT&& value) {
56 m_dimensionsHasBeenSet = true; m_dimensions.emplace(std::forward<DimensionsKeyT>(key), std::forward<DimensionsValueT>(value)); return *this;
57 }
59 private:
60
62 bool m_dimensionsHasBeenSet = false;
63 };
64
65} // namespace Model
66} // namespace PI
67} // 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