AWS SDK for C++  1.9.107
AWS SDK for C++
ListSpeechSynthesisTasksRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Http
16 {
17  class URI;
18 } //namespace Http
19 namespace Polly
20 {
21 namespace Model
22 {
23 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "ListSpeechSynthesisTasks"; }
36 
37  Aws::String SerializePayload() const override;
38 
39  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
40 
41 
45  inline int GetMaxResults() const{ return m_maxResults; }
46 
50  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
51 
55  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
56 
60  inline ListSpeechSynthesisTasksRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
61 
62 
67  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
68 
73  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
74 
79  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
80 
85  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
86 
91  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
92 
97  inline ListSpeechSynthesisTasksRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
98 
103  inline ListSpeechSynthesisTasksRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
104 
109  inline ListSpeechSynthesisTasksRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
110 
111 
115  inline const TaskStatus& GetStatus() const{ return m_status; }
116 
120  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
121 
125  inline void SetStatus(const TaskStatus& value) { m_statusHasBeenSet = true; m_status = value; }
126 
130  inline void SetStatus(TaskStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
131 
135  inline ListSpeechSynthesisTasksRequest& WithStatus(const TaskStatus& value) { SetStatus(value); return *this;}
136 
140  inline ListSpeechSynthesisTasksRequest& WithStatus(TaskStatus&& value) { SetStatus(std::move(value)); return *this;}
141 
142  private:
143 
144  int m_maxResults;
145  bool m_maxResultsHasBeenSet;
146 
147  Aws::String m_nextToken;
148  bool m_nextTokenHasBeenSet;
149 
150  TaskStatus m_status;
151  bool m_statusHasBeenSet;
152  };
153 
154 } // namespace Model
155 } // namespace Polly
156 } // namespace Aws
Aws::Polly::Model::ListSpeechSynthesisTasksRequest::WithStatus
ListSpeechSynthesisTasksRequest & WithStatus(const TaskStatus &value)
Definition: ListSpeechSynthesisTasksRequest.h:135
Aws::Http::URI
Definition: URI.h:32
Aws::Polly::Model::ListSpeechSynthesisTasksRequest::ListSpeechSynthesisTasksRequest
ListSpeechSynthesisTasksRequest()
Aws::Polly::Model::ListSpeechSynthesisTasksRequest::WithStatus
ListSpeechSynthesisTasksRequest & WithStatus(TaskStatus &&value)
Definition: ListSpeechSynthesisTasksRequest.h:140
Aws::Polly::Model::ListSpeechSynthesisTasksRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListSpeechSynthesisTasksRequest.h:73
Polly_EXPORTS.h
AWS_POLLY_API
#define AWS_POLLY_API
Definition: Polly_EXPORTS.h:28
Aws::Polly::Model::ListSpeechSynthesisTasksRequest::WithNextToken
ListSpeechSynthesisTasksRequest & WithNextToken(const char *value)
Definition: ListSpeechSynthesisTasksRequest.h:109
Aws::Polly::Model::ListSpeechSynthesisTasksRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Polly::Model::ListSpeechSynthesisTasksRequest::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: ListSpeechSynthesisTasksRequest.h:120
Aws::Polly::Model::ListSpeechSynthesisTasksRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListSpeechSynthesisTasksRequest.h:79
Aws::Polly::Model::ListSpeechSynthesisTasksRequest
Definition: ListSpeechSynthesisTasksRequest.h:27
Aws::Polly::PollyRequest
Definition: PollyRequest.h:17
Aws::Polly::Model::ListSpeechSynthesisTasksRequest::WithMaxResults
ListSpeechSynthesisTasksRequest & WithMaxResults(int value)
Definition: ListSpeechSynthesisTasksRequest.h:60
Aws::Polly::Model::ListSpeechSynthesisTasksRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListSpeechSynthesisTasksRequest.h:85
AWSString.h
Aws::Polly::Model::ListSpeechSynthesisTasksRequest::GetStatus
const TaskStatus & GetStatus() const
Definition: ListSpeechSynthesisTasksRequest.h:115
Aws::Polly::Model::ListSpeechSynthesisTasksRequest::WithNextToken
ListSpeechSynthesisTasksRequest & WithNextToken(Aws::String &&value)
Definition: ListSpeechSynthesisTasksRequest.h:103
Aws::Polly::Model::ListSpeechSynthesisTasksRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListSpeechSynthesisTasksRequest.h:55
Aws::Polly::Model::TaskStatus
TaskStatus
Definition: TaskStatus.h:17
Aws
Definition: AccessManagementClient.h:15
Aws::Polly::Model::ListSpeechSynthesisTasksRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListSpeechSynthesisTasksRequest.h:67
Aws::Polly::Model::ListSpeechSynthesisTasksRequest::SetStatus
void SetStatus(TaskStatus &&value)
Definition: ListSpeechSynthesisTasksRequest.h:130
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
TaskStatus.h
Aws::Polly::Model::ListSpeechSynthesisTasksRequest::WithNextToken
ListSpeechSynthesisTasksRequest & WithNextToken(const Aws::String &value)
Definition: ListSpeechSynthesisTasksRequest.h:97
Aws::Polly::Model::ListSpeechSynthesisTasksRequest::SetStatus
void SetStatus(const TaskStatus &value)
Definition: ListSpeechSynthesisTasksRequest.h:125
Aws::Polly::Model::ListSpeechSynthesisTasksRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListSpeechSynthesisTasksRequest.h:91
Aws::Polly::Model::ListSpeechSynthesisTasksRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListSpeechSynthesisTasksRequest.h:50
Aws::Polly::Model::ListSpeechSynthesisTasksRequest::GetMaxResults
int GetMaxResults() const
Definition: ListSpeechSynthesisTasksRequest.h:45
Aws::Polly::Model::ListSpeechSynthesisTasksRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListSpeechSynthesisTasksRequest.h:35
PollyRequest.h
Aws::Polly::Model::ListSpeechSynthesisTasksRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override