AWS SDK for C++

AWS SDK for C++ Version 1.11.759

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
57 inline const Aws::String& GetContentType() const { return m_contentType; }
58 template <typename ContentTypeT = Aws::String>
59 void SetContentType(ContentTypeT&& value) {
60 m_contentTypeHasBeenSet = true;
61 m_contentType = std::forward<ContentTypeT>(value);
62 }
63 template <typename ContentTypeT = Aws::String>
64 SynthesizeSpeechResult& WithContentType(ContentTypeT&& value) {
65 SetContentType(std::forward<ContentTypeT>(value));
66 return *this;
67 }
69
71
74 inline int GetRequestCharacters() const { return m_requestCharacters; }
75 inline void SetRequestCharacters(int value) {
76 m_requestCharactersHasBeenSet = true;
77 m_requestCharacters = value;
78 }
81 return *this;
82 }
84
86
87 inline const Aws::String& GetRequestId() const { return m_requestId; }
88 template <typename RequestIdT = Aws::String>
89 void SetRequestId(RequestIdT&& value) {
90 m_requestIdHasBeenSet = true;
91 m_requestId = std::forward<RequestIdT>(value);
92 }
93 template <typename RequestIdT = Aws::String>
95 SetRequestId(std::forward<RequestIdT>(value));
96 return *this;
97 }
99 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
100
101 private:
103
104 Aws::String m_contentType;
105
106 int m_requestCharacters{0};
107
108 Aws::String m_requestId;
109 Aws::Http::HttpResponseCode m_HttpResponseCode;
110 bool m_audioStreamHasBeenSet = false;
111 bool m_contentTypeHasBeenSet = false;
112 bool m_requestCharactersHasBeenSet = false;
113 bool m_requestIdHasBeenSet = false;
114};
115
116} // namespace Model
117} // namespace Polly
118} // 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