AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetBody(const Aws::String& value) { m_bodyHasBeenSet = true; m_body = value; }
50 inline void SetBody(Aws::String&& value) { m_bodyHasBeenSet = true; m_body = std::move(value); }
51 inline void SetBody(const char* value) { m_bodyHasBeenSet = true; m_body.assign(value); }
52 inline VoiceMessage& WithBody(const Aws::String& value) { SetBody(value); return *this;}
53 inline VoiceMessage& WithBody(Aws::String&& value) { SetBody(std::move(value)); return *this;}
54 inline VoiceMessage& WithBody(const char* value) { SetBody(value); return *this;}
56
58
64 inline const Aws::String& GetLanguageCode() const{ return m_languageCode; }
65 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
66 inline void SetLanguageCode(const Aws::String& value) { m_languageCodeHasBeenSet = true; m_languageCode = value; }
67 inline void SetLanguageCode(Aws::String&& value) { m_languageCodeHasBeenSet = true; m_languageCode = std::move(value); }
68 inline void SetLanguageCode(const char* value) { m_languageCodeHasBeenSet = true; m_languageCode.assign(value); }
69 inline VoiceMessage& WithLanguageCode(const Aws::String& value) { SetLanguageCode(value); return *this;}
70 inline VoiceMessage& WithLanguageCode(Aws::String&& value) { SetLanguageCode(std::move(value)); return *this;}
71 inline VoiceMessage& WithLanguageCode(const char* value) { SetLanguageCode(value); return *this;}
73
75
81 inline const Aws::String& GetOriginationNumber() const{ return m_originationNumber; }
82 inline bool OriginationNumberHasBeenSet() const { return m_originationNumberHasBeenSet; }
83 inline void SetOriginationNumber(const Aws::String& value) { m_originationNumberHasBeenSet = true; m_originationNumber = value; }
84 inline void SetOriginationNumber(Aws::String&& value) { m_originationNumberHasBeenSet = true; m_originationNumber = std::move(value); }
85 inline void SetOriginationNumber(const char* value) { m_originationNumberHasBeenSet = true; m_originationNumber.assign(value); }
86 inline VoiceMessage& WithOriginationNumber(const Aws::String& value) { SetOriginationNumber(value); return *this;}
87 inline VoiceMessage& WithOriginationNumber(Aws::String&& value) { SetOriginationNumber(std::move(value)); return *this;}
88 inline VoiceMessage& WithOriginationNumber(const char* value) { SetOriginationNumber(value); return *this;}
90
92
96 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetSubstitutions() const{ return m_substitutions; }
97 inline bool SubstitutionsHasBeenSet() const { return m_substitutionsHasBeenSet; }
98 inline void SetSubstitutions(const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& value) { m_substitutionsHasBeenSet = true; m_substitutions = value; }
99 inline void SetSubstitutions(Aws::Map<Aws::String, Aws::Vector<Aws::String>>&& value) { m_substitutionsHasBeenSet = true; m_substitutions = std::move(value); }
102 inline VoiceMessage& AddSubstitutions(const Aws::String& key, const Aws::Vector<Aws::String>& value) { m_substitutionsHasBeenSet = true; m_substitutions.emplace(key, value); return *this; }
103 inline VoiceMessage& AddSubstitutions(Aws::String&& key, const Aws::Vector<Aws::String>& value) { m_substitutionsHasBeenSet = true; m_substitutions.emplace(std::move(key), value); return *this; }
104 inline VoiceMessage& AddSubstitutions(const Aws::String& key, Aws::Vector<Aws::String>&& value) { m_substitutionsHasBeenSet = true; m_substitutions.emplace(key, std::move(value)); return *this; }
105 inline VoiceMessage& AddSubstitutions(Aws::String&& key, Aws::Vector<Aws::String>&& value) { m_substitutionsHasBeenSet = true; m_substitutions.emplace(std::move(key), std::move(value)); return *this; }
106 inline VoiceMessage& AddSubstitutions(const char* key, Aws::Vector<Aws::String>&& value) { m_substitutionsHasBeenSet = true; m_substitutions.emplace(key, std::move(value)); return *this; }
107 inline VoiceMessage& AddSubstitutions(const char* key, const Aws::Vector<Aws::String>& value) { m_substitutionsHasBeenSet = true; m_substitutions.emplace(key, value); return *this; }
109
111
117 inline const Aws::String& GetVoiceId() const{ return m_voiceId; }
118 inline bool VoiceIdHasBeenSet() const { return m_voiceIdHasBeenSet; }
119 inline void SetVoiceId(const Aws::String& value) { m_voiceIdHasBeenSet = true; m_voiceId = value; }
120 inline void SetVoiceId(Aws::String&& value) { m_voiceIdHasBeenSet = true; m_voiceId = std::move(value); }
121 inline void SetVoiceId(const char* value) { m_voiceIdHasBeenSet = true; m_voiceId.assign(value); }
122 inline VoiceMessage& WithVoiceId(const Aws::String& value) { SetVoiceId(value); return *this;}
123 inline VoiceMessage& WithVoiceId(Aws::String&& value) { SetVoiceId(std::move(value)); return *this;}
124 inline VoiceMessage& WithVoiceId(const char* value) { SetVoiceId(value); return *this;}
126 private:
127
128 Aws::String m_body;
129 bool m_bodyHasBeenSet = false;
130
131 Aws::String m_languageCode;
132 bool m_languageCodeHasBeenSet = false;
133
134 Aws::String m_originationNumber;
135 bool m_originationNumberHasBeenSet = false;
136
138 bool m_substitutionsHasBeenSet = false;
139
140 Aws::String m_voiceId;
141 bool m_voiceIdHasBeenSet = false;
142 };
143
144} // namespace Model
145} // namespace Pinpoint
146} // namespace Aws
const Aws::String & GetVoiceId() const
void SetBody(Aws::String &&value)
void SetOriginationNumber(Aws::String &&value)
VoiceMessage & WithBody(const char *value)
VoiceMessage & AddSubstitutions(const Aws::String &key, Aws::Vector< Aws::String > &&value)
VoiceMessage & WithOriginationNumber(Aws::String &&value)
VoiceMessage & AddSubstitutions(const Aws::String &key, const Aws::Vector< Aws::String > &value)
VoiceMessage & AddSubstitutions(Aws::String &&key, Aws::Vector< Aws::String > &&value)
VoiceMessage & AddSubstitutions(const char *key, const Aws::Vector< Aws::String > &value)
VoiceMessage & WithLanguageCode(const char *value)
void SetOriginationNumber(const char *value)
void SetSubstitutions(const Aws::Map< Aws::String, Aws::Vector< Aws::String > > &value)
VoiceMessage & WithOriginationNumber(const char *value)
void SetVoiceId(const char *value)
void SetLanguageCode(const Aws::String &value)
VoiceMessage & WithVoiceId(const Aws::String &value)
VoiceMessage & WithLanguageCode(const Aws::String &value)
AWS_PINPOINT_API VoiceMessage & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetVoiceId(const Aws::String &value)
void SetBody(const Aws::String &value)
const Aws::String & GetLanguageCode() const
void SetOriginationNumber(const Aws::String &value)
void SetSubstitutions(Aws::Map< Aws::String, Aws::Vector< Aws::String > > &&value)
VoiceMessage & AddSubstitutions(const char *key, Aws::Vector< Aws::String > &&value)
const Aws::String & GetBody() const
AWS_PINPOINT_API VoiceMessage(Aws::Utils::Json::JsonView jsonValue)
void SetVoiceId(Aws::String &&value)
const Aws::String & GetOriginationNumber() const
VoiceMessage & WithVoiceId(const char *value)
void SetLanguageCode(const char *value)
VoiceMessage & WithBody(const Aws::String &value)
VoiceMessage & WithBody(Aws::String &&value)
VoiceMessage & WithSubstitutions(Aws::Map< Aws::String, Aws::Vector< Aws::String > > &&value)
VoiceMessage & WithSubstitutions(const Aws::Map< Aws::String, Aws::Vector< Aws::String > > &value)
void SetBody(const char *value)
VoiceMessage & WithOriginationNumber(const Aws::String &value)
VoiceMessage & AddSubstitutions(Aws::String &&key, const Aws::Vector< Aws::String > &value)
VoiceMessage & WithVoiceId(Aws::String &&value)
void SetLanguageCode(Aws::String &&value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetSubstitutions() const
VoiceMessage & WithLanguageCode(Aws::String &&value)
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
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue