AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
UpdateSchemaRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/schemas/SchemasRequest.h>
10#include <aws/schemas/Schemas_EXPORTS.h>
11#include <aws/schemas/model/Type.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Schemas {
17namespace Model {
18
22 public:
23 AWS_SCHEMAS_API UpdateSchemaRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "UpdateSchema"; }
30
31 AWS_SCHEMAS_API Aws::String SerializePayload() const override;
32
34
37 inline const Aws::String& GetClientTokenId() const { return m_clientTokenId; }
38 inline bool ClientTokenIdHasBeenSet() const { return m_clientTokenIdHasBeenSet; }
39 template <typename ClientTokenIdT = Aws::String>
40 void SetClientTokenId(ClientTokenIdT&& value) {
41 m_clientTokenIdHasBeenSet = true;
42 m_clientTokenId = std::forward<ClientTokenIdT>(value);
43 }
44 template <typename ClientTokenIdT = Aws::String>
45 UpdateSchemaRequest& WithClientTokenId(ClientTokenIdT&& value) {
46 SetClientTokenId(std::forward<ClientTokenIdT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetContent() const { return m_content; }
56 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
57 template <typename ContentT = Aws::String>
58 void SetContent(ContentT&& value) {
59 m_contentHasBeenSet = true;
60 m_content = std::forward<ContentT>(value);
61 }
62 template <typename ContentT = Aws::String>
63 UpdateSchemaRequest& WithContent(ContentT&& value) {
64 SetContent(std::forward<ContentT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::String& GetDescription() const { return m_description; }
74 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
75 template <typename DescriptionT = Aws::String>
76 void SetDescription(DescriptionT&& value) {
77 m_descriptionHasBeenSet = true;
78 m_description = std::forward<DescriptionT>(value);
79 }
80 template <typename DescriptionT = Aws::String>
81 UpdateSchemaRequest& WithDescription(DescriptionT&& value) {
82 SetDescription(std::forward<DescriptionT>(value));
83 return *this;
84 }
86
88
91 inline const Aws::String& GetRegistryName() const { return m_registryName; }
92 inline bool RegistryNameHasBeenSet() const { return m_registryNameHasBeenSet; }
93 template <typename RegistryNameT = Aws::String>
94 void SetRegistryName(RegistryNameT&& value) {
95 m_registryNameHasBeenSet = true;
96 m_registryName = std::forward<RegistryNameT>(value);
97 }
98 template <typename RegistryNameT = Aws::String>
99 UpdateSchemaRequest& WithRegistryName(RegistryNameT&& value) {
100 SetRegistryName(std::forward<RegistryNameT>(value));
101 return *this;
102 }
104
106
109 inline const Aws::String& GetSchemaName() const { return m_schemaName; }
110 inline bool SchemaNameHasBeenSet() const { return m_schemaNameHasBeenSet; }
111 template <typename SchemaNameT = Aws::String>
112 void SetSchemaName(SchemaNameT&& value) {
113 m_schemaNameHasBeenSet = true;
114 m_schemaName = std::forward<SchemaNameT>(value);
115 }
116 template <typename SchemaNameT = Aws::String>
117 UpdateSchemaRequest& WithSchemaName(SchemaNameT&& value) {
118 SetSchemaName(std::forward<SchemaNameT>(value));
119 return *this;
120 }
122
124
127 inline Type GetType() const { return m_type; }
128 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
129 inline void SetType(Type value) {
130 m_typeHasBeenSet = true;
131 m_type = value;
132 }
134 SetType(value);
135 return *this;
136 }
138 private:
140
141 Aws::String m_content;
142
143 Aws::String m_description;
144
145 Aws::String m_registryName;
146
147 Aws::String m_schemaName;
148
149 Type m_type{Type::NOT_SET};
150 bool m_clientTokenIdHasBeenSet = true;
151 bool m_contentHasBeenSet = false;
152 bool m_descriptionHasBeenSet = false;
153 bool m_registryNameHasBeenSet = false;
154 bool m_schemaNameHasBeenSet = false;
155 bool m_typeHasBeenSet = false;
156};
157
158} // namespace Model
159} // namespace Schemas
160} // namespace Aws
UpdateSchemaRequest & WithRegistryName(RegistryNameT &&value)
UpdateSchemaRequest & WithSchemaName(SchemaNameT &&value)
UpdateSchemaRequest & WithType(Type value)
UpdateSchemaRequest & WithContent(ContentT &&value)
AWS_SCHEMAS_API UpdateSchemaRequest()=default
const Aws::String & GetRegistryName() const
UpdateSchemaRequest & WithClientTokenId(ClientTokenIdT &&value)
UpdateSchemaRequest & WithDescription(DescriptionT &&value)
virtual const char * GetServiceRequestName() const override
AWS_SCHEMAS_API Aws::String SerializePayload() const override
void SetClientTokenId(ClientTokenIdT &&value)
const Aws::String & GetClientTokenId() const
void SetRegistryName(RegistryNameT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String