AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const PartitionKeyType& GetType() const{ return m_type; }
52 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
53 inline void SetType(const PartitionKeyType& value) { m_typeHasBeenSet = true; m_type = value; }
54 inline void SetType(PartitionKeyType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
55 inline PartitionKey& WithType(const PartitionKeyType& value) { SetType(value); return *this;}
56 inline PartitionKey& WithType(PartitionKeyType&& value) { SetType(std::move(value)); return *this;}
58
60
63 inline const Aws::String& GetName() const{ return m_name; }
64 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
65 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
66 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
67 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
68 inline PartitionKey& WithName(const Aws::String& value) { SetName(value); return *this;}
69 inline PartitionKey& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
70 inline PartitionKey& WithName(const char* value) { SetName(value); return *this;}
72
74
79 inline const PartitionKeyEnforcementLevel& GetEnforcementInRecord() const{ return m_enforcementInRecord; }
80 inline bool EnforcementInRecordHasBeenSet() const { return m_enforcementInRecordHasBeenSet; }
81 inline void SetEnforcementInRecord(const PartitionKeyEnforcementLevel& value) { m_enforcementInRecordHasBeenSet = true; m_enforcementInRecord = value; }
82 inline void SetEnforcementInRecord(PartitionKeyEnforcementLevel&& value) { m_enforcementInRecordHasBeenSet = true; m_enforcementInRecord = std::move(value); }
86 private:
87
88 PartitionKeyType m_type;
89 bool m_typeHasBeenSet = false;
90
91 Aws::String m_name;
92 bool m_nameHasBeenSet = false;
93
94 PartitionKeyEnforcementLevel m_enforcementInRecord;
95 bool m_enforcementInRecordHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace TimestreamWrite
100} // namespace Aws
const Aws::String & GetName() const
void SetName(const Aws::String &value)
void SetEnforcementInRecord(const PartitionKeyEnforcementLevel &value)
AWS_TIMESTREAMWRITE_API PartitionKey(Aws::Utils::Json::JsonView jsonValue)
const PartitionKeyType & GetType() const
PartitionKey & WithName(const Aws::String &value)
AWS_TIMESTREAMWRITE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_TIMESTREAMWRITE_API PartitionKey & operator=(Aws::Utils::Json::JsonView jsonValue)
PartitionKey & WithType(PartitionKeyType &&value)
const PartitionKeyEnforcementLevel & GetEnforcementInRecord() const
PartitionKey & WithName(Aws::String &&value)
AWS_TIMESTREAMWRITE_API PartitionKey()
PartitionKey & WithEnforcementInRecord(const PartitionKeyEnforcementLevel &value)
PartitionKey & WithType(const PartitionKeyType &value)
PartitionKey & WithName(const char *value)
PartitionKey & WithEnforcementInRecord(PartitionKeyEnforcementLevel &&value)
void SetType(PartitionKeyType &&value)
void SetType(const PartitionKeyType &value)
void SetEnforcementInRecord(PartitionKeyEnforcementLevel &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue