AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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