AWS SDK for C++

AWS SDK for C++ Version 1.11.756

Loading...
Searching...
No Matches
PartitionKey.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/timestream-write/TimestreamWrite_EXPORTS.h>
9#include <aws/timestream-write/model/PartitionKeyEnforcementLevel.h>
10#include <aws/timestream-write/model/PartitionKeyType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace TimestreamWrite {
22namespace Model {
23
34 public:
35 AWS_TIMESTREAMWRITE_API PartitionKey() = default;
36 AWS_TIMESTREAMWRITE_API PartitionKey(Aws::Utils::Json::JsonView jsonValue);
37 AWS_TIMESTREAMWRITE_API PartitionKey& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_TIMESTREAMWRITE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
45 inline PartitionKeyType GetType() const { return m_type; }
46 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
47 inline void SetType(PartitionKeyType value) {
48 m_typeHasBeenSet = true;
49 m_type = value;
50 }
52 SetType(value);
53 return *this;
54 }
56
58
61 inline const Aws::String& GetName() const { return m_name; }
62 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
63 template <typename NameT = Aws::String>
64 void SetName(NameT&& value) {
65 m_nameHasBeenSet = true;
66 m_name = std::forward<NameT>(value);
67 }
68 template <typename NameT = Aws::String>
69 PartitionKey& WithName(NameT&& value) {
70 SetName(std::forward<NameT>(value));
71 return *this;
72 }
74
76
81 inline PartitionKeyEnforcementLevel GetEnforcementInRecord() const { return m_enforcementInRecord; }
82 inline bool EnforcementInRecordHasBeenSet() const { return m_enforcementInRecordHasBeenSet; }
84 m_enforcementInRecordHasBeenSet = true;
85 m_enforcementInRecord = value;
86 }
89 return *this;
90 }
92 private:
94
95 Aws::String m_name;
96
98 bool m_typeHasBeenSet = false;
99 bool m_nameHasBeenSet = false;
100 bool m_enforcementInRecordHasBeenSet = false;
101};
102
103} // namespace Model
104} // namespace TimestreamWrite
105} // namespace Aws
const Aws::String & GetName() const
PartitionKey & WithEnforcementInRecord(PartitionKeyEnforcementLevel value)
AWS_TIMESTREAMWRITE_API PartitionKey()=default
AWS_TIMESTREAMWRITE_API PartitionKey(Aws::Utils::Json::JsonView jsonValue)
PartitionKey & WithName(NameT &&value)
AWS_TIMESTREAMWRITE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_TIMESTREAMWRITE_API PartitionKey & operator=(Aws::Utils::Json::JsonView jsonValue)
PartitionKeyEnforcementLevel GetEnforcementInRecord() const
void SetEnforcementInRecord(PartitionKeyEnforcementLevel value)
void SetType(PartitionKeyType value)
PartitionKey & WithType(PartitionKeyType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue