AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
EndpointSendConfiguration.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
35 {
36 public:
37 AWS_PINPOINT_API EndpointSendConfiguration();
40 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const Aws::String& GetBodyOverride() const{ return m_bodyOverride; }
49 inline bool BodyOverrideHasBeenSet() const { return m_bodyOverrideHasBeenSet; }
50 inline void SetBodyOverride(const Aws::String& value) { m_bodyOverrideHasBeenSet = true; m_bodyOverride = value; }
51 inline void SetBodyOverride(Aws::String&& value) { m_bodyOverrideHasBeenSet = true; m_bodyOverride = std::move(value); }
52 inline void SetBodyOverride(const char* value) { m_bodyOverrideHasBeenSet = true; m_bodyOverride.assign(value); }
53 inline EndpointSendConfiguration& WithBodyOverride(const Aws::String& value) { SetBodyOverride(value); return *this;}
54 inline EndpointSendConfiguration& WithBodyOverride(Aws::String&& value) { SetBodyOverride(std::move(value)); return *this;}
55 inline EndpointSendConfiguration& WithBodyOverride(const char* value) { SetBodyOverride(value); return *this;}
57
59
65 inline const Aws::Map<Aws::String, Aws::String>& GetContext() const{ return m_context; }
66 inline bool ContextHasBeenSet() const { return m_contextHasBeenSet; }
67 inline void SetContext(const Aws::Map<Aws::String, Aws::String>& value) { m_contextHasBeenSet = true; m_context = value; }
68 inline void SetContext(Aws::Map<Aws::String, Aws::String>&& value) { m_contextHasBeenSet = true; m_context = std::move(value); }
70 inline EndpointSendConfiguration& WithContext(Aws::Map<Aws::String, Aws::String>&& value) { SetContext(std::move(value)); return *this;}
71 inline EndpointSendConfiguration& AddContext(const Aws::String& key, const Aws::String& value) { m_contextHasBeenSet = true; m_context.emplace(key, value); return *this; }
72 inline EndpointSendConfiguration& AddContext(Aws::String&& key, const Aws::String& value) { m_contextHasBeenSet = true; m_context.emplace(std::move(key), value); return *this; }
73 inline EndpointSendConfiguration& AddContext(const Aws::String& key, Aws::String&& value) { m_contextHasBeenSet = true; m_context.emplace(key, std::move(value)); return *this; }
74 inline EndpointSendConfiguration& AddContext(Aws::String&& key, Aws::String&& value) { m_contextHasBeenSet = true; m_context.emplace(std::move(key), std::move(value)); return *this; }
75 inline EndpointSendConfiguration& AddContext(const char* key, Aws::String&& value) { m_contextHasBeenSet = true; m_context.emplace(key, std::move(value)); return *this; }
76 inline EndpointSendConfiguration& AddContext(Aws::String&& key, const char* value) { m_contextHasBeenSet = true; m_context.emplace(std::move(key), value); return *this; }
77 inline EndpointSendConfiguration& AddContext(const char* key, const char* value) { m_contextHasBeenSet = true; m_context.emplace(key, value); return *this; }
79
81
85 inline const Aws::String& GetRawContent() const{ return m_rawContent; }
86 inline bool RawContentHasBeenSet() const { return m_rawContentHasBeenSet; }
87 inline void SetRawContent(const Aws::String& value) { m_rawContentHasBeenSet = true; m_rawContent = value; }
88 inline void SetRawContent(Aws::String&& value) { m_rawContentHasBeenSet = true; m_rawContent = std::move(value); }
89 inline void SetRawContent(const char* value) { m_rawContentHasBeenSet = true; m_rawContent.assign(value); }
90 inline EndpointSendConfiguration& WithRawContent(const Aws::String& value) { SetRawContent(value); return *this;}
91 inline EndpointSendConfiguration& WithRawContent(Aws::String&& value) { SetRawContent(std::move(value)); return *this;}
92 inline EndpointSendConfiguration& WithRawContent(const char* value) { SetRawContent(value); return *this;}
94
96
101 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetSubstitutions() const{ return m_substitutions; }
102 inline bool SubstitutionsHasBeenSet() const { return m_substitutionsHasBeenSet; }
103 inline void SetSubstitutions(const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& value) { m_substitutionsHasBeenSet = true; m_substitutions = value; }
104 inline void SetSubstitutions(Aws::Map<Aws::String, Aws::Vector<Aws::String>>&& value) { m_substitutionsHasBeenSet = true; m_substitutions = std::move(value); }
107 inline EndpointSendConfiguration& AddSubstitutions(const Aws::String& key, const Aws::Vector<Aws::String>& value) { m_substitutionsHasBeenSet = true; m_substitutions.emplace(key, value); return *this; }
108 inline EndpointSendConfiguration& AddSubstitutions(Aws::String&& key, const Aws::Vector<Aws::String>& value) { m_substitutionsHasBeenSet = true; m_substitutions.emplace(std::move(key), value); return *this; }
109 inline EndpointSendConfiguration& AddSubstitutions(const Aws::String& key, Aws::Vector<Aws::String>&& value) { m_substitutionsHasBeenSet = true; m_substitutions.emplace(key, std::move(value)); return *this; }
110 inline EndpointSendConfiguration& AddSubstitutions(Aws::String&& key, Aws::Vector<Aws::String>&& value) { m_substitutionsHasBeenSet = true; m_substitutions.emplace(std::move(key), std::move(value)); return *this; }
111 inline EndpointSendConfiguration& AddSubstitutions(const char* key, Aws::Vector<Aws::String>&& value) { m_substitutionsHasBeenSet = true; m_substitutions.emplace(key, std::move(value)); return *this; }
112 inline EndpointSendConfiguration& AddSubstitutions(const char* key, const Aws::Vector<Aws::String>& value) { m_substitutionsHasBeenSet = true; m_substitutions.emplace(key, value); return *this; }
114
116
120 inline const Aws::String& GetTitleOverride() const{ return m_titleOverride; }
121 inline bool TitleOverrideHasBeenSet() const { return m_titleOverrideHasBeenSet; }
122 inline void SetTitleOverride(const Aws::String& value) { m_titleOverrideHasBeenSet = true; m_titleOverride = value; }
123 inline void SetTitleOverride(Aws::String&& value) { m_titleOverrideHasBeenSet = true; m_titleOverride = std::move(value); }
124 inline void SetTitleOverride(const char* value) { m_titleOverrideHasBeenSet = true; m_titleOverride.assign(value); }
125 inline EndpointSendConfiguration& WithTitleOverride(const Aws::String& value) { SetTitleOverride(value); return *this;}
126 inline EndpointSendConfiguration& WithTitleOverride(Aws::String&& value) { SetTitleOverride(std::move(value)); return *this;}
127 inline EndpointSendConfiguration& WithTitleOverride(const char* value) { SetTitleOverride(value); return *this;}
129 private:
130
131 Aws::String m_bodyOverride;
132 bool m_bodyOverrideHasBeenSet = false;
133
135 bool m_contextHasBeenSet = false;
136
137 Aws::String m_rawContent;
138 bool m_rawContentHasBeenSet = false;
139
141 bool m_substitutionsHasBeenSet = false;
142
143 Aws::String m_titleOverride;
144 bool m_titleOverrideHasBeenSet = false;
145 };
146
147} // namespace Model
148} // namespace Pinpoint
149} // namespace Aws
AWS_PINPOINT_API EndpointSendConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
EndpointSendConfiguration & AddContext(const Aws::String &key, const Aws::String &value)
EndpointSendConfiguration & AddContext(Aws::String &&key, const char *value)
void SetContext(const Aws::Map< Aws::String, Aws::String > &value)
EndpointSendConfiguration & WithRawContent(const Aws::String &value)
EndpointSendConfiguration & WithSubstitutions(const Aws::Map< Aws::String, Aws::Vector< Aws::String > > &value)
const Aws::Map< Aws::String, Aws::String > & GetContext() const
EndpointSendConfiguration & AddContext(const Aws::String &key, Aws::String &&value)
EndpointSendConfiguration & AddSubstitutions(Aws::String &&key, Aws::Vector< Aws::String > &&value)
EndpointSendConfiguration & AddContext(Aws::String &&key, Aws::String &&value)
EndpointSendConfiguration & AddSubstitutions(const Aws::String &key, const Aws::Vector< Aws::String > &value)
EndpointSendConfiguration & AddSubstitutions(const Aws::String &key, Aws::Vector< Aws::String > &&value)
EndpointSendConfiguration & AddSubstitutions(const char *key, const Aws::Vector< Aws::String > &value)
void SetSubstitutions(const Aws::Map< Aws::String, Aws::Vector< Aws::String > > &value)
void SetSubstitutions(Aws::Map< Aws::String, Aws::Vector< Aws::String > > &&value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
EndpointSendConfiguration & WithSubstitutions(Aws::Map< Aws::String, Aws::Vector< Aws::String > > &&value)
EndpointSendConfiguration & AddContext(Aws::String &&key, const Aws::String &value)
EndpointSendConfiguration & WithRawContent(const char *value)
EndpointSendConfiguration & AddContext(const char *key, const char *value)
AWS_PINPOINT_API EndpointSendConfiguration(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetSubstitutions() const
EndpointSendConfiguration & WithContext(Aws::Map< Aws::String, Aws::String > &&value)
EndpointSendConfiguration & WithRawContent(Aws::String &&value)
EndpointSendConfiguration & WithTitleOverride(Aws::String &&value)
EndpointSendConfiguration & WithBodyOverride(const char *value)
EndpointSendConfiguration & AddSubstitutions(Aws::String &&key, const Aws::Vector< Aws::String > &value)
EndpointSendConfiguration & AddSubstitutions(const char *key, Aws::Vector< Aws::String > &&value)
void SetContext(Aws::Map< Aws::String, Aws::String > &&value)
EndpointSendConfiguration & WithBodyOverride(Aws::String &&value)
EndpointSendConfiguration & WithBodyOverride(const Aws::String &value)
EndpointSendConfiguration & WithTitleOverride(const char *value)
EndpointSendConfiguration & AddContext(const char *key, Aws::String &&value)
EndpointSendConfiguration & WithContext(const Aws::Map< Aws::String, Aws::String > &value)
EndpointSendConfiguration & WithTitleOverride(const 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