AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ClusteringKey.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/keyspaces/Keyspaces_EXPORTS.h>
9#include <aws/keyspaces/model/SortOrder.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Keyspaces {
21namespace Model {
22
31 public:
32 AWS_KEYSPACES_API ClusteringKey() = default;
33 AWS_KEYSPACES_API ClusteringKey(Aws::Utils::Json::JsonView jsonValue);
34 AWS_KEYSPACES_API ClusteringKey& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_KEYSPACES_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetName() const { return m_name; }
42 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
43 template <typename NameT = Aws::String>
44 void SetName(NameT&& value) {
45 m_nameHasBeenSet = true;
46 m_name = std::forward<NameT>(value);
47 }
48 template <typename NameT = Aws::String>
49 ClusteringKey& WithName(NameT&& value) {
50 SetName(std::forward<NameT>(value));
51 return *this;
52 }
54
56
60 inline SortOrder GetOrderBy() const { return m_orderBy; }
61 inline bool OrderByHasBeenSet() const { return m_orderByHasBeenSet; }
62 inline void SetOrderBy(SortOrder value) {
63 m_orderByHasBeenSet = true;
64 m_orderBy = value;
65 }
67 SetOrderBy(value);
68 return *this;
69 }
71 private:
72 Aws::String m_name;
73
75 bool m_nameHasBeenSet = false;
76 bool m_orderByHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace Keyspaces
81} // namespace Aws
AWS_KEYSPACES_API ClusteringKey & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetName() const
ClusteringKey & WithName(NameT &&value)
AWS_KEYSPACES_API ClusteringKey(Aws::Utils::Json::JsonView jsonValue)
AWS_KEYSPACES_API ClusteringKey()=default
AWS_KEYSPACES_API Aws::Utils::Json::JsonValue Jsonize() const
ClusteringKey & WithOrderBy(SortOrder value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue