AWS SDK for C++

AWS SDK for C++ Version 1.11.757

Loading...
Searching...
No Matches
GetLexiconResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/polly/Polly_EXPORTS.h>
10#include <aws/polly/model/Lexicon.h>
11#include <aws/polly/model/LexiconAttributes.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace Polly {
25namespace Model {
27 public:
28 AWS_POLLY_API GetLexiconResult() = default;
31
33
36 inline const Lexicon& GetLexicon() const { return m_lexicon; }
37 template <typename LexiconT = Lexicon>
38 void SetLexicon(LexiconT&& value) {
39 m_lexiconHasBeenSet = true;
40 m_lexicon = std::forward<LexiconT>(value);
41 }
42 template <typename LexiconT = Lexicon>
43 GetLexiconResult& WithLexicon(LexiconT&& value) {
44 SetLexicon(std::forward<LexiconT>(value));
45 return *this;
46 }
48
50
55 inline const LexiconAttributes& GetLexiconAttributes() const { return m_lexiconAttributes; }
56 template <typename LexiconAttributesT = LexiconAttributes>
57 void SetLexiconAttributes(LexiconAttributesT&& value) {
58 m_lexiconAttributesHasBeenSet = true;
59 m_lexiconAttributes = std::forward<LexiconAttributesT>(value);
60 }
61 template <typename LexiconAttributesT = LexiconAttributes>
62 GetLexiconResult& WithLexiconAttributes(LexiconAttributesT&& value) {
63 SetLexiconAttributes(std::forward<LexiconAttributesT>(value));
64 return *this;
65 }
67
69
70 inline const Aws::String& GetRequestId() const { return m_requestId; }
71 template <typename RequestIdT = Aws::String>
72 void SetRequestId(RequestIdT&& value) {
73 m_requestIdHasBeenSet = true;
74 m_requestId = std::forward<RequestIdT>(value);
75 }
76 template <typename RequestIdT = Aws::String>
77 GetLexiconResult& WithRequestId(RequestIdT&& value) {
78 SetRequestId(std::forward<RequestIdT>(value));
79 return *this;
80 }
82 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
83
84 private:
85 Lexicon m_lexicon;
86
87 LexiconAttributes m_lexiconAttributes;
88
89 Aws::String m_requestId;
90 Aws::Http::HttpResponseCode m_HttpResponseCode;
91 bool m_lexiconHasBeenSet = false;
92 bool m_lexiconAttributesHasBeenSet = false;
93 bool m_requestIdHasBeenSet = false;
94};
95
96} // namespace Model
97} // namespace Polly
98} // namespace Aws
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_POLLY_API GetLexiconResult()=default
AWS_POLLY_API GetLexiconResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetLexiconResult & WithLexicon(LexiconT &&value)
GetLexiconResult & WithLexiconAttributes(LexiconAttributesT &&value)
const Aws::String & GetRequestId() const
void SetLexiconAttributes(LexiconAttributesT &&value)
GetLexiconResult & WithRequestId(RequestIdT &&value)
AWS_POLLY_API GetLexiconResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const LexiconAttributes & GetLexiconAttributes() const
void SetRequestId(RequestIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue