AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SynthesizeSpeechResult.h
1
6#pragma once
7#include <aws/polly/Polly_EXPORTS.h>
8#include <aws/core/utils/stream/ResponseStream.h>
9#include <aws/core/utils/Array.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Polly
19{
20namespace Model
21{
23 {
24 public:
25 AWS_POLLY_API SynthesizeSpeechResult();
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
41
44 inline Aws::IOStream& GetAudioStream() const { return m_audioStream.GetUnderlyingStream(); }
45 inline void ReplaceBody(Aws::IOStream* body) { m_audioStream = Aws::Utils::Stream::ResponseStream(body); }
46
48
50
63 inline const Aws::String& GetContentType() const{ return m_contentType; }
64 inline void SetContentType(const Aws::String& value) { m_contentType = value; }
65 inline void SetContentType(Aws::String&& value) { m_contentType = std::move(value); }
66 inline void SetContentType(const char* value) { m_contentType.assign(value); }
67 inline SynthesizeSpeechResult& WithContentType(const Aws::String& value) { SetContentType(value); return *this;}
68 inline SynthesizeSpeechResult& WithContentType(Aws::String&& value) { SetContentType(std::move(value)); return *this;}
69 inline SynthesizeSpeechResult& WithContentType(const char* value) { SetContentType(value); return *this;}
71
73
76 inline int GetRequestCharacters() const{ return m_requestCharacters; }
77 inline void SetRequestCharacters(int value) { m_requestCharacters = value; }
78 inline SynthesizeSpeechResult& WithRequestCharacters(int value) { SetRequestCharacters(value); return *this;}
80
82
83 inline const Aws::String& GetRequestId() const{ return m_requestId; }
84 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
85 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
86 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
87 inline SynthesizeSpeechResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
88 inline SynthesizeSpeechResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
89 inline SynthesizeSpeechResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
91 private:
92
94
95 Aws::String m_contentType;
96
97 int m_requestCharacters;
98
99 Aws::String m_requestId;
100 };
101
102} // namespace Model
103} // namespace Polly
104} // namespace Aws
AWS_POLLY_API SynthesizeSpeechResult & operator=(SynthesizeSpeechResult &&)
AWS_POLLY_API SynthesizeSpeechResult(SynthesizeSpeechResult &&)
AWS_POLLY_API SynthesizeSpeechResult(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
SynthesizeSpeechResult & WithContentType(const Aws::String &value)
SynthesizeSpeechResult & WithRequestId(const char *value)
SynthesizeSpeechResult & WithRequestId(Aws::String &&value)
SynthesizeSpeechResult(const SynthesizeSpeechResult &)=delete
SynthesizeSpeechResult & WithContentType(const char *value)
void SetContentType(const Aws::String &value)
SynthesizeSpeechResult & WithRequestCharacters(int value)
SynthesizeSpeechResult & WithRequestId(const Aws::String &value)
SynthesizeSpeechResult & operator=(const SynthesizeSpeechResult &)=delete
SynthesizeSpeechResult & WithContentType(Aws::String &&value)
AWS_POLLY_API SynthesizeSpeechResult & operator=(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
Aws::IOStream & GetUnderlyingStream() const
std::basic_iostream< char, std::char_traits< char > > IOStream
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String