AWS SDK for C++

AWS SDK for C++ Version 1.11.608

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() = default;
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 template<typename BodyOverrideT = Aws::String>
52 void SetBodyOverride(BodyOverrideT&& value) { m_bodyOverrideHasBeenSet = true; m_bodyOverride = std::forward<BodyOverrideT>(value); }
53 template<typename BodyOverrideT = Aws::String>
54 AddressConfiguration& WithBodyOverride(BodyOverrideT&& value) { SetBodyOverride(std::forward<BodyOverrideT>(value)); return *this;}
56
58
61 inline ChannelType GetChannelType() const { return m_channelType; }
62 inline bool ChannelTypeHasBeenSet() const { return m_channelTypeHasBeenSet; }
63 inline void SetChannelType(ChannelType value) { m_channelTypeHasBeenSet = true; m_channelType = value; }
64 inline AddressConfiguration& WithChannelType(ChannelType value) { SetChannelType(value); return *this;}
66
68
75 inline const Aws::Map<Aws::String, Aws::String>& GetContext() const { return m_context; }
76 inline bool ContextHasBeenSet() const { return m_contextHasBeenSet; }
77 template<typename ContextT = Aws::Map<Aws::String, Aws::String>>
78 void SetContext(ContextT&& value) { m_contextHasBeenSet = true; m_context = std::forward<ContextT>(value); }
79 template<typename ContextT = Aws::Map<Aws::String, Aws::String>>
80 AddressConfiguration& WithContext(ContextT&& value) { SetContext(std::forward<ContextT>(value)); return *this;}
81 template<typename ContextKeyT = Aws::String, typename ContextValueT = Aws::String>
82 AddressConfiguration& AddContext(ContextKeyT&& key, ContextValueT&& value) {
83 m_contextHasBeenSet = true; m_context.emplace(std::forward<ContextKeyT>(key), std::forward<ContextValueT>(value)); return *this;
84 }
86
88
92 inline const Aws::String& GetRawContent() const { return m_rawContent; }
93 inline bool RawContentHasBeenSet() const { return m_rawContentHasBeenSet; }
94 template<typename RawContentT = Aws::String>
95 void SetRawContent(RawContentT&& value) { m_rawContentHasBeenSet = true; m_rawContent = std::forward<RawContentT>(value); }
96 template<typename RawContentT = Aws::String>
97 AddressConfiguration& WithRawContent(RawContentT&& value) { SetRawContent(std::forward<RawContentT>(value)); return *this;}
99
101
106 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetSubstitutions() const { return m_substitutions; }
107 inline bool SubstitutionsHasBeenSet() const { return m_substitutionsHasBeenSet; }
108 template<typename SubstitutionsT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
109 void SetSubstitutions(SubstitutionsT&& value) { m_substitutionsHasBeenSet = true; m_substitutions = std::forward<SubstitutionsT>(value); }
110 template<typename SubstitutionsT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
111 AddressConfiguration& WithSubstitutions(SubstitutionsT&& value) { SetSubstitutions(std::forward<SubstitutionsT>(value)); return *this;}
112 template<typename SubstitutionsKeyT = Aws::String, typename SubstitutionsValueT = Aws::Vector<Aws::String>>
113 AddressConfiguration& AddSubstitutions(SubstitutionsKeyT&& key, SubstitutionsValueT&& value) {
114 m_substitutionsHasBeenSet = true; m_substitutions.emplace(std::forward<SubstitutionsKeyT>(key), std::forward<SubstitutionsValueT>(value)); return *this;
115 }
117
119
123 inline const Aws::String& GetTitleOverride() const { return m_titleOverride; }
124 inline bool TitleOverrideHasBeenSet() const { return m_titleOverrideHasBeenSet; }
125 template<typename TitleOverrideT = Aws::String>
126 void SetTitleOverride(TitleOverrideT&& value) { m_titleOverrideHasBeenSet = true; m_titleOverride = std::forward<TitleOverrideT>(value); }
127 template<typename TitleOverrideT = Aws::String>
128 AddressConfiguration& WithTitleOverride(TitleOverrideT&& value) { SetTitleOverride(std::forward<TitleOverrideT>(value)); return *this;}
130 private:
131
132 Aws::String m_bodyOverride;
133 bool m_bodyOverrideHasBeenSet = false;
134
135 ChannelType m_channelType{ChannelType::NOT_SET};
136 bool m_channelTypeHasBeenSet = false;
137
139 bool m_contextHasBeenSet = false;
140
141 Aws::String m_rawContent;
142 bool m_rawContentHasBeenSet = false;
143
145 bool m_substitutionsHasBeenSet = false;
146
147 Aws::String m_titleOverride;
148 bool m_titleOverrideHasBeenSet = false;
149 };
150
151} // namespace Model
152} // namespace Pinpoint
153} // namespace Aws
AddressConfiguration & WithContext(ContextT &&value)
AddressConfiguration & WithSubstitutions(SubstitutionsT &&value)
AWS_PINPOINT_API AddressConfiguration()=default
const Aws::Map< Aws::String, Aws::String > & GetContext() const
AddressConfiguration & AddSubstitutions(SubstitutionsKeyT &&key, SubstitutionsValueT &&value)
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetSubstitutions() const
AddressConfiguration & WithChannelType(ChannelType value)
AWS_PINPOINT_API AddressConfiguration(Aws::Utils::Json::JsonView jsonValue)
AddressConfiguration & WithTitleOverride(TitleOverrideT &&value)
AWS_PINPOINT_API AddressConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AddressConfiguration & WithRawContent(RawContentT &&value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
AddressConfiguration & WithBodyOverride(BodyOverrideT &&value)
AddressConfiguration & AddContext(ContextKeyT &&key, ContextValueT &&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