AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
PartitionIndex.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/glue/Glue_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Glue {
21namespace Model {
22
29 public:
30 AWS_GLUE_API PartitionIndex() = default;
34
36
39 inline const Aws::Vector<Aws::String>& GetKeys() const { return m_keys; }
40 inline bool KeysHasBeenSet() const { return m_keysHasBeenSet; }
41 template <typename KeysT = Aws::Vector<Aws::String>>
42 void SetKeys(KeysT&& value) {
43 m_keysHasBeenSet = true;
44 m_keys = std::forward<KeysT>(value);
45 }
46 template <typename KeysT = Aws::Vector<Aws::String>>
47 PartitionIndex& WithKeys(KeysT&& value) {
48 SetKeys(std::forward<KeysT>(value));
49 return *this;
50 }
51 template <typename KeysT = Aws::String>
52 PartitionIndex& AddKeys(KeysT&& value) {
53 m_keysHasBeenSet = true;
54 m_keys.emplace_back(std::forward<KeysT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetIndexName() const { return m_indexName; }
64 inline bool IndexNameHasBeenSet() const { return m_indexNameHasBeenSet; }
65 template <typename IndexNameT = Aws::String>
66 void SetIndexName(IndexNameT&& value) {
67 m_indexNameHasBeenSet = true;
68 m_indexName = std::forward<IndexNameT>(value);
69 }
70 template <typename IndexNameT = Aws::String>
71 PartitionIndex& WithIndexName(IndexNameT&& value) {
72 SetIndexName(std::forward<IndexNameT>(value));
73 return *this;
74 }
76 private:
78
79 Aws::String m_indexName;
80 bool m_keysHasBeenSet = false;
81 bool m_indexNameHasBeenSet = false;
82};
83
84} // namespace Model
85} // namespace Glue
86} // namespace Aws
PartitionIndex & WithIndexName(IndexNameT &&value)
PartitionIndex & AddKeys(KeysT &&value)
const Aws::String & GetIndexName() const
AWS_GLUE_API PartitionIndex()=default
PartitionIndex & WithKeys(KeysT &&value)
const Aws::Vector< Aws::String > & GetKeys() const
AWS_GLUE_API PartitionIndex & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetIndexName(IndexNameT &&value)
AWS_GLUE_API PartitionIndex(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue