AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
VoiceMessage.h
1
6#pragma once
7#include <aws/pinpoint/Pinpoint_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Pinpoint
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_PINPOINT_API VoiceMessage() = default;
38 AWS_PINPOINT_API VoiceMessage(Aws::Utils::Json::JsonView jsonValue);
40 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetBody() const { return m_body; }
48 inline bool BodyHasBeenSet() const { return m_bodyHasBeenSet; }
49 template<typename BodyT = Aws::String>
50 void SetBody(BodyT&& value) { m_bodyHasBeenSet = true; m_body = std::forward<BodyT>(value); }
51 template<typename BodyT = Aws::String>
52 VoiceMessage& WithBody(BodyT&& value) { SetBody(std::forward<BodyT>(value)); return *this;}
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) { m_languageCodeHasBeenSet = true; m_languageCode = std::forward<LanguageCodeT>(value); }
66 template<typename LanguageCodeT = Aws::String>
67 VoiceMessage& WithLanguageCode(LanguageCodeT&& value) { SetLanguageCode(std::forward<LanguageCodeT>(value)); return *this;}
69
71
77 inline const Aws::String& GetOriginationNumber() const { return m_originationNumber; }
78 inline bool OriginationNumberHasBeenSet() const { return m_originationNumberHasBeenSet; }
79 template<typename OriginationNumberT = Aws::String>
80 void SetOriginationNumber(OriginationNumberT&& value) { m_originationNumberHasBeenSet = true; m_originationNumber = std::forward<OriginationNumberT>(value); }
81 template<typename OriginationNumberT = Aws::String>
82 VoiceMessage& WithOriginationNumber(OriginationNumberT&& value) { SetOriginationNumber(std::forward<OriginationNumberT>(value)); return *this;}
84
86
90 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetSubstitutions() const { return m_substitutions; }
91 inline bool SubstitutionsHasBeenSet() const { return m_substitutionsHasBeenSet; }
92 template<typename SubstitutionsT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
93 void SetSubstitutions(SubstitutionsT&& value) { m_substitutionsHasBeenSet = true; m_substitutions = std::forward<SubstitutionsT>(value); }
94 template<typename SubstitutionsT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
95 VoiceMessage& WithSubstitutions(SubstitutionsT&& value) { SetSubstitutions(std::forward<SubstitutionsT>(value)); return *this;}
96 template<typename SubstitutionsKeyT = Aws::String, typename SubstitutionsValueT = Aws::Vector<Aws::String>>
97 VoiceMessage& AddSubstitutions(SubstitutionsKeyT&& key, SubstitutionsValueT&& value) {
98 m_substitutionsHasBeenSet = true; m_substitutions.emplace(std::forward<SubstitutionsKeyT>(key), std::forward<SubstitutionsValueT>(value)); return *this;
99 }
101
103
109 inline const Aws::String& GetVoiceId() const { return m_voiceId; }
110 inline bool VoiceIdHasBeenSet() const { return m_voiceIdHasBeenSet; }
111 template<typename VoiceIdT = Aws::String>
112 void SetVoiceId(VoiceIdT&& value) { m_voiceIdHasBeenSet = true; m_voiceId = std::forward<VoiceIdT>(value); }
113 template<typename VoiceIdT = Aws::String>
114 VoiceMessage& WithVoiceId(VoiceIdT&& value) { SetVoiceId(std::forward<VoiceIdT>(value)); return *this;}
116 private:
117
118 Aws::String m_body;
119 bool m_bodyHasBeenSet = false;
120
121 Aws::String m_languageCode;
122 bool m_languageCodeHasBeenSet = false;
123
124 Aws::String m_originationNumber;
125 bool m_originationNumberHasBeenSet = false;
126
128 bool m_substitutionsHasBeenSet = false;
129
130 Aws::String m_voiceId;
131 bool m_voiceIdHasBeenSet = false;
132 };
133
134} // namespace Model
135} // namespace Pinpoint
136} // 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