AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
PartitionInput.h
1
6#pragma once
7#include <aws/glue/Glue_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/glue/model/StorageDescriptor.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Glue
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_GLUE_API PartitionInput() = default;
43
44
46
53 inline const Aws::Vector<Aws::String>& GetValues() const { return m_values; }
54 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
55 template<typename ValuesT = Aws::Vector<Aws::String>>
56 void SetValues(ValuesT&& value) { m_valuesHasBeenSet = true; m_values = std::forward<ValuesT>(value); }
57 template<typename ValuesT = Aws::Vector<Aws::String>>
58 PartitionInput& WithValues(ValuesT&& value) { SetValues(std::forward<ValuesT>(value)); return *this;}
59 template<typename ValuesT = Aws::String>
60 PartitionInput& AddValues(ValuesT&& value) { m_valuesHasBeenSet = true; m_values.emplace_back(std::forward<ValuesT>(value)); return *this; }
62
64
67 inline const Aws::Utils::DateTime& GetLastAccessTime() const { return m_lastAccessTime; }
68 inline bool LastAccessTimeHasBeenSet() const { return m_lastAccessTimeHasBeenSet; }
69 template<typename LastAccessTimeT = Aws::Utils::DateTime>
70 void SetLastAccessTime(LastAccessTimeT&& value) { m_lastAccessTimeHasBeenSet = true; m_lastAccessTime = std::forward<LastAccessTimeT>(value); }
71 template<typename LastAccessTimeT = Aws::Utils::DateTime>
72 PartitionInput& WithLastAccessTime(LastAccessTimeT&& value) { SetLastAccessTime(std::forward<LastAccessTimeT>(value)); return *this;}
74
76
80 inline const StorageDescriptor& GetStorageDescriptor() const { return m_storageDescriptor; }
81 inline bool StorageDescriptorHasBeenSet() const { return m_storageDescriptorHasBeenSet; }
82 template<typename StorageDescriptorT = StorageDescriptor>
83 void SetStorageDescriptor(StorageDescriptorT&& value) { m_storageDescriptorHasBeenSet = true; m_storageDescriptor = std::forward<StorageDescriptorT>(value); }
84 template<typename StorageDescriptorT = StorageDescriptor>
85 PartitionInput& WithStorageDescriptor(StorageDescriptorT&& value) { SetStorageDescriptor(std::forward<StorageDescriptorT>(value)); return *this;}
87
89
92 inline const Aws::Map<Aws::String, Aws::String>& GetParameters() const { return m_parameters; }
93 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
94 template<typename ParametersT = Aws::Map<Aws::String, Aws::String>>
95 void SetParameters(ParametersT&& value) { m_parametersHasBeenSet = true; m_parameters = std::forward<ParametersT>(value); }
96 template<typename ParametersT = Aws::Map<Aws::String, Aws::String>>
97 PartitionInput& WithParameters(ParametersT&& value) { SetParameters(std::forward<ParametersT>(value)); return *this;}
98 template<typename ParametersKeyT = Aws::String, typename ParametersValueT = Aws::String>
99 PartitionInput& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
100 m_parametersHasBeenSet = true; m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value)); return *this;
101 }
103
105
109 inline const Aws::Utils::DateTime& GetLastAnalyzedTime() const { return m_lastAnalyzedTime; }
110 inline bool LastAnalyzedTimeHasBeenSet() const { return m_lastAnalyzedTimeHasBeenSet; }
111 template<typename LastAnalyzedTimeT = Aws::Utils::DateTime>
112 void SetLastAnalyzedTime(LastAnalyzedTimeT&& value) { m_lastAnalyzedTimeHasBeenSet = true; m_lastAnalyzedTime = std::forward<LastAnalyzedTimeT>(value); }
113 template<typename LastAnalyzedTimeT = Aws::Utils::DateTime>
114 PartitionInput& WithLastAnalyzedTime(LastAnalyzedTimeT&& value) { SetLastAnalyzedTime(std::forward<LastAnalyzedTimeT>(value)); return *this;}
116 private:
117
119 bool m_valuesHasBeenSet = false;
120
121 Aws::Utils::DateTime m_lastAccessTime{};
122 bool m_lastAccessTimeHasBeenSet = false;
123
124 StorageDescriptor m_storageDescriptor;
125 bool m_storageDescriptorHasBeenSet = false;
126
128 bool m_parametersHasBeenSet = false;
129
130 Aws::Utils::DateTime m_lastAnalyzedTime{};
131 bool m_lastAnalyzedTimeHasBeenSet = false;
132 };
133
134} // namespace Model
135} // namespace Glue
136} // 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