AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
GovernedCatalogSource.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/glue/Glue_EXPORTS.h>
9#include <aws/glue/model/S3SourceAdditionalOptions.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
30 public:
31 AWS_GLUE_API GovernedCatalogSource() = default;
35
37
40 inline const Aws::String& GetName() const { return m_name; }
41 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
42 template <typename NameT = Aws::String>
43 void SetName(NameT&& value) {
44 m_nameHasBeenSet = true;
45 m_name = std::forward<NameT>(value);
46 }
47 template <typename NameT = Aws::String>
49 SetName(std::forward<NameT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetDatabase() const { return m_database; }
59 inline bool DatabaseHasBeenSet() const { return m_databaseHasBeenSet; }
60 template <typename DatabaseT = Aws::String>
61 void SetDatabase(DatabaseT&& value) {
62 m_databaseHasBeenSet = true;
63 m_database = std::forward<DatabaseT>(value);
64 }
65 template <typename DatabaseT = Aws::String>
66 GovernedCatalogSource& WithDatabase(DatabaseT&& value) {
67 SetDatabase(std::forward<DatabaseT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetTable() const { return m_table; }
77 inline bool TableHasBeenSet() const { return m_tableHasBeenSet; }
78 template <typename TableT = Aws::String>
79 void SetTable(TableT&& value) {
80 m_tableHasBeenSet = true;
81 m_table = std::forward<TableT>(value);
82 }
83 template <typename TableT = Aws::String>
85 SetTable(std::forward<TableT>(value));
86 return *this;
87 }
89
91
96 inline const Aws::String& GetPartitionPredicate() const { return m_partitionPredicate; }
97 inline bool PartitionPredicateHasBeenSet() const { return m_partitionPredicateHasBeenSet; }
98 template <typename PartitionPredicateT = Aws::String>
99 void SetPartitionPredicate(PartitionPredicateT&& value) {
100 m_partitionPredicateHasBeenSet = true;
101 m_partitionPredicate = std::forward<PartitionPredicateT>(value);
102 }
103 template <typename PartitionPredicateT = Aws::String>
104 GovernedCatalogSource& WithPartitionPredicate(PartitionPredicateT&& value) {
105 SetPartitionPredicate(std::forward<PartitionPredicateT>(value));
106 return *this;
107 }
109
111
114 inline const S3SourceAdditionalOptions& GetAdditionalOptions() const { return m_additionalOptions; }
115 inline bool AdditionalOptionsHasBeenSet() const { return m_additionalOptionsHasBeenSet; }
116 template <typename AdditionalOptionsT = S3SourceAdditionalOptions>
117 void SetAdditionalOptions(AdditionalOptionsT&& value) {
118 m_additionalOptionsHasBeenSet = true;
119 m_additionalOptions = std::forward<AdditionalOptionsT>(value);
120 }
121 template <typename AdditionalOptionsT = S3SourceAdditionalOptions>
122 GovernedCatalogSource& WithAdditionalOptions(AdditionalOptionsT&& value) {
123 SetAdditionalOptions(std::forward<AdditionalOptionsT>(value));
124 return *this;
125 }
127 private:
128 Aws::String m_name;
129 bool m_nameHasBeenSet = false;
130
131 Aws::String m_database;
132 bool m_databaseHasBeenSet = false;
133
134 Aws::String m_table;
135 bool m_tableHasBeenSet = false;
136
137 Aws::String m_partitionPredicate;
138 bool m_partitionPredicateHasBeenSet = false;
139
140 S3SourceAdditionalOptions m_additionalOptions;
141 bool m_additionalOptionsHasBeenSet = false;
142};
143
144} // namespace Model
145} // namespace Glue
146} // namespace Aws
void SetAdditionalOptions(AdditionalOptionsT &&value)
AWS_GLUE_API GovernedCatalogSource & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GLUE_API GovernedCatalogSource()=default
GovernedCatalogSource & WithName(NameT &&value)
void SetPartitionPredicate(PartitionPredicateT &&value)
GovernedCatalogSource & WithAdditionalOptions(AdditionalOptionsT &&value)
GovernedCatalogSource & WithDatabase(DatabaseT &&value)
GovernedCatalogSource & WithPartitionPredicate(PartitionPredicateT &&value)
const Aws::String & GetPartitionPredicate() const
GovernedCatalogSource & WithTable(TableT &&value)
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
const S3SourceAdditionalOptions & GetAdditionalOptions() const
AWS_GLUE_API GovernedCatalogSource(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue