AWS SDK for C++  1.9.107
AWS SDK for C++
PutLexiconRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Polly
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 "PutLexicon"; }
31 
32  Aws::String SerializePayload() const override;
33 
34 
40  inline const Aws::String& GetName() const{ return m_name; }
41 
47  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
48 
54  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
55 
61  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
62 
68  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
69 
75  inline PutLexiconRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
76 
82  inline PutLexiconRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
83 
89  inline PutLexiconRequest& WithName(const char* value) { SetName(value); return *this;}
90 
91 
95  inline const Aws::String& GetContent() const{ return m_content; }
96 
100  inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
101 
105  inline void SetContent(const Aws::String& value) { m_contentHasBeenSet = true; m_content = value; }
106 
110  inline void SetContent(Aws::String&& value) { m_contentHasBeenSet = true; m_content = std::move(value); }
111 
115  inline void SetContent(const char* value) { m_contentHasBeenSet = true; m_content.assign(value); }
116 
120  inline PutLexiconRequest& WithContent(const Aws::String& value) { SetContent(value); return *this;}
121 
125  inline PutLexiconRequest& WithContent(Aws::String&& value) { SetContent(std::move(value)); return *this;}
126 
130  inline PutLexiconRequest& WithContent(const char* value) { SetContent(value); return *this;}
131 
132  private:
133 
134  Aws::String m_name;
135  bool m_nameHasBeenSet;
136 
137  Aws::String m_content;
138  bool m_contentHasBeenSet;
139  };
140 
141 } // namespace Model
142 } // namespace Polly
143 } // namespace Aws
Aws::Polly::Model::PutLexiconRequest::WithContent
PutLexiconRequest & WithContent(const Aws::String &value)
Definition: PutLexiconRequest.h:120
Aws::Polly::Model::PutLexiconRequest::SetContent
void SetContent(const Aws::String &value)
Definition: PutLexiconRequest.h:105
Aws::Polly::Model::PutLexiconRequest::SetContent
void SetContent(Aws::String &&value)
Definition: PutLexiconRequest.h:110
Aws::Polly::Model::PutLexiconRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: PutLexiconRequest.h:30
Aws::Polly::Model::PutLexiconRequest::WithName
PutLexiconRequest & WithName(const Aws::String &value)
Definition: PutLexiconRequest.h:75
Aws::Polly::Model::PutLexiconRequest::ContentHasBeenSet
bool ContentHasBeenSet() const
Definition: PutLexiconRequest.h:100
Polly_EXPORTS.h
AWS_POLLY_API
#define AWS_POLLY_API
Definition: Polly_EXPORTS.h:28
Aws::Polly::Model::PutLexiconRequest::SetName
void SetName(const Aws::String &value)
Definition: PutLexiconRequest.h:54
Aws::Polly::Model::PutLexiconRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Polly::Model::PutLexiconRequest::WithName
PutLexiconRequest & WithName(Aws::String &&value)
Definition: PutLexiconRequest.h:82
Aws::Polly::Model::PutLexiconRequest::GetName
const Aws::String & GetName() const
Definition: PutLexiconRequest.h:40
Aws::Polly::PollyRequest
Definition: PollyRequest.h:17
Aws::Polly::Model::PutLexiconRequest::WithName
PutLexiconRequest & WithName(const char *value)
Definition: PutLexiconRequest.h:89
Aws::Polly::Model::PutLexiconRequest::SetContent
void SetContent(const char *value)
Definition: PutLexiconRequest.h:115
Aws::Polly::Model::PutLexiconRequest
Definition: PutLexiconRequest.h:22
AWSString.h
Aws::Polly::Model::PutLexiconRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: PutLexiconRequest.h:47
Aws::Polly::Model::PutLexiconRequest::GetContent
const Aws::String & GetContent() const
Definition: PutLexiconRequest.h:95
Aws
Definition: AccessManagementClient.h:15
Aws::Polly::Model::PutLexiconRequest::SetName
void SetName(Aws::String &&value)
Definition: PutLexiconRequest.h:61
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Polly::Model::PutLexiconRequest::PutLexiconRequest
PutLexiconRequest()
Aws::Polly::Model::PutLexiconRequest::WithContent
PutLexiconRequest & WithContent(Aws::String &&value)
Definition: PutLexiconRequest.h:125
Aws::Polly::Model::PutLexiconRequest::SetName
void SetName(const char *value)
Definition: PutLexiconRequest.h:68
PollyRequest.h
Aws::Polly::Model::PutLexiconRequest::WithContent
PutLexiconRequest & WithContent(const char *value)
Definition: PutLexiconRequest.h:130