AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
TargetTableConfig.h
1
6#pragma once
7#include <aws/glue/Glue_EXPORTS.h>
8#include <aws/glue/model/UnnestSpec.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/glue/model/IntegrationPartition.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Glue
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_GLUE_API TargetTableConfig() = default;
42
43
45
49 inline UnnestSpec GetUnnestSpec() const { return m_unnestSpec; }
50 inline bool UnnestSpecHasBeenSet() const { return m_unnestSpecHasBeenSet; }
51 inline void SetUnnestSpec(UnnestSpec value) { m_unnestSpecHasBeenSet = true; m_unnestSpec = value; }
52 inline TargetTableConfig& WithUnnestSpec(UnnestSpec value) { SetUnnestSpec(value); return *this;}
54
56
59 inline const Aws::Vector<IntegrationPartition>& GetPartitionSpec() const { return m_partitionSpec; }
60 inline bool PartitionSpecHasBeenSet() const { return m_partitionSpecHasBeenSet; }
61 template<typename PartitionSpecT = Aws::Vector<IntegrationPartition>>
62 void SetPartitionSpec(PartitionSpecT&& value) { m_partitionSpecHasBeenSet = true; m_partitionSpec = std::forward<PartitionSpecT>(value); }
63 template<typename PartitionSpecT = Aws::Vector<IntegrationPartition>>
64 TargetTableConfig& WithPartitionSpec(PartitionSpecT&& value) { SetPartitionSpec(std::forward<PartitionSpecT>(value)); return *this;}
65 template<typename PartitionSpecT = IntegrationPartition>
66 TargetTableConfig& AddPartitionSpec(PartitionSpecT&& value) { m_partitionSpecHasBeenSet = true; m_partitionSpec.emplace_back(std::forward<PartitionSpecT>(value)); return *this; }
68
70
73 inline const Aws::String& GetTargetTableName() const { return m_targetTableName; }
74 inline bool TargetTableNameHasBeenSet() const { return m_targetTableNameHasBeenSet; }
75 template<typename TargetTableNameT = Aws::String>
76 void SetTargetTableName(TargetTableNameT&& value) { m_targetTableNameHasBeenSet = true; m_targetTableName = std::forward<TargetTableNameT>(value); }
77 template<typename TargetTableNameT = Aws::String>
78 TargetTableConfig& WithTargetTableName(TargetTableNameT&& value) { SetTargetTableName(std::forward<TargetTableNameT>(value)); return *this;}
80 private:
81
82 UnnestSpec m_unnestSpec{UnnestSpec::NOT_SET};
83 bool m_unnestSpecHasBeenSet = false;
84
86 bool m_partitionSpecHasBeenSet = false;
87
88 Aws::String m_targetTableName;
89 bool m_targetTableNameHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace Glue
94} // namespace Aws
TargetTableConfig & WithPartitionSpec(PartitionSpecT &&value)
TargetTableConfig & AddPartitionSpec(PartitionSpecT &&value)
TargetTableConfig & WithUnnestSpec(UnnestSpec value)
AWS_GLUE_API TargetTableConfig(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetTargetTableName() const
void SetPartitionSpec(PartitionSpecT &&value)
TargetTableConfig & WithTargetTableName(TargetTableNameT &&value)
const Aws::Vector< IntegrationPartition > & GetPartitionSpec() const
AWS_GLUE_API TargetTableConfig()=default
void SetTargetTableName(TargetTableNameT &&value)
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GLUE_API TargetTableConfig & operator=(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