AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetBody(const Aws::String& value) { m_bodyHasBeenSet = true; m_body = value; }
49 inline void SetBody(Aws::String&& value) { m_bodyHasBeenSet = true; m_body = std::move(value); }
50 inline void SetBody(const char* value) { m_bodyHasBeenSet = true; m_body.assign(value); }
51 inline DefaultMessage& WithBody(const Aws::String& value) { SetBody(value); return *this;}
52 inline DefaultMessage& WithBody(Aws::String&& value) { SetBody(std::move(value)); return *this;}
53 inline DefaultMessage& WithBody(const char* value) { SetBody(value); return *this;}
55
57
61 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetSubstitutions() const{ return m_substitutions; }
62 inline bool SubstitutionsHasBeenSet() const { return m_substitutionsHasBeenSet; }
63 inline void SetSubstitutions(const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& value) { m_substitutionsHasBeenSet = true; m_substitutions = value; }
64 inline void SetSubstitutions(Aws::Map<Aws::String, Aws::Vector<Aws::String>>&& value) { m_substitutionsHasBeenSet = true; m_substitutions = std::move(value); }
67 inline DefaultMessage& AddSubstitutions(const Aws::String& key, const Aws::Vector<Aws::String>& value) { m_substitutionsHasBeenSet = true; m_substitutions.emplace(key, value); return *this; }
68 inline DefaultMessage& AddSubstitutions(Aws::String&& key, const Aws::Vector<Aws::String>& value) { m_substitutionsHasBeenSet = true; m_substitutions.emplace(std::move(key), value); return *this; }
69 inline DefaultMessage& AddSubstitutions(const Aws::String& key, Aws::Vector<Aws::String>&& value) { m_substitutionsHasBeenSet = true; m_substitutions.emplace(key, std::move(value)); return *this; }
70 inline DefaultMessage& AddSubstitutions(Aws::String&& key, Aws::Vector<Aws::String>&& value) { m_substitutionsHasBeenSet = true; m_substitutions.emplace(std::move(key), std::move(value)); return *this; }
71 inline DefaultMessage& AddSubstitutions(const char* key, Aws::Vector<Aws::String>&& value) { m_substitutionsHasBeenSet = true; m_substitutions.emplace(key, std::move(value)); return *this; }
72 inline DefaultMessage& AddSubstitutions(const char* key, const Aws::Vector<Aws::String>& value) { m_substitutionsHasBeenSet = true; m_substitutions.emplace(key, value); return *this; }
74 private:
75
76 Aws::String m_body;
77 bool m_bodyHasBeenSet = false;
78
80 bool m_substitutionsHasBeenSet = false;
81 };
82
83} // namespace Model
84} // namespace Pinpoint
85} // namespace Aws
void SetBody(const Aws::String &value)
AWS_PINPOINT_API DefaultMessage & operator=(Aws::Utils::Json::JsonView jsonValue)
DefaultMessage & WithBody(Aws::String &&value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetSubstitutions(const Aws::Map< Aws::String, Aws::Vector< Aws::String > > &value)
void SetSubstitutions(Aws::Map< Aws::String, Aws::Vector< Aws::String > > &&value)
DefaultMessage & WithBody(const Aws::String &value)
const Aws::String & GetBody() const
DefaultMessage & WithBody(const char *value)
DefaultMessage & AddSubstitutions(const char *key, const Aws::Vector< Aws::String > &value)
DefaultMessage & AddSubstitutions(const Aws::String &key, Aws::Vector< Aws::String > &&value)
AWS_PINPOINT_API DefaultMessage(Aws::Utils::Json::JsonView jsonValue)
void SetBody(Aws::String &&value)
DefaultMessage & AddSubstitutions(const char *key, Aws::Vector< Aws::String > &&value)
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetSubstitutions() const
DefaultMessage & WithSubstitutions(Aws::Map< Aws::String, Aws::Vector< Aws::String > > &&value)
DefaultMessage & WithSubstitutions(const Aws::Map< Aws::String, Aws::Vector< Aws::String > > &value)
DefaultMessage & AddSubstitutions(Aws::String &&key, Aws::Vector< Aws::String > &&value)
DefaultMessage & AddSubstitutions(Aws::String &&key, const Aws::Vector< Aws::String > &value)
DefaultMessage & AddSubstitutions(const Aws::String &key, const Aws::Vector< 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