AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
InboxPlacementTrackingOption.h
1
6#pragma once
7#include <aws/pinpoint-email/PinpointEmail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace PinpointEmail
23{
24namespace Model
25{
26
37 {
38 public:
39 AWS_PINPOINTEMAIL_API InboxPlacementTrackingOption() = default;
42 AWS_PINPOINTEMAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline bool GetGlobal() const { return m_global; }
50 inline bool GlobalHasBeenSet() const { return m_globalHasBeenSet; }
51 inline void SetGlobal(bool value) { m_globalHasBeenSet = true; m_global = value; }
52 inline InboxPlacementTrackingOption& WithGlobal(bool value) { SetGlobal(value); return *this;}
54
56
60 inline const Aws::Vector<Aws::String>& GetTrackedIsps() const { return m_trackedIsps; }
61 inline bool TrackedIspsHasBeenSet() const { return m_trackedIspsHasBeenSet; }
62 template<typename TrackedIspsT = Aws::Vector<Aws::String>>
63 void SetTrackedIsps(TrackedIspsT&& value) { m_trackedIspsHasBeenSet = true; m_trackedIsps = std::forward<TrackedIspsT>(value); }
64 template<typename TrackedIspsT = Aws::Vector<Aws::String>>
65 InboxPlacementTrackingOption& WithTrackedIsps(TrackedIspsT&& value) { SetTrackedIsps(std::forward<TrackedIspsT>(value)); return *this;}
66 template<typename TrackedIspsT = Aws::String>
67 InboxPlacementTrackingOption& AddTrackedIsps(TrackedIspsT&& value) { m_trackedIspsHasBeenSet = true; m_trackedIsps.emplace_back(std::forward<TrackedIspsT>(value)); return *this; }
69 private:
70
71 bool m_global{false};
72 bool m_globalHasBeenSet = false;
73
74 Aws::Vector<Aws::String> m_trackedIsps;
75 bool m_trackedIspsHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace PinpointEmail
80} // namespace Aws
AWS_PINPOINTEMAIL_API InboxPlacementTrackingOption()=default
InboxPlacementTrackingOption & WithTrackedIsps(TrackedIspsT &&value)
InboxPlacementTrackingOption & AddTrackedIsps(TrackedIspsT &&value)
AWS_PINPOINTEMAIL_API InboxPlacementTrackingOption & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_PINPOINTEMAIL_API InboxPlacementTrackingOption(Aws::Utils::Json::JsonView jsonValue)
AWS_PINPOINTEMAIL_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue