AWS SDK for C++

AWS SDK for C++ Version 1.11.906

Loading...
Searching...
No Matches
TextParameters.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/endusermessaging/EndUserMessaging_EXPORTS.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
30 public:
31 AWS_ENDUSERMESSAGING_API TextParameters() = default;
32 AWS_ENDUSERMESSAGING_API TextParameters(Aws::Utils::Json::JsonView jsonValue);
33 AWS_ENDUSERMESSAGING_API TextParameters& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_ENDUSERMESSAGING_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::String& GetInlineTemplateBody() const { return m_inlineTemplateBody; }
42 inline bool InlineTemplateBodyHasBeenSet() const { return m_inlineTemplateBodyHasBeenSet; }
43 template <typename InlineTemplateBodyT = Aws::String>
44 void SetInlineTemplateBody(InlineTemplateBodyT&& value) {
45 m_inlineTemplateBodyHasBeenSet = true;
46 m_inlineTemplateBody = std::forward<InlineTemplateBodyT>(value);
47 }
48 template <typename InlineTemplateBodyT = Aws::String>
49 TextParameters& WithInlineTemplateBody(InlineTemplateBodyT&& value) {
50 SetInlineTemplateBody(std::forward<InlineTemplateBodyT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::Map<Aws::String, Aws::String>& GetDestinationCountryParameters() const { return m_destinationCountryParameters; }
61 inline bool DestinationCountryParametersHasBeenSet() const { return m_destinationCountryParametersHasBeenSet; }
62 template <typename DestinationCountryParametersT = Aws::Map<Aws::String, Aws::String>>
63 void SetDestinationCountryParameters(DestinationCountryParametersT&& value) {
64 m_destinationCountryParametersHasBeenSet = true;
65 m_destinationCountryParameters = std::forward<DestinationCountryParametersT>(value);
66 }
67 template <typename DestinationCountryParametersT = Aws::Map<Aws::String, Aws::String>>
68 TextParameters& WithDestinationCountryParameters(DestinationCountryParametersT&& value) {
69 SetDestinationCountryParameters(std::forward<DestinationCountryParametersT>(value));
70 return *this;
71 }
72 template <typename DestinationCountryParametersKeyT = Aws::String, typename DestinationCountryParametersValueT = Aws::String>
73 TextParameters& AddDestinationCountryParameters(DestinationCountryParametersKeyT&& key, DestinationCountryParametersValueT&& value) {
74 m_destinationCountryParametersHasBeenSet = true;
75 m_destinationCountryParameters.emplace(std::forward<DestinationCountryParametersKeyT>(key),
76 std::forward<DestinationCountryParametersValueT>(value));
77 return *this;
78 }
80 private:
81 Aws::String m_inlineTemplateBody;
82
83 Aws::Map<Aws::String, Aws::String> m_destinationCountryParameters;
84 bool m_inlineTemplateBodyHasBeenSet = false;
85 bool m_destinationCountryParametersHasBeenSet = false;
86};
87
88} // namespace Model
89} // namespace EndUserMessaging
90} // namespace Aws
void SetDestinationCountryParameters(DestinationCountryParametersT &&value)
TextParameters & WithDestinationCountryParameters(DestinationCountryParametersT &&value)
TextParameters & WithInlineTemplateBody(InlineTemplateBodyT &&value)
const Aws::String & GetInlineTemplateBody() const
const Aws::Map< Aws::String, Aws::String > & GetDestinationCountryParameters() const
AWS_ENDUSERMESSAGING_API TextParameters(Aws::Utils::Json::JsonView jsonValue)
void SetInlineTemplateBody(InlineTemplateBodyT &&value)
AWS_ENDUSERMESSAGING_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ENDUSERMESSAGING_API TextParameters()=default
TextParameters & AddDestinationCountryParameters(DestinationCountryParametersKeyT &&key, DestinationCountryParametersValueT &&value)
AWS_ENDUSERMESSAGING_API TextParameters & operator=(Aws::Utils::Json::JsonView jsonValue)
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