AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ClusteringKey.h
1
6#pragma once
7#include <aws/keyspaces/Keyspaces_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/keyspaces/model/SortOrder.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 Keyspaces
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_KEYSPACES_API ClusteringKey();
38 AWS_KEYSPACES_API ClusteringKey(Aws::Utils::Json::JsonView jsonValue);
39 AWS_KEYSPACES_API ClusteringKey& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_KEYSPACES_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetName() const{ return m_name; }
48 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
49 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
50 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
51 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
52 inline ClusteringKey& WithName(const Aws::String& value) { SetName(value); return *this;}
53 inline ClusteringKey& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
54 inline ClusteringKey& WithName(const char* value) { SetName(value); return *this;}
56
58
62 inline const SortOrder& GetOrderBy() const{ return m_orderBy; }
63 inline bool OrderByHasBeenSet() const { return m_orderByHasBeenSet; }
64 inline void SetOrderBy(const SortOrder& value) { m_orderByHasBeenSet = true; m_orderBy = value; }
65 inline void SetOrderBy(SortOrder&& value) { m_orderByHasBeenSet = true; m_orderBy = std::move(value); }
66 inline ClusteringKey& WithOrderBy(const SortOrder& value) { SetOrderBy(value); return *this;}
67 inline ClusteringKey& WithOrderBy(SortOrder&& value) { SetOrderBy(std::move(value)); return *this;}
69 private:
70
71 Aws::String m_name;
72 bool m_nameHasBeenSet = false;
73
74 SortOrder m_orderBy;
75 bool m_orderByHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace Keyspaces
80} // namespace Aws
ClusteringKey & WithName(Aws::String &&value)
AWS_KEYSPACES_API ClusteringKey & operator=(Aws::Utils::Json::JsonView jsonValue)
const SortOrder & GetOrderBy() const
void SetOrderBy(SortOrder &&value)
ClusteringKey & WithName(const char *value)
void SetName(const char *value)
ClusteringKey & WithName(const Aws::String &value)
const Aws::String & GetName() const
void SetOrderBy(const SortOrder &value)
AWS_KEYSPACES_API ClusteringKey(Aws::Utils::Json::JsonView jsonValue)
void SetName(const Aws::String &value)
ClusteringKey & WithOrderBy(SortOrder &&value)
AWS_KEYSPACES_API Aws::Utils::Json::JsonValue Jsonize() const
ClusteringKey & WithOrderBy(const SortOrder &value)
void SetName(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue