AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CreateSchemaRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/personalize/PersonalizeRequest.h>
9#include <aws/personalize/Personalize_EXPORTS.h>
10#include <aws/personalize/model/Domain.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Personalize {
16namespace Model {
17
21 public:
22 AWS_PERSONALIZE_API CreateSchemaRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "CreateSchema"; }
29
30 AWS_PERSONALIZE_API Aws::String SerializePayload() const override;
31
32 AWS_PERSONALIZE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
33
35
38 inline const Aws::String& GetName() const { return m_name; }
39 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
40 template <typename NameT = Aws::String>
41 void SetName(NameT&& value) {
42 m_nameHasBeenSet = true;
43 m_name = std::forward<NameT>(value);
44 }
45 template <typename NameT = Aws::String>
46 CreateSchemaRequest& WithName(NameT&& value) {
47 SetName(std::forward<NameT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetSchema() const { return m_schema; }
57 inline bool SchemaHasBeenSet() const { return m_schemaHasBeenSet; }
58 template <typename SchemaT = Aws::String>
59 void SetSchema(SchemaT&& value) {
60 m_schemaHasBeenSet = true;
61 m_schema = std::forward<SchemaT>(value);
62 }
63 template <typename SchemaT = Aws::String>
64 CreateSchemaRequest& WithSchema(SchemaT&& value) {
65 SetSchema(std::forward<SchemaT>(value));
66 return *this;
67 }
69
71
76 inline Domain GetDomain() const { return m_domain; }
77 inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; }
78 inline void SetDomain(Domain value) {
79 m_domainHasBeenSet = true;
80 m_domain = value;
81 }
83 SetDomain(value);
84 return *this;
85 }
87 private:
88 Aws::String m_name;
89
90 Aws::String m_schema;
91
92 Domain m_domain{Domain::NOT_SET};
93 bool m_nameHasBeenSet = false;
94 bool m_schemaHasBeenSet = false;
95 bool m_domainHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace Personalize
100} // namespace Aws
CreateSchemaRequest & WithDomain(Domain value)
AWS_PERSONALIZE_API Aws::String SerializePayload() const override
CreateSchemaRequest & WithName(NameT &&value)
CreateSchemaRequest & WithSchema(SchemaT &&value)
AWS_PERSONALIZE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_PERSONALIZE_API CreateSchemaRequest()=default
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