AWS SDK for C++  1.9.108
AWS SDK for C++
SynthesizeSpeechResult.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <aws/core/utils/Array.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 template<typename RESULT_TYPE>
16 class AmazonWebServiceResult;
17 
18 namespace Polly
19 {
20 namespace Model
21 {
23  {
24  public:
26  //We have to define these because Microsoft doesn't auto generate them
29  //we delete these because Microsoft doesn't handle move generation correctly
30  //and we therefore don't trust them to get it right here either.
33 
34 
37 
38 
39 
43  inline Aws::IOStream& GetAudioStream() { return m_audioStream.GetUnderlyingStream(); }
44 
48  inline void ReplaceBody(Aws::IOStream* body) { m_audioStream = Aws::Utils::Stream::ResponseStream(body); }
49 
50 
64  inline const Aws::String& GetContentType() const{ return m_contentType; }
65 
79  inline void SetContentType(const Aws::String& value) { m_contentType = value; }
80 
94  inline void SetContentType(Aws::String&& value) { m_contentType = std::move(value); }
95 
109  inline void SetContentType(const char* value) { m_contentType.assign(value); }
110 
124  inline SynthesizeSpeechResult& WithContentType(const Aws::String& value) { SetContentType(value); return *this;}
125 
139  inline SynthesizeSpeechResult& WithContentType(Aws::String&& value) { SetContentType(std::move(value)); return *this;}
140 
154  inline SynthesizeSpeechResult& WithContentType(const char* value) { SetContentType(value); return *this;}
155 
156 
160  inline int GetRequestCharacters() const{ return m_requestCharacters; }
161 
165  inline void SetRequestCharacters(int value) { m_requestCharacters = value; }
166 
170  inline SynthesizeSpeechResult& WithRequestCharacters(int value) { SetRequestCharacters(value); return *this;}
171 
172  private:
173 
175 
176  Aws::String m_contentType;
177 
178  int m_requestCharacters;
179  };
180 
181 } // namespace Model
182 } // namespace Polly
183 } // namespace Aws
Aws::Polly::Model::SynthesizeSpeechResult::SetContentType
void SetContentType(Aws::String &&value)
Definition: SynthesizeSpeechResult.h:94
Aws::IOStream
std::basic_iostream< char, std::char_traits< char > > IOStream
Definition: AWSStreamFwd.h:22
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::Utils::Stream::ResponseStream
Definition: ResponseStream.h:22
Aws::Polly::Model::SynthesizeSpeechResult::SetRequestCharacters
void SetRequestCharacters(int value)
Definition: SynthesizeSpeechResult.h:165
Aws::Polly::Model::SynthesizeSpeechResult::GetContentType
const Aws::String & GetContentType() const
Definition: SynthesizeSpeechResult.h:64
Aws::Polly::Model::SynthesizeSpeechResult::operator=
SynthesizeSpeechResult & operator=(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
Polly_EXPORTS.h
AWS_POLLY_API
#define AWS_POLLY_API
Definition: Polly_EXPORTS.h:28
Aws::Polly::Model::SynthesizeSpeechResult::SynthesizeSpeechResult
SynthesizeSpeechResult()
Aws::Polly::Model::SynthesizeSpeechResult::WithRequestCharacters
SynthesizeSpeechResult & WithRequestCharacters(int value)
Definition: SynthesizeSpeechResult.h:170
Aws::Polly::Model::SynthesizeSpeechResult::operator=
SynthesizeSpeechResult & operator=(SynthesizeSpeechResult &&)
Aws::Polly::Model::SynthesizeSpeechResult::WithContentType
SynthesizeSpeechResult & WithContentType(Aws::String &&value)
Definition: SynthesizeSpeechResult.h:139
Aws::Polly::Model::SynthesizeSpeechResult::SetContentType
void SetContentType(const Aws::String &value)
Definition: SynthesizeSpeechResult.h:79
Aws::Polly::Model::SynthesizeSpeechResult::GetRequestCharacters
int GetRequestCharacters() const
Definition: SynthesizeSpeechResult.h:160
Aws::Polly::Model::SynthesizeSpeechResult::operator=
SynthesizeSpeechResult & operator=(const SynthesizeSpeechResult &)=delete
AWSString.h
Aws::Polly::Model::SynthesizeSpeechResult::SynthesizeSpeechResult
SynthesizeSpeechResult(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
Aws::Polly::Model::SynthesizeSpeechResult::SynthesizeSpeechResult
SynthesizeSpeechResult(SynthesizeSpeechResult &&)
Aws
Definition: AccessManagementClient.h:15
Array.h
Aws::Polly::Model::SynthesizeSpeechResult::GetAudioStream
Aws::IOStream & GetAudioStream()
Definition: SynthesizeSpeechResult.h:43
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Polly::Model::SynthesizeSpeechResult::SynthesizeSpeechResult
SynthesizeSpeechResult(const SynthesizeSpeechResult &)=delete
Aws::Polly::Model::SynthesizeSpeechResult::WithContentType
SynthesizeSpeechResult & WithContentType(const char *value)
Definition: SynthesizeSpeechResult.h:154
ResponseStream.h
Aws::Polly::Model::SynthesizeSpeechResult
Definition: SynthesizeSpeechResult.h:23
Aws::Polly::Model::SynthesizeSpeechResult::WithContentType
SynthesizeSpeechResult & WithContentType(const Aws::String &value)
Definition: SynthesizeSpeechResult.h:124
Aws::Polly::Model::SynthesizeSpeechResult::ReplaceBody
void ReplaceBody(Aws::IOStream *body)
Definition: SynthesizeSpeechResult.h:48
Aws::Polly::Model::SynthesizeSpeechResult::SetContentType
void SetContentType(const char *value)
Definition: SynthesizeSpeechResult.h:109