AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Schema.h
1
6#pragma once
7#include <aws/timestream-write/TimestreamWrite_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/timestream-write/model/PartitionKey.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 TimestreamWrite
23{
24namespace Model
25{
26
33 class Schema
34 {
35 public:
36 AWS_TIMESTREAMWRITE_API Schema();
37 AWS_TIMESTREAMWRITE_API Schema(Aws::Utils::Json::JsonView jsonValue);
38 AWS_TIMESTREAMWRITE_API Schema& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_TIMESTREAMWRITE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
50 inline const Aws::Vector<PartitionKey>& GetCompositePartitionKey() const{ return m_compositePartitionKey; }
51 inline bool CompositePartitionKeyHasBeenSet() const { return m_compositePartitionKeyHasBeenSet; }
52 inline void SetCompositePartitionKey(const Aws::Vector<PartitionKey>& value) { m_compositePartitionKeyHasBeenSet = true; m_compositePartitionKey = value; }
53 inline void SetCompositePartitionKey(Aws::Vector<PartitionKey>&& value) { m_compositePartitionKeyHasBeenSet = true; m_compositePartitionKey = std::move(value); }
55 inline Schema& WithCompositePartitionKey(Aws::Vector<PartitionKey>&& value) { SetCompositePartitionKey(std::move(value)); return *this;}
56 inline Schema& AddCompositePartitionKey(const PartitionKey& value) { m_compositePartitionKeyHasBeenSet = true; m_compositePartitionKey.push_back(value); return *this; }
57 inline Schema& AddCompositePartitionKey(PartitionKey&& value) { m_compositePartitionKeyHasBeenSet = true; m_compositePartitionKey.push_back(std::move(value)); return *this; }
59 private:
60
61 Aws::Vector<PartitionKey> m_compositePartitionKey;
62 bool m_compositePartitionKeyHasBeenSet = false;
63 };
64
65} // namespace Model
66} // namespace TimestreamWrite
67} // namespace Aws
Schema & AddCompositePartitionKey(PartitionKey &&value)
Definition Schema.h:57
void SetCompositePartitionKey(Aws::Vector< PartitionKey > &&value)
Definition Schema.h:53
AWS_TIMESTREAMWRITE_API Schema(Aws::Utils::Json::JsonView jsonValue)
AWS_TIMESTREAMWRITE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_TIMESTREAMWRITE_API Schema & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_TIMESTREAMWRITE_API Schema()
Schema & WithCompositePartitionKey(Aws::Vector< PartitionKey > &&value)
Definition Schema.h:55
void SetCompositePartitionKey(const Aws::Vector< PartitionKey > &value)
Definition Schema.h:52
Schema & WithCompositePartitionKey(const Aws::Vector< PartitionKey > &value)
Definition Schema.h:54
const Aws::Vector< PartitionKey > & GetCompositePartitionKey() const
Definition Schema.h:50
Schema & AddCompositePartitionKey(const PartitionKey &value)
Definition Schema.h:56
bool CompositePartitionKeyHasBeenSet() const
Definition Schema.h:51
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue