AWS SDK for C++

AWS SDK for C++ Version 1.11.906

Loading...
Searching...
No Matches
VoiceParameters.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/endusermessaging/EndUserMessaging_EXPORTS.h>
9#include <aws/endusermessaging/model/VoiceMessageBodyTextType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace EndUserMessaging {
21namespace Model {
22
29 public:
30 AWS_ENDUSERMESSAGING_API VoiceParameters() = default;
31 AWS_ENDUSERMESSAGING_API VoiceParameters(Aws::Utils::Json::JsonView jsonValue);
32 AWS_ENDUSERMESSAGING_API VoiceParameters& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_ENDUSERMESSAGING_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
40 inline const Aws::String& GetInlineTemplateBody() const { return m_inlineTemplateBody; }
41 inline bool InlineTemplateBodyHasBeenSet() const { return m_inlineTemplateBodyHasBeenSet; }
42 template <typename InlineTemplateBodyT = Aws::String>
43 void SetInlineTemplateBody(InlineTemplateBodyT&& value) {
44 m_inlineTemplateBodyHasBeenSet = true;
45 m_inlineTemplateBody = std::forward<InlineTemplateBodyT>(value);
46 }
47 template <typename InlineTemplateBodyT = Aws::String>
48 VoiceParameters& WithInlineTemplateBody(InlineTemplateBodyT&& value) {
49 SetInlineTemplateBody(std::forward<InlineTemplateBodyT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetLanguageCode() const { return m_languageCode; }
59 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
60 template <typename LanguageCodeT = Aws::String>
61 void SetLanguageCode(LanguageCodeT&& value) {
62 m_languageCodeHasBeenSet = true;
63 m_languageCode = std::forward<LanguageCodeT>(value);
64 }
65 template <typename LanguageCodeT = Aws::String>
66 VoiceParameters& WithLanguageCode(LanguageCodeT&& value) {
67 SetLanguageCode(std::forward<LanguageCodeT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetVoiceId() const { return m_voiceId; }
77 inline bool VoiceIdHasBeenSet() const { return m_voiceIdHasBeenSet; }
78 template <typename VoiceIdT = Aws::String>
79 void SetVoiceId(VoiceIdT&& value) {
80 m_voiceIdHasBeenSet = true;
81 m_voiceId = std::forward<VoiceIdT>(value);
82 }
83 template <typename VoiceIdT = Aws::String>
84 VoiceParameters& WithVoiceId(VoiceIdT&& value) {
85 SetVoiceId(std::forward<VoiceIdT>(value));
86 return *this;
87 }
89
91
94 inline VoiceMessageBodyTextType GetVoiceMessageBodyTextType() const { return m_voiceMessageBodyTextType; }
95 inline bool VoiceMessageBodyTextTypeHasBeenSet() const { return m_voiceMessageBodyTextTypeHasBeenSet; }
97 m_voiceMessageBodyTextTypeHasBeenSet = true;
98 m_voiceMessageBodyTextType = value;
99 }
102 return *this;
103 }
105 private:
106 Aws::String m_inlineTemplateBody;
107
108 Aws::String m_languageCode;
109
110 Aws::String m_voiceId;
111
113 bool m_inlineTemplateBodyHasBeenSet = false;
114 bool m_languageCodeHasBeenSet = false;
115 bool m_voiceIdHasBeenSet = false;
116 bool m_voiceMessageBodyTextTypeHasBeenSet = false;
117};
118
119} // namespace Model
120} // namespace EndUserMessaging
121} // namespace Aws
const Aws::String & GetInlineTemplateBody() const
AWS_ENDUSERMESSAGING_API Aws::Utils::Json::JsonValue Jsonize() const
void SetVoiceMessageBodyTextType(VoiceMessageBodyTextType value)
AWS_ENDUSERMESSAGING_API VoiceParameters & operator=(Aws::Utils::Json::JsonView jsonValue)
VoiceParameters & WithLanguageCode(LanguageCodeT &&value)
AWS_ENDUSERMESSAGING_API VoiceParameters(Aws::Utils::Json::JsonView jsonValue)
VoiceParameters & WithInlineTemplateBody(InlineTemplateBodyT &&value)
AWS_ENDUSERMESSAGING_API VoiceParameters()=default
void SetInlineTemplateBody(InlineTemplateBodyT &&value)
VoiceParameters & WithVoiceId(VoiceIdT &&value)
VoiceParameters & WithVoiceMessageBodyTextType(VoiceMessageBodyTextType value)
VoiceMessageBodyTextType GetVoiceMessageBodyTextType() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue