AWS SDK for C++  1.9.160
AWS SDK for C++
CreateSchemaRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Personalize
16 {
17 namespace Model
18 {
19 
23  {
24  public:
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::String SerializePayload() const override;
34 
36 
37 
41  inline const Aws::String& GetName() const{ return m_name; }
42 
46  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
47 
51  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
52 
56  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
57 
61  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
62 
66  inline CreateSchemaRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
67 
71  inline CreateSchemaRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
72 
76  inline CreateSchemaRequest& WithName(const char* value) { SetName(value); return *this;}
77 
78 
82  inline const Aws::String& GetSchema() const{ return m_schema; }
83 
87  inline bool SchemaHasBeenSet() const { return m_schemaHasBeenSet; }
88 
92  inline void SetSchema(const Aws::String& value) { m_schemaHasBeenSet = true; m_schema = value; }
93 
97  inline void SetSchema(Aws::String&& value) { m_schemaHasBeenSet = true; m_schema = std::move(value); }
98 
102  inline void SetSchema(const char* value) { m_schemaHasBeenSet = true; m_schema.assign(value); }
103 
107  inline CreateSchemaRequest& WithSchema(const Aws::String& value) { SetSchema(value); return *this;}
108 
112  inline CreateSchemaRequest& WithSchema(Aws::String&& value) { SetSchema(std::move(value)); return *this;}
113 
117  inline CreateSchemaRequest& WithSchema(const char* value) { SetSchema(value); return *this;}
118 
119 
125  inline const Domain& GetDomain() const{ return m_domain; }
126 
132  inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; }
133 
139  inline void SetDomain(const Domain& value) { m_domainHasBeenSet = true; m_domain = value; }
140 
146  inline void SetDomain(Domain&& value) { m_domainHasBeenSet = true; m_domain = std::move(value); }
147 
153  inline CreateSchemaRequest& WithDomain(const Domain& value) { SetDomain(value); return *this;}
154 
160  inline CreateSchemaRequest& WithDomain(Domain&& value) { SetDomain(std::move(value)); return *this;}
161 
162  private:
163 
164  Aws::String m_name;
165  bool m_nameHasBeenSet;
166 
167  Aws::String m_schema;
168  bool m_schemaHasBeenSet;
169 
170  Domain m_domain;
171  bool m_domainHasBeenSet;
172  };
173 
174 } // namespace Model
175 } // namespace Personalize
176 } // namespace Aws
Aws::Personalize::Model::CreateSchemaRequest::WithSchema
CreateSchemaRequest & WithSchema(const Aws::String &value)
Definition: CreateSchemaRequest.h:107
Aws::Personalize::Model::CreateSchemaRequest::SchemaHasBeenSet
bool SchemaHasBeenSet() const
Definition: CreateSchemaRequest.h:87
Aws::Personalize::Model::CreateSchemaRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PersonalizeRequest.h
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Personalize::Model::CreateSchemaRequest::SetSchema
void SetSchema(const char *value)
Definition: CreateSchemaRequest.h:102
Aws::Personalize::Model::CreateSchemaRequest::WithDomain
CreateSchemaRequest & WithDomain(Domain &&value)
Definition: CreateSchemaRequest.h:160
Aws::Personalize::Model::CreateSchemaRequest::WithSchema
CreateSchemaRequest & WithSchema(const char *value)
Definition: CreateSchemaRequest.h:117
Aws::Personalize::Model::CreateSchemaRequest::SetName
void SetName(const Aws::String &value)
Definition: CreateSchemaRequest.h:51
Aws::Personalize::Model::CreateSchemaRequest::WithName
CreateSchemaRequest & WithName(const char *value)
Definition: CreateSchemaRequest.h:76
Aws::Personalize::Model::CreateSchemaRequest::WithName
CreateSchemaRequest & WithName(Aws::String &&value)
Definition: CreateSchemaRequest.h:71
AWS_PERSONALIZE_API
#define AWS_PERSONALIZE_API
Definition: Personalize_EXPORTS.h:28
Aws::Personalize::Model::CreateSchemaRequest::SerializePayload
Aws::String SerializePayload() const override
Domain.h
Aws::Personalize::Model::CreateSchemaRequest::CreateSchemaRequest
CreateSchemaRequest()
Aws::Personalize::Model::CreateSchemaRequest::GetSchema
const Aws::String & GetSchema() const
Definition: CreateSchemaRequest.h:82
Aws::Personalize::Model::CreateSchemaRequest::SetDomain
void SetDomain(const Domain &value)
Definition: CreateSchemaRequest.h:139
Aws::Personalize::Model::CreateSchemaRequest::SetSchema
void SetSchema(Aws::String &&value)
Definition: CreateSchemaRequest.h:97
Aws::Personalize::Model::CreateSchemaRequest::GetName
const Aws::String & GetName() const
Definition: CreateSchemaRequest.h:41
AWSString.h
Aws::Personalize::PersonalizeRequest
Definition: PersonalizeRequest.h:17
Aws::Personalize::Model::CreateSchemaRequest::WithDomain
CreateSchemaRequest & WithDomain(const Domain &value)
Definition: CreateSchemaRequest.h:153
Aws::Personalize::Model::CreateSchemaRequest
Definition: CreateSchemaRequest.h:23
Aws::Personalize::Model::CreateSchemaRequest::GetDomain
const Domain & GetDomain() const
Definition: CreateSchemaRequest.h:125
Aws
Definition: AccessManagementClient.h:15
Aws::Personalize::Model::Domain
Domain
Definition: Domain.h:17
Aws::Personalize::Model::CreateSchemaRequest::SetSchema
void SetSchema(const Aws::String &value)
Definition: CreateSchemaRequest.h:92
Aws::Personalize::Model::CreateSchemaRequest::WithSchema
CreateSchemaRequest & WithSchema(Aws::String &&value)
Definition: CreateSchemaRequest.h:112
Aws::Personalize::Model::CreateSchemaRequest::SetName
void SetName(const char *value)
Definition: CreateSchemaRequest.h:61
Aws::Personalize::Model::CreateSchemaRequest::SetName
void SetName(Aws::String &&value)
Definition: CreateSchemaRequest.h:56
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Personalize::Model::CreateSchemaRequest::DomainHasBeenSet
bool DomainHasBeenSet() const
Definition: CreateSchemaRequest.h:132
Aws::Personalize::Model::CreateSchemaRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: CreateSchemaRequest.h:46
Aws::Personalize::Model::CreateSchemaRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateSchemaRequest.h:31
Personalize_EXPORTS.h
Aws::Personalize::Model::CreateSchemaRequest::WithName
CreateSchemaRequest & WithName(const Aws::String &value)
Definition: CreateSchemaRequest.h:66
Aws::Personalize::Model::CreateSchemaRequest::SetDomain
void SetDomain(Domain &&value)
Definition: CreateSchemaRequest.h:146