AWS SDK for C++

AWS SDK for C++ Version 1.11.684

Loading...
Searching...
No Matches
DefaultMessage.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
30 public:
31 AWS_PINPOINT_API DefaultMessage() = default;
32 AWS_PINPOINT_API DefaultMessage(Aws::Utils::Json::JsonView jsonValue);
34 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetBody() const { return m_body; }
41 inline bool BodyHasBeenSet() const { return m_bodyHasBeenSet; }
42 template <typename BodyT = Aws::String>
43 void SetBody(BodyT&& value) {
44 m_bodyHasBeenSet = true;
45 m_body = std::forward<BodyT>(value);
46 }
47 template <typename BodyT = Aws::String>
48 DefaultMessage& WithBody(BodyT&& value) {
49 SetBody(std::forward<BodyT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetSubstitutions() const { return m_substitutions; }
60 inline bool SubstitutionsHasBeenSet() const { return m_substitutionsHasBeenSet; }
61 template <typename SubstitutionsT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
62 void SetSubstitutions(SubstitutionsT&& value) {
63 m_substitutionsHasBeenSet = true;
64 m_substitutions = std::forward<SubstitutionsT>(value);
65 }
66 template <typename SubstitutionsT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
67 DefaultMessage& WithSubstitutions(SubstitutionsT&& value) {
68 SetSubstitutions(std::forward<SubstitutionsT>(value));
69 return *this;
70 }
71 template <typename SubstitutionsKeyT = Aws::String, typename SubstitutionsValueT = Aws::Vector<Aws::String>>
72 DefaultMessage& AddSubstitutions(SubstitutionsKeyT&& key, SubstitutionsValueT&& value) {
73 m_substitutionsHasBeenSet = true;
74 m_substitutions.emplace(std::forward<SubstitutionsKeyT>(key), std::forward<SubstitutionsValueT>(value));
75 return *this;
76 }
78 private:
79 Aws::String m_body;
80 bool m_bodyHasBeenSet = false;
81
83 bool m_substitutionsHasBeenSet = false;
84};
85
86} // namespace Model
87} // namespace Pinpoint
88} // namespace Aws
AWS_PINPOINT_API DefaultMessage & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
DefaultMessage & AddSubstitutions(SubstitutionsKeyT &&key, SubstitutionsValueT &&value)
const Aws::String & GetBody() const
void SetSubstitutions(SubstitutionsT &&value)
DefaultMessage & WithSubstitutions(SubstitutionsT &&value)
AWS_PINPOINT_API DefaultMessage()=default
AWS_PINPOINT_API DefaultMessage(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetSubstitutions() const
DefaultMessage & WithBody(BodyT &&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
Aws::Utils::Json::JsonValue JsonValue