AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
SchemaReference.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/SchemaId.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 SchemaReference() = default;
35
37
41 inline const SchemaId& GetSchemaId() const { return m_schemaId; }
42 inline bool SchemaIdHasBeenSet() const { return m_schemaIdHasBeenSet; }
43 template <typename SchemaIdT = SchemaId>
44 void SetSchemaId(SchemaIdT&& value) {
45 m_schemaIdHasBeenSet = true;
46 m_schemaId = std::forward<SchemaIdT>(value);
47 }
48 template <typename SchemaIdT = SchemaId>
49 SchemaReference& WithSchemaId(SchemaIdT&& value) {
50 SetSchemaId(std::forward<SchemaIdT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::String& GetSchemaVersionId() const { return m_schemaVersionId; }
61 inline bool SchemaVersionIdHasBeenSet() const { return m_schemaVersionIdHasBeenSet; }
62 template <typename SchemaVersionIdT = Aws::String>
63 void SetSchemaVersionId(SchemaVersionIdT&& value) {
64 m_schemaVersionIdHasBeenSet = true;
65 m_schemaVersionId = std::forward<SchemaVersionIdT>(value);
66 }
67 template <typename SchemaVersionIdT = Aws::String>
68 SchemaReference& WithSchemaVersionId(SchemaVersionIdT&& value) {
69 SetSchemaVersionId(std::forward<SchemaVersionIdT>(value));
70 return *this;
71 }
73
75
78 inline long long GetSchemaVersionNumber() const { return m_schemaVersionNumber; }
79 inline bool SchemaVersionNumberHasBeenSet() const { return m_schemaVersionNumberHasBeenSet; }
80 inline void SetSchemaVersionNumber(long long value) {
81 m_schemaVersionNumberHasBeenSet = true;
82 m_schemaVersionNumber = value;
83 }
84 inline SchemaReference& WithSchemaVersionNumber(long long value) {
86 return *this;
87 }
89 private:
90 SchemaId m_schemaId;
91
92 Aws::String m_schemaVersionId;
93
94 long long m_schemaVersionNumber{0};
95 bool m_schemaIdHasBeenSet = false;
96 bool m_schemaVersionIdHasBeenSet = false;
97 bool m_schemaVersionNumberHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace Glue
102} // namespace Aws
void SetSchemaVersionId(SchemaVersionIdT &&value)
SchemaReference & WithSchemaVersionId(SchemaVersionIdT &&value)
const Aws::String & GetSchemaVersionId() const
void SetSchemaId(SchemaIdT &&value)
SchemaReference & WithSchemaId(SchemaIdT &&value)
const SchemaId & GetSchemaId() const
AWS_GLUE_API SchemaReference(Aws::Utils::Json::JsonView jsonValue)
void SetSchemaVersionNumber(long long value)
SchemaReference & WithSchemaVersionNumber(long long value)
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GLUE_API SchemaReference()=default
AWS_GLUE_API SchemaReference & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue