AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
Lexicon.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/polly/Polly_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Polly {
20namespace Model {
21
30class Lexicon {
31 public:
32 AWS_POLLY_API Lexicon() = default;
33 AWS_POLLY_API Lexicon(Aws::Utils::Json::JsonView jsonValue);
34 AWS_POLLY_API Lexicon& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_POLLY_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const Aws::String& GetContent() const { return m_content; }
43 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
44 template <typename ContentT = Aws::String>
45 void SetContent(ContentT&& value) {
46 m_contentHasBeenSet = true;
47 m_content = std::forward<ContentT>(value);
48 }
49 template <typename ContentT = Aws::String>
50 Lexicon& WithContent(ContentT&& value) {
51 SetContent(std::forward<ContentT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetName() const { return m_name; }
61 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
62 template <typename NameT = Aws::String>
63 void SetName(NameT&& value) {
64 m_nameHasBeenSet = true;
65 m_name = std::forward<NameT>(value);
66 }
67 template <typename NameT = Aws::String>
68 Lexicon& WithName(NameT&& value) {
69 SetName(std::forward<NameT>(value));
70 return *this;
71 }
73 private:
74 Aws::String m_content;
75
76 Aws::String m_name;
77 bool m_contentHasBeenSet = false;
78 bool m_nameHasBeenSet = false;
79};
80
81} // namespace Model
82} // namespace Polly
83} // namespace Aws
Lexicon & WithName(NameT &&value)
Definition Lexicon.h:68
void SetContent(ContentT &&value)
Definition Lexicon.h:45
Lexicon & WithContent(ContentT &&value)
Definition Lexicon.h:50
AWS_POLLY_API Lexicon(Aws::Utils::Json::JsonView jsonValue)
bool ContentHasBeenSet() const
Definition Lexicon.h:43
const Aws::String & GetName() const
Definition Lexicon.h:60
AWS_POLLY_API Lexicon()=default
const Aws::String & GetContent() const
Definition Lexicon.h:42
bool NameHasBeenSet() const
Definition Lexicon.h:61
void SetName(NameT &&value)
Definition Lexicon.h:63
AWS_POLLY_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_POLLY_API Lexicon & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue