AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
PartitionKey.h
1
6#pragma once
7#include <aws/timestream-write/TimestreamWrite_EXPORTS.h>
8#include <aws/timestream-write/model/PartitionKeyType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/timestream-write/model/PartitionKeyEnforcementLevel.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace TimestreamWrite
24{
25namespace Model
26{
27
38 {
39 public:
40 AWS_TIMESTREAMWRITE_API PartitionKey() = default;
41 AWS_TIMESTREAMWRITE_API PartitionKey(Aws::Utils::Json::JsonView jsonValue);
42 AWS_TIMESTREAMWRITE_API PartitionKey& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_TIMESTREAMWRITE_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
51 inline PartitionKeyType GetType() const { return m_type; }
52 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
53 inline void SetType(PartitionKeyType value) { m_typeHasBeenSet = true; m_type = value; }
54 inline PartitionKey& WithType(PartitionKeyType value) { SetType(value); return *this;}
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) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
65 template<typename NameT = Aws::String>
66 PartitionKey& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
68
70
75 inline PartitionKeyEnforcementLevel GetEnforcementInRecord() const { return m_enforcementInRecord; }
76 inline bool EnforcementInRecordHasBeenSet() const { return m_enforcementInRecordHasBeenSet; }
77 inline void SetEnforcementInRecord(PartitionKeyEnforcementLevel value) { m_enforcementInRecordHasBeenSet = true; m_enforcementInRecord = value; }
80 private:
81
83 bool m_typeHasBeenSet = false;
84
85 Aws::String m_name;
86 bool m_nameHasBeenSet = false;
87
89 bool m_enforcementInRecordHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace TimestreamWrite
94} // 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