AWS SDK for C++  1.9.107
AWS SDK for C++
DescribeVoicesResult.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <aws/polly/model/Voice.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 template<typename RESULT_TYPE>
16 class AmazonWebServiceResult;
17 
18 namespace Utils
19 {
20 namespace Json
21 {
22  class JsonValue;
23 } // namespace Json
24 } // namespace Utils
25 namespace Polly
26 {
27 namespace Model
28 {
30  {
31  public:
35 
36 
40  inline const Aws::Vector<Voice>& GetVoices() const{ return m_voices; }
41 
45  inline void SetVoices(const Aws::Vector<Voice>& value) { m_voices = value; }
46 
50  inline void SetVoices(Aws::Vector<Voice>&& value) { m_voices = std::move(value); }
51 
55  inline DescribeVoicesResult& WithVoices(const Aws::Vector<Voice>& value) { SetVoices(value); return *this;}
56 
60  inline DescribeVoicesResult& WithVoices(Aws::Vector<Voice>&& value) { SetVoices(std::move(value)); return *this;}
61 
65  inline DescribeVoicesResult& AddVoices(const Voice& value) { m_voices.push_back(value); return *this; }
66 
70  inline DescribeVoicesResult& AddVoices(Voice&& value) { m_voices.push_back(std::move(value)); return *this; }
71 
72 
78  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
79 
85  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
86 
92  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
93 
99  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
100 
106  inline DescribeVoicesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
107 
113  inline DescribeVoicesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
114 
120  inline DescribeVoicesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
121 
122  private:
123 
124  Aws::Vector<Voice> m_voices;
125 
126  Aws::String m_nextToken;
127  };
128 
129 } // namespace Model
130 } // namespace Polly
131 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::Polly::Model::DescribeVoicesResult::WithVoices
DescribeVoicesResult & WithVoices(Aws::Vector< Voice > &&value)
Definition: DescribeVoicesResult.h:60
Polly_EXPORTS.h
AWS_POLLY_API
#define AWS_POLLY_API
Definition: Polly_EXPORTS.h:28
Aws::Polly::Model::DescribeVoicesResult::DescribeVoicesResult
DescribeVoicesResult()
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Polly::Model::DescribeVoicesResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribeVoicesResult.h:92
AWSVector.h
Aws::Polly::Model::DescribeVoicesResult::WithNextToken
DescribeVoicesResult & WithNextToken(Aws::String &&value)
Definition: DescribeVoicesResult.h:113
Voice.h
Aws::Polly::Model::DescribeVoicesResult::SetVoices
void SetVoices(Aws::Vector< Voice > &&value)
Definition: DescribeVoicesResult.h:50
Aws::Polly::Model::DescribeVoicesResult::WithVoices
DescribeVoicesResult & WithVoices(const Aws::Vector< Voice > &value)
Definition: DescribeVoicesResult.h:55
Aws::Polly::Model::Voice
Definition: Voice.h:37
Aws::Polly::Model::DescribeVoicesResult::WithNextToken
DescribeVoicesResult & WithNextToken(const Aws::String &value)
Definition: DescribeVoicesResult.h:106
Aws::Polly::Model::DescribeVoicesResult::AddVoices
DescribeVoicesResult & AddVoices(const Voice &value)
Definition: DescribeVoicesResult.h:65
Aws::Polly::Model::DescribeVoicesResult::DescribeVoicesResult
DescribeVoicesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWSString.h
Aws::Polly::Model::DescribeVoicesResult::GetVoices
const Aws::Vector< Voice > & GetVoices() const
Definition: DescribeVoicesResult.h:40
Aws::Polly::Model::DescribeVoicesResult
Definition: DescribeVoicesResult.h:30
Aws::Polly::Model::DescribeVoicesResult::SetNextToken
void SetNextToken(const char *value)
Definition: DescribeVoicesResult.h:99
Aws::Polly::Model::DescribeVoicesResult::operator=
DescribeVoicesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Polly::Model::DescribeVoicesResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribeVoicesResult.h:78
Aws
Definition: AccessManagementClient.h:15
Aws::Polly::Model::DescribeVoicesResult::WithNextToken
DescribeVoicesResult & WithNextToken(const char *value)
Definition: DescribeVoicesResult.h:120
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Polly::Model::DescribeVoicesResult::AddVoices
DescribeVoicesResult & AddVoices(Voice &&value)
Definition: DescribeVoicesResult.h:70
Aws::Polly::Model::DescribeVoicesResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribeVoicesResult.h:85
Aws::Polly::Model::DescribeVoicesResult::SetVoices
void SetVoices(const Aws::Vector< Voice > &value)
Definition: DescribeVoicesResult.h:45