AWS SDK for C++

AWS SDK for C++ Version 1.11.682

Loading...
Searching...
No Matches
VoiceMessage.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/pinpoint/Pinpoint_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Pinpoint {
22namespace Model {
23
31 public:
32 AWS_PINPOINT_API VoiceMessage() = default;
33 AWS_PINPOINT_API VoiceMessage(Aws::Utils::Json::JsonView jsonValue);
35 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetBody() const { return m_body; }
42 inline bool BodyHasBeenSet() const { return m_bodyHasBeenSet; }
43 template <typename BodyT = Aws::String>
44 void SetBody(BodyT&& value) {
45 m_bodyHasBeenSet = true;
46 m_body = std::forward<BodyT>(value);
47 }
48 template <typename BodyT = Aws::String>
49 VoiceMessage& WithBody(BodyT&& value) {
50 SetBody(std::forward<BodyT>(value));
51 return *this;
52 }
54
56
62 inline const Aws::String& GetLanguageCode() const { return m_languageCode; }
63 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
64 template <typename LanguageCodeT = Aws::String>
65 void SetLanguageCode(LanguageCodeT&& value) {
66 m_languageCodeHasBeenSet = true;
67 m_languageCode = std::forward<LanguageCodeT>(value);
68 }
69 template <typename LanguageCodeT = Aws::String>
70 VoiceMessage& WithLanguageCode(LanguageCodeT&& value) {
71 SetLanguageCode(std::forward<LanguageCodeT>(value));
72 return *this;
73 }
75
77
83 inline const Aws::String& GetOriginationNumber() const { return m_originationNumber; }
84 inline bool OriginationNumberHasBeenSet() const { return m_originationNumberHasBeenSet; }
85 template <typename OriginationNumberT = Aws::String>
86 void SetOriginationNumber(OriginationNumberT&& value) {
87 m_originationNumberHasBeenSet = true;
88 m_originationNumber = std::forward<OriginationNumberT>(value);
89 }
90 template <typename OriginationNumberT = Aws::String>
91 VoiceMessage& WithOriginationNumber(OriginationNumberT&& value) {
92 SetOriginationNumber(std::forward<OriginationNumberT>(value));
93 return *this;
94 }
96
98
102 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetSubstitutions() const { return m_substitutions; }
103 inline bool SubstitutionsHasBeenSet() const { return m_substitutionsHasBeenSet; }
104 template <typename SubstitutionsT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
105 void SetSubstitutions(SubstitutionsT&& value) {
106 m_substitutionsHasBeenSet = true;
107 m_substitutions = std::forward<SubstitutionsT>(value);
108 }
109 template <typename SubstitutionsT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
110 VoiceMessage& WithSubstitutions(SubstitutionsT&& value) {
111 SetSubstitutions(std::forward<SubstitutionsT>(value));
112 return *this;
113 }
114 template <typename SubstitutionsKeyT = Aws::String, typename SubstitutionsValueT = Aws::Vector<Aws::String>>
115 VoiceMessage& AddSubstitutions(SubstitutionsKeyT&& key, SubstitutionsValueT&& value) {
116 m_substitutionsHasBeenSet = true;
117 m_substitutions.emplace(std::forward<SubstitutionsKeyT>(key), std::forward<SubstitutionsValueT>(value));
118 return *this;
119 }
121
123
129 inline const Aws::String& GetVoiceId() const { return m_voiceId; }
130 inline bool VoiceIdHasBeenSet() const { return m_voiceIdHasBeenSet; }
131 template <typename VoiceIdT = Aws::String>
132 void SetVoiceId(VoiceIdT&& value) {
133 m_voiceIdHasBeenSet = true;
134 m_voiceId = std::forward<VoiceIdT>(value);
135 }
136 template <typename VoiceIdT = Aws::String>
137 VoiceMessage& WithVoiceId(VoiceIdT&& value) {
138 SetVoiceId(std::forward<VoiceIdT>(value));
139 return *this;
140 }
142 private:
143 Aws::String m_body;
144 bool m_bodyHasBeenSet = false;
145
146 Aws::String m_languageCode;
147 bool m_languageCodeHasBeenSet = false;
148
149 Aws::String m_originationNumber;
150 bool m_originationNumberHasBeenSet = false;
151
153 bool m_substitutionsHasBeenSet = false;
154
155 Aws::String m_voiceId;
156 bool m_voiceIdHasBeenSet = false;
157};
158
159} // namespace Model
160} // namespace Pinpoint
161} // namespace Aws
void SetOriginationNumber(OriginationNumberT &&value)
const Aws::String & GetVoiceId() const
void SetSubstitutions(SubstitutionsT &&value)
void SetVoiceId(VoiceIdT &&value)
AWS_PINPOINT_API VoiceMessage & operator=(Aws::Utils::Json::JsonView jsonValue)
VoiceMessage & WithVoiceId(VoiceIdT &&value)
const Aws::String & GetLanguageCode() const
const Aws::String & GetBody() const
VoiceMessage & WithLanguageCode(LanguageCodeT &&value)
AWS_PINPOINT_API VoiceMessage(Aws::Utils::Json::JsonView jsonValue)
void SetLanguageCode(LanguageCodeT &&value)
const Aws::String & GetOriginationNumber() const
VoiceMessage & WithBody(BodyT &&value)
VoiceMessage & WithSubstitutions(SubstitutionsT &&value)
VoiceMessage & WithOriginationNumber(OriginationNumberT &&value)
VoiceMessage & AddSubstitutions(SubstitutionsKeyT &&key, SubstitutionsValueT &&value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_PINPOINT_API VoiceMessage()=default
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetSubstitutions() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue