AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
UpdateSchemaRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/glue/GlueRequest.h>
9#include <aws/glue/Glue_EXPORTS.h>
10#include <aws/glue/model/Compatibility.h>
11#include <aws/glue/model/SchemaId.h>
12#include <aws/glue/model/SchemaVersionNumber.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Glue {
18namespace Model {
19
23 public:
24 AWS_GLUE_API UpdateSchemaRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "UpdateSchema"; }
31
32 AWS_GLUE_API Aws::String SerializePayload() const override;
33
35
37
45 inline const SchemaId& GetSchemaId() const { return m_schemaId; }
46 inline bool SchemaIdHasBeenSet() const { return m_schemaIdHasBeenSet; }
47 template <typename SchemaIdT = SchemaId>
48 void SetSchemaId(SchemaIdT&& value) {
49 m_schemaIdHasBeenSet = true;
50 m_schemaId = std::forward<SchemaIdT>(value);
51 }
52 template <typename SchemaIdT = SchemaId>
53 UpdateSchemaRequest& WithSchemaId(SchemaIdT&& value) {
54 SetSchemaId(std::forward<SchemaIdT>(value));
55 return *this;
56 }
58
60
64 inline const SchemaVersionNumber& GetSchemaVersionNumber() const { return m_schemaVersionNumber; }
65 inline bool SchemaVersionNumberHasBeenSet() const { return m_schemaVersionNumberHasBeenSet; }
66 template <typename SchemaVersionNumberT = SchemaVersionNumber>
67 void SetSchemaVersionNumber(SchemaVersionNumberT&& value) {
68 m_schemaVersionNumberHasBeenSet = true;
69 m_schemaVersionNumber = std::forward<SchemaVersionNumberT>(value);
70 }
71 template <typename SchemaVersionNumberT = SchemaVersionNumber>
72 UpdateSchemaRequest& WithSchemaVersionNumber(SchemaVersionNumberT&& value) {
73 SetSchemaVersionNumber(std::forward<SchemaVersionNumberT>(value));
74 return *this;
75 }
77
79
82 inline Compatibility GetCompatibility() const { return m_compatibility; }
83 inline bool CompatibilityHasBeenSet() const { return m_compatibilityHasBeenSet; }
84 inline void SetCompatibility(Compatibility value) {
85 m_compatibilityHasBeenSet = true;
86 m_compatibility = value;
87 }
89 SetCompatibility(value);
90 return *this;
91 }
93
95
98 inline const Aws::String& GetDescription() const { return m_description; }
99 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
100 template <typename DescriptionT = Aws::String>
101 void SetDescription(DescriptionT&& value) {
102 m_descriptionHasBeenSet = true;
103 m_description = std::forward<DescriptionT>(value);
104 }
105 template <typename DescriptionT = Aws::String>
106 UpdateSchemaRequest& WithDescription(DescriptionT&& value) {
107 SetDescription(std::forward<DescriptionT>(value));
108 return *this;
109 }
111 private:
112 SchemaId m_schemaId;
113
114 SchemaVersionNumber m_schemaVersionNumber;
115
116 Compatibility m_compatibility{Compatibility::NOT_SET};
117
118 Aws::String m_description;
119 bool m_schemaIdHasBeenSet = false;
120 bool m_schemaVersionNumberHasBeenSet = false;
121 bool m_compatibilityHasBeenSet = false;
122 bool m_descriptionHasBeenSet = false;
123};
124
125} // namespace Model
126} // namespace Glue
127} // namespace Aws
void SetSchemaVersionNumber(SchemaVersionNumberT &&value)
const SchemaVersionNumber & GetSchemaVersionNumber() const
void SetCompatibility(Compatibility value)
UpdateSchemaRequest & WithSchemaId(SchemaIdT &&value)
AWS_GLUE_API UpdateSchemaRequest()=default
AWS_GLUE_API Aws::String SerializePayload() const override
UpdateSchemaRequest & WithSchemaVersionNumber(SchemaVersionNumberT &&value)
void SetDescription(DescriptionT &&value)
UpdateSchemaRequest & WithCompatibility(Compatibility value)
AWS_GLUE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateSchemaRequest & WithDescription(DescriptionT &&value)
const Aws::String & GetDescription() const
virtual const char * GetServiceRequestName() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String