AWS SDK for C++

AWS SDK for C++ Version 1.11.689

Loading...
Searching...
No Matches
PartitionInput.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/glue/Glue_EXPORTS.h>
12#include <aws/glue/model/StorageDescriptor.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Glue {
24namespace Model {
25
33 public:
34 AWS_GLUE_API PartitionInput() = default;
38
40
47 inline const Aws::Vector<Aws::String>& GetValues() const { return m_values; }
48 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
49 template <typename ValuesT = Aws::Vector<Aws::String>>
50 void SetValues(ValuesT&& value) {
51 m_valuesHasBeenSet = true;
52 m_values = std::forward<ValuesT>(value);
53 }
54 template <typename ValuesT = Aws::Vector<Aws::String>>
55 PartitionInput& WithValues(ValuesT&& value) {
56 SetValues(std::forward<ValuesT>(value));
57 return *this;
58 }
59 template <typename ValuesT = Aws::String>
60 PartitionInput& AddValues(ValuesT&& value) {
61 m_valuesHasBeenSet = true;
62 m_values.emplace_back(std::forward<ValuesT>(value));
63 return *this;
64 }
66
68
71 inline const Aws::Utils::DateTime& GetLastAccessTime() const { return m_lastAccessTime; }
72 inline bool LastAccessTimeHasBeenSet() const { return m_lastAccessTimeHasBeenSet; }
73 template <typename LastAccessTimeT = Aws::Utils::DateTime>
74 void SetLastAccessTime(LastAccessTimeT&& value) {
75 m_lastAccessTimeHasBeenSet = true;
76 m_lastAccessTime = std::forward<LastAccessTimeT>(value);
77 }
78 template <typename LastAccessTimeT = Aws::Utils::DateTime>
79 PartitionInput& WithLastAccessTime(LastAccessTimeT&& value) {
80 SetLastAccessTime(std::forward<LastAccessTimeT>(value));
81 return *this;
82 }
84
86
90 inline const StorageDescriptor& GetStorageDescriptor() const { return m_storageDescriptor; }
91 inline bool StorageDescriptorHasBeenSet() const { return m_storageDescriptorHasBeenSet; }
92 template <typename StorageDescriptorT = StorageDescriptor>
93 void SetStorageDescriptor(StorageDescriptorT&& value) {
94 m_storageDescriptorHasBeenSet = true;
95 m_storageDescriptor = std::forward<StorageDescriptorT>(value);
96 }
97 template <typename StorageDescriptorT = StorageDescriptor>
98 PartitionInput& WithStorageDescriptor(StorageDescriptorT&& value) {
99 SetStorageDescriptor(std::forward<StorageDescriptorT>(value));
100 return *this;
101 }
103
105
108 inline const Aws::Map<Aws::String, Aws::String>& GetParameters() const { return m_parameters; }
109 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
110 template <typename ParametersT = Aws::Map<Aws::String, Aws::String>>
111 void SetParameters(ParametersT&& value) {
112 m_parametersHasBeenSet = true;
113 m_parameters = std::forward<ParametersT>(value);
114 }
115 template <typename ParametersT = Aws::Map<Aws::String, Aws::String>>
116 PartitionInput& WithParameters(ParametersT&& value) {
117 SetParameters(std::forward<ParametersT>(value));
118 return *this;
119 }
120 template <typename ParametersKeyT = Aws::String, typename ParametersValueT = Aws::String>
121 PartitionInput& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
122 m_parametersHasBeenSet = true;
123 m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value));
124 return *this;
125 }
127
129
133 inline const Aws::Utils::DateTime& GetLastAnalyzedTime() const { return m_lastAnalyzedTime; }
134 inline bool LastAnalyzedTimeHasBeenSet() const { return m_lastAnalyzedTimeHasBeenSet; }
135 template <typename LastAnalyzedTimeT = Aws::Utils::DateTime>
136 void SetLastAnalyzedTime(LastAnalyzedTimeT&& value) {
137 m_lastAnalyzedTimeHasBeenSet = true;
138 m_lastAnalyzedTime = std::forward<LastAnalyzedTimeT>(value);
139 }
140 template <typename LastAnalyzedTimeT = Aws::Utils::DateTime>
141 PartitionInput& WithLastAnalyzedTime(LastAnalyzedTimeT&& value) {
142 SetLastAnalyzedTime(std::forward<LastAnalyzedTimeT>(value));
143 return *this;
144 }
146 private:
148 bool m_valuesHasBeenSet = false;
149
150 Aws::Utils::DateTime m_lastAccessTime{};
151 bool m_lastAccessTimeHasBeenSet = false;
152
153 StorageDescriptor m_storageDescriptor;
154 bool m_storageDescriptorHasBeenSet = false;
155
157 bool m_parametersHasBeenSet = false;
158
159 Aws::Utils::DateTime m_lastAnalyzedTime{};
160 bool m_lastAnalyzedTimeHasBeenSet = false;
161};
162
163} // namespace Model
164} // namespace Glue
165} // namespace Aws
PartitionInput & WithLastAnalyzedTime(LastAnalyzedTimeT &&value)
PartitionInput & AddValues(ValuesT &&value)
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
PartitionInput & WithLastAccessTime(LastAccessTimeT &&value)
const Aws::Utils::DateTime & GetLastAnalyzedTime() const
PartitionInput & WithValues(ValuesT &&value)
void SetLastAnalyzedTime(LastAnalyzedTimeT &&value)
AWS_GLUE_API PartitionInput(Aws::Utils::Json::JsonView jsonValue)
void SetValues(ValuesT &&value)
AWS_GLUE_API PartitionInput & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, Aws::String > & GetParameters() const
const StorageDescriptor & GetStorageDescriptor() const
const Aws::Utils::DateTime & GetLastAccessTime() const
PartitionInput & WithStorageDescriptor(StorageDescriptorT &&value)
AWS_GLUE_API PartitionInput()=default
void SetParameters(ParametersT &&value)
void SetStorageDescriptor(StorageDescriptorT &&value)
const Aws::Vector< Aws::String > & GetValues() const
PartitionInput & AddParameters(ParametersKeyT &&key, ParametersValueT &&value)
void SetLastAccessTime(LastAccessTimeT &&value)
PartitionInput & WithParameters(ParametersT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue