AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
SynthesizeSpeechResult.h
1
6#pragma once
7#include <aws/core/utils/Array.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/stream/ResponseStream.h>
10#include <aws/polly/Polly_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Polly {
19namespace Model {
21 public:
22 AWS_POLLY_API SynthesizeSpeechResult() = default;
25 // we delete these because Microsoft doesn't handle move generation correctly
26 // and we therefore don't trust them to get it right here either.
29
32
34
37 inline Aws::IOStream& GetAudioStream() const { return m_audioStream.GetUnderlyingStream(); }
38 inline void ReplaceBody(Aws::IOStream* body) { m_audioStream = Aws::Utils::Stream::ResponseStream(body); }
39
41
43
56 inline const Aws::String& GetContentType() const { return m_contentType; }
57 template <typename ContentTypeT = Aws::String>
58 void SetContentType(ContentTypeT&& value) {
59 m_contentTypeHasBeenSet = true;
60 m_contentType = std::forward<ContentTypeT>(value);
61 }
62 template <typename ContentTypeT = Aws::String>
63 SynthesizeSpeechResult& WithContentType(ContentTypeT&& value) {
64 SetContentType(std::forward<ContentTypeT>(value));
65 return *this;
66 }
68
70
73 inline int GetRequestCharacters() const { return m_requestCharacters; }
74 inline void SetRequestCharacters(int value) {
75 m_requestCharactersHasBeenSet = true;
76 m_requestCharacters = value;
77 }
80 return *this;
81 }
83
85
86 inline const Aws::String& GetRequestId() const { return m_requestId; }
87 template <typename RequestIdT = Aws::String>
88 void SetRequestId(RequestIdT&& value) {
89 m_requestIdHasBeenSet = true;
90 m_requestId = std::forward<RequestIdT>(value);
91 }
92 template <typename RequestIdT = Aws::String>
94 SetRequestId(std::forward<RequestIdT>(value));
95 return *this;
96 }
98 private:
100
101 Aws::String m_contentType;
102
103 int m_requestCharacters{0};
104
105 Aws::String m_requestId;
106 bool m_audioStreamHasBeenSet = false;
107 bool m_contentTypeHasBeenSet = false;
108 bool m_requestCharactersHasBeenSet = false;
109 bool m_requestIdHasBeenSet = false;
110};
111
112} // namespace Model
113} // namespace Polly
114} // 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::IOStream & GetUnderlyingStream() const
std::basic_iostream< char, std::char_traits< char > > IOStream
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String