AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
SynthesizeSpeechResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/Array.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/stream/ResponseStream.h>
11#include <aws/polly/Polly_EXPORTS.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Polly {
20namespace Model {
22 public:
23 AWS_POLLY_API SynthesizeSpeechResult() = default;
26 // we delete these because Microsoft doesn't handle move generation correctly
27 // and we therefore don't trust them to get it right here either.
30
33
35
38 inline Aws::IOStream& GetAudioStream() const { return m_audioStream.GetUnderlyingStream(); }
39 inline void ReplaceBody(Aws::IOStream* body) { m_audioStream = Aws::Utils::Stream::ResponseStream(body); }
40
42
44
64 inline const Aws::String& GetContentType() const { return m_contentType; }
65 template <typename ContentTypeT = Aws::String>
66 void SetContentType(ContentTypeT&& value) {
67 m_contentTypeHasBeenSet = true;
68 m_contentType = std::forward<ContentTypeT>(value);
69 }
70 template <typename ContentTypeT = Aws::String>
71 SynthesizeSpeechResult& WithContentType(ContentTypeT&& value) {
72 SetContentType(std::forward<ContentTypeT>(value));
73 return *this;
74 }
76
78
81 inline int GetRequestCharacters() const { return m_requestCharacters; }
82 inline void SetRequestCharacters(int value) {
83 m_requestCharactersHasBeenSet = true;
84 m_requestCharacters = value;
85 }
88 return *this;
89 }
91
93
94 inline const Aws::String& GetRequestId() const { return m_requestId; }
95 template <typename RequestIdT = Aws::String>
96 void SetRequestId(RequestIdT&& value) {
97 m_requestIdHasBeenSet = true;
98 m_requestId = std::forward<RequestIdT>(value);
99 }
100 template <typename RequestIdT = Aws::String>
102 SetRequestId(std::forward<RequestIdT>(value));
103 return *this;
104 }
106 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
107
108 private:
110
111 Aws::String m_contentType;
112
113 int m_requestCharacters{0};
114
115 Aws::String m_requestId;
116 Aws::Http::HttpResponseCode m_HttpResponseCode;
117 bool m_audioStreamHasBeenSet = false;
118 bool m_contentTypeHasBeenSet = false;
119 bool m_requestCharactersHasBeenSet = false;
120 bool m_requestIdHasBeenSet = false;
121};
122
123} // namespace Model
124} // namespace Polly
125} // namespace Aws
AWS_POLLY_API SynthesizeSpeechResult(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
AWS_POLLY_API SynthesizeSpeechResult(SynthesizeSpeechResult &&)=default
SynthesizeSpeechResult & WithRequestId(RequestIdT &&value)
SynthesizeSpeechResult & WithContentType(ContentTypeT &&value)
SynthesizeSpeechResult(const SynthesizeSpeechResult &)=delete
AWS_POLLY_API SynthesizeSpeechResult()=default
SynthesizeSpeechResult & WithRequestCharacters(int value)
SynthesizeSpeechResult & operator=(const SynthesizeSpeechResult &)=delete
AWS_POLLY_API SynthesizeSpeechResult & operator=(SynthesizeSpeechResult &&)=default
AWS_POLLY_API SynthesizeSpeechResult & operator=(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
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