AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
EntityConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/glue/Glue_EXPORTS.h>
10#include <aws/glue/model/FieldDefinition.h>
11#include <aws/glue/model/SourceConfiguration.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Glue {
23namespace Model {
24
33 public:
34 AWS_GLUE_API EntityConfiguration() = default;
38
40
44 inline const SourceConfiguration& GetSourceConfiguration() const { return m_sourceConfiguration; }
45 inline bool SourceConfigurationHasBeenSet() const { return m_sourceConfigurationHasBeenSet; }
46 template <typename SourceConfigurationT = SourceConfiguration>
47 void SetSourceConfiguration(SourceConfigurationT&& value) {
48 m_sourceConfigurationHasBeenSet = true;
49 m_sourceConfiguration = std::forward<SourceConfigurationT>(value);
50 }
51 template <typename SourceConfigurationT = SourceConfiguration>
52 EntityConfiguration& WithSourceConfiguration(SourceConfigurationT&& value) {
53 SetSourceConfiguration(std::forward<SourceConfigurationT>(value));
54 return *this;
55 }
57
59
63 inline const Aws::Map<Aws::String, FieldDefinition>& GetSchema() const { return m_schema; }
64 inline bool SchemaHasBeenSet() const { return m_schemaHasBeenSet; }
65 template <typename SchemaT = Aws::Map<Aws::String, FieldDefinition>>
66 void SetSchema(SchemaT&& value) {
67 m_schemaHasBeenSet = true;
68 m_schema = std::forward<SchemaT>(value);
69 }
70 template <typename SchemaT = Aws::Map<Aws::String, FieldDefinition>>
71 EntityConfiguration& WithSchema(SchemaT&& value) {
72 SetSchema(std::forward<SchemaT>(value));
73 return *this;
74 }
75 template <typename SchemaKeyT = Aws::String, typename SchemaValueT = FieldDefinition>
76 EntityConfiguration& AddSchema(SchemaKeyT&& key, SchemaValueT&& value) {
77 m_schemaHasBeenSet = true;
78 m_schema.emplace(std::forward<SchemaKeyT>(key), std::forward<SchemaValueT>(value));
79 return *this;
80 }
82 private:
83 SourceConfiguration m_sourceConfiguration;
84
86 bool m_sourceConfigurationHasBeenSet = false;
87 bool m_schemaHasBeenSet = false;
88};
89
90} // namespace Model
91} // namespace Glue
92} // namespace Aws
void SetSourceConfiguration(SourceConfigurationT &&value)
const Aws::Map< Aws::String, FieldDefinition > & GetSchema() const
AWS_GLUE_API EntityConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_GLUE_API EntityConfiguration()=default
EntityConfiguration & AddSchema(SchemaKeyT &&key, SchemaValueT &&value)
const SourceConfiguration & GetSourceConfiguration() const
AWS_GLUE_API EntityConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
EntityConfiguration & WithSchema(SchemaT &&value)
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
EntityConfiguration & WithSourceConfiguration(SourceConfigurationT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Aws::Utils::Json::JsonValue JsonValue