AWS SDK for C++  1.9.66
AWS SDK for C++
CreateSchemaRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Personalize
15 {
16 namespace Model
17 {
18 
22  {
23  public:
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 "CreateSchema"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
40  inline const Aws::String& GetName() const{ return m_name; }
41 
45  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
46 
50  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
51 
55  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
56 
60  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
61 
65  inline CreateSchemaRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
66 
70  inline CreateSchemaRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
71 
75  inline CreateSchemaRequest& WithName(const char* value) { SetName(value); return *this;}
76 
77 
81  inline const Aws::String& GetSchema() const{ return m_schema; }
82 
86  inline bool SchemaHasBeenSet() const { return m_schemaHasBeenSet; }
87 
91  inline void SetSchema(const Aws::String& value) { m_schemaHasBeenSet = true; m_schema = value; }
92 
96  inline void SetSchema(Aws::String&& value) { m_schemaHasBeenSet = true; m_schema = std::move(value); }
97 
101  inline void SetSchema(const char* value) { m_schemaHasBeenSet = true; m_schema.assign(value); }
102 
106  inline CreateSchemaRequest& WithSchema(const Aws::String& value) { SetSchema(value); return *this;}
107 
111  inline CreateSchemaRequest& WithSchema(Aws::String&& value) { SetSchema(std::move(value)); return *this;}
112 
116  inline CreateSchemaRequest& WithSchema(const char* value) { SetSchema(value); return *this;}
117 
118  private:
119 
120  Aws::String m_name;
121  bool m_nameHasBeenSet;
122 
123  Aws::String m_schema;
124  bool m_schemaHasBeenSet;
125  };
126 
127 } // namespace Model
128 } // namespace Personalize
129 } // namespace Aws
Aws::Personalize::Model::CreateSchemaRequest::WithSchema
CreateSchemaRequest & WithSchema(const Aws::String &value)
Definition: CreateSchemaRequest.h:106
Aws::Personalize::Model::CreateSchemaRequest::SchemaHasBeenSet
bool SchemaHasBeenSet() const
Definition: CreateSchemaRequest.h:86
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:101
Aws::Personalize::Model::CreateSchemaRequest::WithSchema
CreateSchemaRequest & WithSchema(const char *value)
Definition: CreateSchemaRequest.h:116
Aws::Personalize::Model::CreateSchemaRequest::SetName
void SetName(const Aws::String &value)
Definition: CreateSchemaRequest.h:50
Aws::Personalize::Model::CreateSchemaRequest::WithName
CreateSchemaRequest & WithName(const char *value)
Definition: CreateSchemaRequest.h:75
Aws::Personalize::Model::CreateSchemaRequest::WithName
CreateSchemaRequest & WithName(Aws::String &&value)
Definition: CreateSchemaRequest.h:70
AWS_PERSONALIZE_API
#define AWS_PERSONALIZE_API
Definition: Personalize_EXPORTS.h:28
Aws::Personalize::Model::CreateSchemaRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Personalize::Model::CreateSchemaRequest::CreateSchemaRequest
CreateSchemaRequest()
Aws::Personalize::Model::CreateSchemaRequest::GetSchema
const Aws::String & GetSchema() const
Definition: CreateSchemaRequest.h:81
Aws::Personalize::Model::CreateSchemaRequest::SetSchema
void SetSchema(Aws::String &&value)
Definition: CreateSchemaRequest.h:96
Aws::Personalize::Model::CreateSchemaRequest::GetName
const Aws::String & GetName() const
Definition: CreateSchemaRequest.h:40
AWSString.h
Aws::Personalize::PersonalizeRequest
Definition: PersonalizeRequest.h:17
Aws::Personalize::Model::CreateSchemaRequest
Definition: CreateSchemaRequest.h:22
Aws
Definition: AccessManagementClient.h:15
Aws::Personalize::Model::CreateSchemaRequest::SetSchema
void SetSchema(const Aws::String &value)
Definition: CreateSchemaRequest.h:91
Aws::Personalize::Model::CreateSchemaRequest::WithSchema
CreateSchemaRequest & WithSchema(Aws::String &&value)
Definition: CreateSchemaRequest.h:111
Aws::Personalize::Model::CreateSchemaRequest::SetName
void SetName(const char *value)
Definition: CreateSchemaRequest.h:60
Aws::Personalize::Model::CreateSchemaRequest::SetName
void SetName(Aws::String &&value)
Definition: CreateSchemaRequest.h:55
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Personalize::Model::CreateSchemaRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: CreateSchemaRequest.h:45
Aws::Personalize::Model::CreateSchemaRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateSchemaRequest.h:30
Personalize_EXPORTS.h
Aws::Personalize::Model::CreateSchemaRequest::WithName
CreateSchemaRequest & WithName(const Aws::String &value)
Definition: CreateSchemaRequest.h:65