AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
DefaultMessage.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
34 {
35 public:
36 AWS_PINPOINT_API DefaultMessage() = default;
37 AWS_PINPOINT_API DefaultMessage(Aws::Utils::Json::JsonView jsonValue);
39 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetBody() const { return m_body; }
47 inline bool BodyHasBeenSet() const { return m_bodyHasBeenSet; }
48 template<typename BodyT = Aws::String>
49 void SetBody(BodyT&& value) { m_bodyHasBeenSet = true; m_body = std::forward<BodyT>(value); }
50 template<typename BodyT = Aws::String>
51 DefaultMessage& WithBody(BodyT&& value) { SetBody(std::forward<BodyT>(value)); return *this;}
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) { m_substitutionsHasBeenSet = true; m_substitutions = std::forward<SubstitutionsT>(value); }
63 template<typename SubstitutionsT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
64 DefaultMessage& WithSubstitutions(SubstitutionsT&& value) { SetSubstitutions(std::forward<SubstitutionsT>(value)); return *this;}
65 template<typename SubstitutionsKeyT = Aws::String, typename SubstitutionsValueT = Aws::Vector<Aws::String>>
66 DefaultMessage& AddSubstitutions(SubstitutionsKeyT&& key, SubstitutionsValueT&& value) {
67 m_substitutionsHasBeenSet = true; m_substitutions.emplace(std::forward<SubstitutionsKeyT>(key), std::forward<SubstitutionsValueT>(value)); return *this;
68 }
70 private:
71
72 Aws::String m_body;
73 bool m_bodyHasBeenSet = false;
74
76 bool m_substitutionsHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace Pinpoint
81} // 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