AWS SDK for C++

AWS SDK for C++ Version 1.11.608

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() = default;
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 template<typename BodyOverrideT = Aws::String>
51 void SetBodyOverride(BodyOverrideT&& value) { m_bodyOverrideHasBeenSet = true; m_bodyOverride = std::forward<BodyOverrideT>(value); }
52 template<typename BodyOverrideT = Aws::String>
53 EndpointSendConfiguration& WithBodyOverride(BodyOverrideT&& value) { SetBodyOverride(std::forward<BodyOverrideT>(value)); return *this;}
55
57
63 inline const Aws::Map<Aws::String, Aws::String>& GetContext() const { return m_context; }
64 inline bool ContextHasBeenSet() const { return m_contextHasBeenSet; }
65 template<typename ContextT = Aws::Map<Aws::String, Aws::String>>
66 void SetContext(ContextT&& value) { m_contextHasBeenSet = true; m_context = std::forward<ContextT>(value); }
67 template<typename ContextT = Aws::Map<Aws::String, Aws::String>>
68 EndpointSendConfiguration& WithContext(ContextT&& value) { SetContext(std::forward<ContextT>(value)); return *this;}
69 template<typename ContextKeyT = Aws::String, typename ContextValueT = Aws::String>
70 EndpointSendConfiguration& AddContext(ContextKeyT&& key, ContextValueT&& value) {
71 m_contextHasBeenSet = true; m_context.emplace(std::forward<ContextKeyT>(key), std::forward<ContextValueT>(value)); return *this;
72 }
74
76
80 inline const Aws::String& GetRawContent() const { return m_rawContent; }
81 inline bool RawContentHasBeenSet() const { return m_rawContentHasBeenSet; }
82 template<typename RawContentT = Aws::String>
83 void SetRawContent(RawContentT&& value) { m_rawContentHasBeenSet = true; m_rawContent = std::forward<RawContentT>(value); }
84 template<typename RawContentT = Aws::String>
85 EndpointSendConfiguration& WithRawContent(RawContentT&& value) { SetRawContent(std::forward<RawContentT>(value)); return *this;}
87
89
94 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetSubstitutions() const { return m_substitutions; }
95 inline bool SubstitutionsHasBeenSet() const { return m_substitutionsHasBeenSet; }
96 template<typename SubstitutionsT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
97 void SetSubstitutions(SubstitutionsT&& value) { m_substitutionsHasBeenSet = true; m_substitutions = std::forward<SubstitutionsT>(value); }
98 template<typename SubstitutionsT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
99 EndpointSendConfiguration& WithSubstitutions(SubstitutionsT&& value) { SetSubstitutions(std::forward<SubstitutionsT>(value)); return *this;}
100 template<typename SubstitutionsKeyT = Aws::String, typename SubstitutionsValueT = Aws::Vector<Aws::String>>
101 EndpointSendConfiguration& AddSubstitutions(SubstitutionsKeyT&& key, SubstitutionsValueT&& value) {
102 m_substitutionsHasBeenSet = true; m_substitutions.emplace(std::forward<SubstitutionsKeyT>(key), std::forward<SubstitutionsValueT>(value)); return *this;
103 }
105
107
111 inline const Aws::String& GetTitleOverride() const { return m_titleOverride; }
112 inline bool TitleOverrideHasBeenSet() const { return m_titleOverrideHasBeenSet; }
113 template<typename TitleOverrideT = Aws::String>
114 void SetTitleOverride(TitleOverrideT&& value) { m_titleOverrideHasBeenSet = true; m_titleOverride = std::forward<TitleOverrideT>(value); }
115 template<typename TitleOverrideT = Aws::String>
116 EndpointSendConfiguration& WithTitleOverride(TitleOverrideT&& value) { SetTitleOverride(std::forward<TitleOverrideT>(value)); return *this;}
118 private:
119
120 Aws::String m_bodyOverride;
121 bool m_bodyOverrideHasBeenSet = false;
122
124 bool m_contextHasBeenSet = false;
125
126 Aws::String m_rawContent;
127 bool m_rawContentHasBeenSet = false;
128
130 bool m_substitutionsHasBeenSet = false;
131
132 Aws::String m_titleOverride;
133 bool m_titleOverrideHasBeenSet = false;
134 };
135
136} // namespace Model
137} // namespace Pinpoint
138} // namespace Aws
EndpointSendConfiguration & WithBodyOverride(BodyOverrideT &&value)
AWS_PINPOINT_API EndpointSendConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, Aws::String > & GetContext() const
EndpointSendConfiguration & AddSubstitutions(SubstitutionsKeyT &&key, SubstitutionsValueT &&value)
EndpointSendConfiguration & WithSubstitutions(SubstitutionsT &&value)
EndpointSendConfiguration & WithRawContent(RawContentT &&value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_PINPOINT_API EndpointSendConfiguration(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetSubstitutions() const
EndpointSendConfiguration & AddContext(ContextKeyT &&key, ContextValueT &&value)
EndpointSendConfiguration & WithTitleOverride(TitleOverrideT &&value)
AWS_PINPOINT_API EndpointSendConfiguration()=default
EndpointSendConfiguration & WithContext(ContextT &&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