AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
TreatmentResource.h
1
6#pragma once
7#include <aws/pinpoint/Pinpoint_EXPORTS.h>
8#include <aws/pinpoint/model/CustomDeliveryConfiguration.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/pinpoint/model/MessageConfiguration.h>
11#include <aws/pinpoint/model/Schedule.h>
12#include <aws/pinpoint/model/CampaignState.h>
13#include <aws/pinpoint/model/TemplateConfiguration.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace Pinpoint
27{
28namespace Model
29{
30
39 {
40 public:
41 AWS_PINPOINT_API TreatmentResource() = default;
42 AWS_PINPOINT_API TreatmentResource(Aws::Utils::Json::JsonView jsonValue);
44 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
53 inline const CustomDeliveryConfiguration& GetCustomDeliveryConfiguration() const { return m_customDeliveryConfiguration; }
54 inline bool CustomDeliveryConfigurationHasBeenSet() const { return m_customDeliveryConfigurationHasBeenSet; }
55 template<typename CustomDeliveryConfigurationT = CustomDeliveryConfiguration>
56 void SetCustomDeliveryConfiguration(CustomDeliveryConfigurationT&& value) { m_customDeliveryConfigurationHasBeenSet = true; m_customDeliveryConfiguration = std::forward<CustomDeliveryConfigurationT>(value); }
57 template<typename CustomDeliveryConfigurationT = CustomDeliveryConfiguration>
58 TreatmentResource& WithCustomDeliveryConfiguration(CustomDeliveryConfigurationT&& value) { SetCustomDeliveryConfiguration(std::forward<CustomDeliveryConfigurationT>(value)); return *this;}
60
62
65 inline const Aws::String& GetId() const { return m_id; }
66 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
67 template<typename IdT = Aws::String>
68 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
69 template<typename IdT = Aws::String>
70 TreatmentResource& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
72
74
77 inline const MessageConfiguration& GetMessageConfiguration() const { return m_messageConfiguration; }
78 inline bool MessageConfigurationHasBeenSet() const { return m_messageConfigurationHasBeenSet; }
79 template<typename MessageConfigurationT = MessageConfiguration>
80 void SetMessageConfiguration(MessageConfigurationT&& value) { m_messageConfigurationHasBeenSet = true; m_messageConfiguration = std::forward<MessageConfigurationT>(value); }
81 template<typename MessageConfigurationT = MessageConfiguration>
82 TreatmentResource& WithMessageConfiguration(MessageConfigurationT&& value) { SetMessageConfiguration(std::forward<MessageConfigurationT>(value)); return *this;}
84
86
89 inline const Schedule& GetSchedule() const { return m_schedule; }
90 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
91 template<typename ScheduleT = Schedule>
92 void SetSchedule(ScheduleT&& value) { m_scheduleHasBeenSet = true; m_schedule = std::forward<ScheduleT>(value); }
93 template<typename ScheduleT = Schedule>
94 TreatmentResource& WithSchedule(ScheduleT&& value) { SetSchedule(std::forward<ScheduleT>(value)); return *this;}
96
98
102 inline int GetSizePercent() const { return m_sizePercent; }
103 inline bool SizePercentHasBeenSet() const { return m_sizePercentHasBeenSet; }
104 inline void SetSizePercent(int value) { m_sizePercentHasBeenSet = true; m_sizePercent = value; }
105 inline TreatmentResource& WithSizePercent(int value) { SetSizePercent(value); return *this;}
107
109
112 inline const CampaignState& GetState() const { return m_state; }
113 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
114 template<typename StateT = CampaignState>
115 void SetState(StateT&& value) { m_stateHasBeenSet = true; m_state = std::forward<StateT>(value); }
116 template<typename StateT = CampaignState>
117 TreatmentResource& WithState(StateT&& value) { SetState(std::forward<StateT>(value)); return *this;}
119
121
124 inline const TemplateConfiguration& GetTemplateConfiguration() const { return m_templateConfiguration; }
125 inline bool TemplateConfigurationHasBeenSet() const { return m_templateConfigurationHasBeenSet; }
126 template<typename TemplateConfigurationT = TemplateConfiguration>
127 void SetTemplateConfiguration(TemplateConfigurationT&& value) { m_templateConfigurationHasBeenSet = true; m_templateConfiguration = std::forward<TemplateConfigurationT>(value); }
128 template<typename TemplateConfigurationT = TemplateConfiguration>
129 TreatmentResource& WithTemplateConfiguration(TemplateConfigurationT&& value) { SetTemplateConfiguration(std::forward<TemplateConfigurationT>(value)); return *this;}
131
133
136 inline const Aws::String& GetTreatmentDescription() const { return m_treatmentDescription; }
137 inline bool TreatmentDescriptionHasBeenSet() const { return m_treatmentDescriptionHasBeenSet; }
138 template<typename TreatmentDescriptionT = Aws::String>
139 void SetTreatmentDescription(TreatmentDescriptionT&& value) { m_treatmentDescriptionHasBeenSet = true; m_treatmentDescription = std::forward<TreatmentDescriptionT>(value); }
140 template<typename TreatmentDescriptionT = Aws::String>
141 TreatmentResource& WithTreatmentDescription(TreatmentDescriptionT&& value) { SetTreatmentDescription(std::forward<TreatmentDescriptionT>(value)); return *this;}
143
145
148 inline const Aws::String& GetTreatmentName() const { return m_treatmentName; }
149 inline bool TreatmentNameHasBeenSet() const { return m_treatmentNameHasBeenSet; }
150 template<typename TreatmentNameT = Aws::String>
151 void SetTreatmentName(TreatmentNameT&& value) { m_treatmentNameHasBeenSet = true; m_treatmentName = std::forward<TreatmentNameT>(value); }
152 template<typename TreatmentNameT = Aws::String>
153 TreatmentResource& WithTreatmentName(TreatmentNameT&& value) { SetTreatmentName(std::forward<TreatmentNameT>(value)); return *this;}
155 private:
156
157 CustomDeliveryConfiguration m_customDeliveryConfiguration;
158 bool m_customDeliveryConfigurationHasBeenSet = false;
159
160 Aws::String m_id;
161 bool m_idHasBeenSet = false;
162
163 MessageConfiguration m_messageConfiguration;
164 bool m_messageConfigurationHasBeenSet = false;
165
166 Schedule m_schedule;
167 bool m_scheduleHasBeenSet = false;
168
169 int m_sizePercent{0};
170 bool m_sizePercentHasBeenSet = false;
171
172 CampaignState m_state;
173 bool m_stateHasBeenSet = false;
174
175 TemplateConfiguration m_templateConfiguration;
176 bool m_templateConfigurationHasBeenSet = false;
177
178 Aws::String m_treatmentDescription;
179 bool m_treatmentDescriptionHasBeenSet = false;
180
181 Aws::String m_treatmentName;
182 bool m_treatmentNameHasBeenSet = false;
183 };
184
185} // namespace Model
186} // namespace Pinpoint
187} // namespace Aws
TreatmentResource & WithTemplateConfiguration(TemplateConfigurationT &&value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetTreatmentDescription(TreatmentDescriptionT &&value)
AWS_PINPOINT_API TreatmentResource & operator=(Aws::Utils::Json::JsonView jsonValue)
const CampaignState & GetState() const
void SetCustomDeliveryConfiguration(CustomDeliveryConfigurationT &&value)
const TemplateConfiguration & GetTemplateConfiguration() const
const MessageConfiguration & GetMessageConfiguration() const
TreatmentResource & WithTreatmentDescription(TreatmentDescriptionT &&value)
const CustomDeliveryConfiguration & GetCustomDeliveryConfiguration() const
void SetTreatmentName(TreatmentNameT &&value)
const Aws::String & GetTreatmentName() const
TreatmentResource & WithTreatmentName(TreatmentNameT &&value)
TreatmentResource & WithMessageConfiguration(MessageConfigurationT &&value)
void SetMessageConfiguration(MessageConfigurationT &&value)
TreatmentResource & WithState(StateT &&value)
TreatmentResource & WithSchedule(ScheduleT &&value)
void SetTemplateConfiguration(TemplateConfigurationT &&value)
AWS_PINPOINT_API TreatmentResource()=default
AWS_PINPOINT_API TreatmentResource(Aws::Utils::Json::JsonView jsonValue)
TreatmentResource & WithSizePercent(int value)
TreatmentResource & WithId(IdT &&value)
TreatmentResource & WithCustomDeliveryConfiguration(CustomDeliveryConfigurationT &&value)
const Aws::String & GetTreatmentDescription() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue