AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AddressConfiguration.h
1
6#pragma once
7#include <aws/pinpoint/Pinpoint_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/pinpoint/model/ChannelType.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Pinpoint
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_PINPOINT_API AddressConfiguration();
41 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline const Aws::String& GetBodyOverride() const{ return m_bodyOverride; }
50 inline bool BodyOverrideHasBeenSet() const { return m_bodyOverrideHasBeenSet; }
51 inline void SetBodyOverride(const Aws::String& value) { m_bodyOverrideHasBeenSet = true; m_bodyOverride = value; }
52 inline void SetBodyOverride(Aws::String&& value) { m_bodyOverrideHasBeenSet = true; m_bodyOverride = std::move(value); }
53 inline void SetBodyOverride(const char* value) { m_bodyOverrideHasBeenSet = true; m_bodyOverride.assign(value); }
54 inline AddressConfiguration& WithBodyOverride(const Aws::String& value) { SetBodyOverride(value); return *this;}
55 inline AddressConfiguration& WithBodyOverride(Aws::String&& value) { SetBodyOverride(std::move(value)); return *this;}
56 inline AddressConfiguration& WithBodyOverride(const char* value) { SetBodyOverride(value); return *this;}
58
60
63 inline const ChannelType& GetChannelType() const{ return m_channelType; }
64 inline bool ChannelTypeHasBeenSet() const { return m_channelTypeHasBeenSet; }
65 inline void SetChannelType(const ChannelType& value) { m_channelTypeHasBeenSet = true; m_channelType = value; }
66 inline void SetChannelType(ChannelType&& value) { m_channelTypeHasBeenSet = true; m_channelType = std::move(value); }
67 inline AddressConfiguration& WithChannelType(const ChannelType& value) { SetChannelType(value); return *this;}
68 inline AddressConfiguration& WithChannelType(ChannelType&& value) { SetChannelType(std::move(value)); return *this;}
70
72
79 inline const Aws::Map<Aws::String, Aws::String>& GetContext() const{ return m_context; }
80 inline bool ContextHasBeenSet() const { return m_contextHasBeenSet; }
81 inline void SetContext(const Aws::Map<Aws::String, Aws::String>& value) { m_contextHasBeenSet = true; m_context = value; }
82 inline void SetContext(Aws::Map<Aws::String, Aws::String>&& value) { m_contextHasBeenSet = true; m_context = std::move(value); }
84 inline AddressConfiguration& WithContext(Aws::Map<Aws::String, Aws::String>&& value) { SetContext(std::move(value)); return *this;}
85 inline AddressConfiguration& AddContext(const Aws::String& key, const Aws::String& value) { m_contextHasBeenSet = true; m_context.emplace(key, value); return *this; }
86 inline AddressConfiguration& AddContext(Aws::String&& key, const Aws::String& value) { m_contextHasBeenSet = true; m_context.emplace(std::move(key), value); return *this; }
87 inline AddressConfiguration& AddContext(const Aws::String& key, Aws::String&& value) { m_contextHasBeenSet = true; m_context.emplace(key, std::move(value)); return *this; }
88 inline AddressConfiguration& AddContext(Aws::String&& key, Aws::String&& value) { m_contextHasBeenSet = true; m_context.emplace(std::move(key), std::move(value)); return *this; }
89 inline AddressConfiguration& AddContext(const char* key, Aws::String&& value) { m_contextHasBeenSet = true; m_context.emplace(key, std::move(value)); return *this; }
90 inline AddressConfiguration& AddContext(Aws::String&& key, const char* value) { m_contextHasBeenSet = true; m_context.emplace(std::move(key), value); return *this; }
91 inline AddressConfiguration& AddContext(const char* key, const char* value) { m_contextHasBeenSet = true; m_context.emplace(key, value); return *this; }
93
95
99 inline const Aws::String& GetRawContent() const{ return m_rawContent; }
100 inline bool RawContentHasBeenSet() const { return m_rawContentHasBeenSet; }
101 inline void SetRawContent(const Aws::String& value) { m_rawContentHasBeenSet = true; m_rawContent = value; }
102 inline void SetRawContent(Aws::String&& value) { m_rawContentHasBeenSet = true; m_rawContent = std::move(value); }
103 inline void SetRawContent(const char* value) { m_rawContentHasBeenSet = true; m_rawContent.assign(value); }
104 inline AddressConfiguration& WithRawContent(const Aws::String& value) { SetRawContent(value); return *this;}
105 inline AddressConfiguration& WithRawContent(Aws::String&& value) { SetRawContent(std::move(value)); return *this;}
106 inline AddressConfiguration& WithRawContent(const char* value) { SetRawContent(value); return *this;}
108
110
115 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetSubstitutions() const{ return m_substitutions; }
116 inline bool SubstitutionsHasBeenSet() const { return m_substitutionsHasBeenSet; }
117 inline void SetSubstitutions(const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& value) { m_substitutionsHasBeenSet = true; m_substitutions = value; }
118 inline void SetSubstitutions(Aws::Map<Aws::String, Aws::Vector<Aws::String>>&& value) { m_substitutionsHasBeenSet = true; m_substitutions = std::move(value); }
121 inline AddressConfiguration& AddSubstitutions(const Aws::String& key, const Aws::Vector<Aws::String>& value) { m_substitutionsHasBeenSet = true; m_substitutions.emplace(key, value); return *this; }
122 inline AddressConfiguration& AddSubstitutions(Aws::String&& key, const Aws::Vector<Aws::String>& value) { m_substitutionsHasBeenSet = true; m_substitutions.emplace(std::move(key), value); return *this; }
123 inline AddressConfiguration& AddSubstitutions(const Aws::String& key, Aws::Vector<Aws::String>&& value) { m_substitutionsHasBeenSet = true; m_substitutions.emplace(key, std::move(value)); return *this; }
124 inline AddressConfiguration& AddSubstitutions(Aws::String&& key, Aws::Vector<Aws::String>&& value) { m_substitutionsHasBeenSet = true; m_substitutions.emplace(std::move(key), std::move(value)); return *this; }
125 inline AddressConfiguration& AddSubstitutions(const char* key, Aws::Vector<Aws::String>&& value) { m_substitutionsHasBeenSet = true; m_substitutions.emplace(key, std::move(value)); return *this; }
126 inline AddressConfiguration& AddSubstitutions(const char* key, const Aws::Vector<Aws::String>& value) { m_substitutionsHasBeenSet = true; m_substitutions.emplace(key, value); return *this; }
128
130
134 inline const Aws::String& GetTitleOverride() const{ return m_titleOverride; }
135 inline bool TitleOverrideHasBeenSet() const { return m_titleOverrideHasBeenSet; }
136 inline void SetTitleOverride(const Aws::String& value) { m_titleOverrideHasBeenSet = true; m_titleOverride = value; }
137 inline void SetTitleOverride(Aws::String&& value) { m_titleOverrideHasBeenSet = true; m_titleOverride = std::move(value); }
138 inline void SetTitleOverride(const char* value) { m_titleOverrideHasBeenSet = true; m_titleOverride.assign(value); }
139 inline AddressConfiguration& WithTitleOverride(const Aws::String& value) { SetTitleOverride(value); return *this;}
140 inline AddressConfiguration& WithTitleOverride(Aws::String&& value) { SetTitleOverride(std::move(value)); return *this;}
141 inline AddressConfiguration& WithTitleOverride(const char* value) { SetTitleOverride(value); return *this;}
143 private:
144
145 Aws::String m_bodyOverride;
146 bool m_bodyOverrideHasBeenSet = false;
147
148 ChannelType m_channelType;
149 bool m_channelTypeHasBeenSet = false;
150
152 bool m_contextHasBeenSet = false;
153
154 Aws::String m_rawContent;
155 bool m_rawContentHasBeenSet = false;
156
158 bool m_substitutionsHasBeenSet = false;
159
160 Aws::String m_titleOverride;
161 bool m_titleOverrideHasBeenSet = false;
162 };
163
164} // namespace Model
165} // namespace Pinpoint
166} // namespace Aws
void SetContext(const Aws::Map< Aws::String, Aws::String > &value)
void SetContext(Aws::Map< Aws::String, Aws::String > &&value)
void SetChannelType(const ChannelType &value)
AddressConfiguration & AddSubstitutions(const Aws::String &key, Aws::Vector< Aws::String > &&value)
AddressConfiguration & WithTitleOverride(const char *value)
AddressConfiguration & WithTitleOverride(Aws::String &&value)
AddressConfiguration & AddContext(Aws::String &&key, Aws::String &&value)
AddressConfiguration & WithBodyOverride(const Aws::String &value)
AddressConfiguration & WithSubstitutions(Aws::Map< Aws::String, Aws::Vector< Aws::String > > &&value)
void SetSubstitutions(const Aws::Map< Aws::String, Aws::Vector< Aws::String > > &value)
AddressConfiguration & WithSubstitutions(const Aws::Map< Aws::String, Aws::Vector< Aws::String > > &value)
AddressConfiguration & WithRawContent(Aws::String &&value)
AddressConfiguration & AddContext(Aws::String &&key, const char *value)
AddressConfiguration & WithRawContent(const char *value)
const Aws::Map< Aws::String, Aws::String > & GetContext() const
AddressConfiguration & WithContext(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetSubstitutions() const
AddressConfiguration & AddSubstitutions(const char *key, Aws::Vector< Aws::String > &&value)
AddressConfiguration & WithChannelType(const ChannelType &value)
AddressConfiguration & AddSubstitutions(const Aws::String &key, const Aws::Vector< Aws::String > &value)
AddressConfiguration & AddContext(const Aws::String &key, Aws::String &&value)
AWS_PINPOINT_API AddressConfiguration(Aws::Utils::Json::JsonView jsonValue)
AddressConfiguration & WithContext(Aws::Map< Aws::String, Aws::String > &&value)
AddressConfiguration & WithRawContent(const Aws::String &value)
AddressConfiguration & AddContext(const char *key, Aws::String &&value)
AddressConfiguration & AddSubstitutions(const char *key, const Aws::Vector< Aws::String > &value)
AWS_PINPOINT_API AddressConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AddressConfiguration & AddSubstitutions(Aws::String &&key, const Aws::Vector< Aws::String > &value)
AddressConfiguration & AddSubstitutions(Aws::String &&key, Aws::Vector< Aws::String > &&value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
AddressConfiguration & WithTitleOverride(const Aws::String &value)
AddressConfiguration & WithChannelType(ChannelType &&value)
void SetBodyOverride(const Aws::String &value)
AddressConfiguration & AddContext(const char *key, const char *value)
AddressConfiguration & AddContext(const Aws::String &key, const Aws::String &value)
void SetSubstitutions(Aws::Map< Aws::String, Aws::Vector< Aws::String > > &&value)
AddressConfiguration & WithBodyOverride(Aws::String &&value)
void SetTitleOverride(const Aws::String &value)
AddressConfiguration & AddContext(Aws::String &&key, const Aws::String &value)
AddressConfiguration & WithBodyOverride(const char *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