AWS SDK for C++

AWS SDK for C++ Version 1.11.682

Loading...
Searching...
No Matches
TreatmentResource.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/pinpoint/Pinpoint_EXPORTS.h>
9#include <aws/pinpoint/model/CampaignState.h>
10#include <aws/pinpoint/model/CustomDeliveryConfiguration.h>
11#include <aws/pinpoint/model/MessageConfiguration.h>
12#include <aws/pinpoint/model/Schedule.h>
13#include <aws/pinpoint/model/TemplateConfiguration.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Pinpoint {
25namespace Model {
26
35 public:
36 AWS_PINPOINT_API TreatmentResource() = default;
37 AWS_PINPOINT_API TreatmentResource(Aws::Utils::Json::JsonView jsonValue);
39 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
47 inline const CustomDeliveryConfiguration& GetCustomDeliveryConfiguration() const { return m_customDeliveryConfiguration; }
48 inline bool CustomDeliveryConfigurationHasBeenSet() const { return m_customDeliveryConfigurationHasBeenSet; }
49 template <typename CustomDeliveryConfigurationT = CustomDeliveryConfiguration>
50 void SetCustomDeliveryConfiguration(CustomDeliveryConfigurationT&& value) {
51 m_customDeliveryConfigurationHasBeenSet = true;
52 m_customDeliveryConfiguration = std::forward<CustomDeliveryConfigurationT>(value);
53 }
54 template <typename CustomDeliveryConfigurationT = CustomDeliveryConfiguration>
55 TreatmentResource& WithCustomDeliveryConfiguration(CustomDeliveryConfigurationT&& value) {
56 SetCustomDeliveryConfiguration(std::forward<CustomDeliveryConfigurationT>(value));
57 return *this;
58 }
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) {
69 m_idHasBeenSet = true;
70 m_id = std::forward<IdT>(value);
71 }
72 template <typename IdT = Aws::String>
73 TreatmentResource& WithId(IdT&& value) {
74 SetId(std::forward<IdT>(value));
75 return *this;
76 }
78
80
83 inline const MessageConfiguration& GetMessageConfiguration() const { return m_messageConfiguration; }
84 inline bool MessageConfigurationHasBeenSet() const { return m_messageConfigurationHasBeenSet; }
85 template <typename MessageConfigurationT = MessageConfiguration>
86 void SetMessageConfiguration(MessageConfigurationT&& value) {
87 m_messageConfigurationHasBeenSet = true;
88 m_messageConfiguration = std::forward<MessageConfigurationT>(value);
89 }
90 template <typename MessageConfigurationT = MessageConfiguration>
91 TreatmentResource& WithMessageConfiguration(MessageConfigurationT&& value) {
92 SetMessageConfiguration(std::forward<MessageConfigurationT>(value));
93 return *this;
94 }
96
98
101 inline const Schedule& GetSchedule() const { return m_schedule; }
102 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
103 template <typename ScheduleT = Schedule>
104 void SetSchedule(ScheduleT&& value) {
105 m_scheduleHasBeenSet = true;
106 m_schedule = std::forward<ScheduleT>(value);
107 }
108 template <typename ScheduleT = Schedule>
109 TreatmentResource& WithSchedule(ScheduleT&& value) {
110 SetSchedule(std::forward<ScheduleT>(value));
111 return *this;
112 }
114
116
120 inline int GetSizePercent() const { return m_sizePercent; }
121 inline bool SizePercentHasBeenSet() const { return m_sizePercentHasBeenSet; }
122 inline void SetSizePercent(int value) {
123 m_sizePercentHasBeenSet = true;
124 m_sizePercent = value;
125 }
127 SetSizePercent(value);
128 return *this;
129 }
131
133
136 inline const CampaignState& GetState() const { return m_state; }
137 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
138 template <typename StateT = CampaignState>
139 void SetState(StateT&& value) {
140 m_stateHasBeenSet = true;
141 m_state = std::forward<StateT>(value);
142 }
143 template <typename StateT = CampaignState>
144 TreatmentResource& WithState(StateT&& value) {
145 SetState(std::forward<StateT>(value));
146 return *this;
147 }
149
151
154 inline const TemplateConfiguration& GetTemplateConfiguration() const { return m_templateConfiguration; }
155 inline bool TemplateConfigurationHasBeenSet() const { return m_templateConfigurationHasBeenSet; }
156 template <typename TemplateConfigurationT = TemplateConfiguration>
157 void SetTemplateConfiguration(TemplateConfigurationT&& value) {
158 m_templateConfigurationHasBeenSet = true;
159 m_templateConfiguration = std::forward<TemplateConfigurationT>(value);
160 }
161 template <typename TemplateConfigurationT = TemplateConfiguration>
162 TreatmentResource& WithTemplateConfiguration(TemplateConfigurationT&& value) {
163 SetTemplateConfiguration(std::forward<TemplateConfigurationT>(value));
164 return *this;
165 }
167
169
172 inline const Aws::String& GetTreatmentDescription() const { return m_treatmentDescription; }
173 inline bool TreatmentDescriptionHasBeenSet() const { return m_treatmentDescriptionHasBeenSet; }
174 template <typename TreatmentDescriptionT = Aws::String>
175 void SetTreatmentDescription(TreatmentDescriptionT&& value) {
176 m_treatmentDescriptionHasBeenSet = true;
177 m_treatmentDescription = std::forward<TreatmentDescriptionT>(value);
178 }
179 template <typename TreatmentDescriptionT = Aws::String>
180 TreatmentResource& WithTreatmentDescription(TreatmentDescriptionT&& value) {
181 SetTreatmentDescription(std::forward<TreatmentDescriptionT>(value));
182 return *this;
183 }
185
187
190 inline const Aws::String& GetTreatmentName() const { return m_treatmentName; }
191 inline bool TreatmentNameHasBeenSet() const { return m_treatmentNameHasBeenSet; }
192 template <typename TreatmentNameT = Aws::String>
193 void SetTreatmentName(TreatmentNameT&& value) {
194 m_treatmentNameHasBeenSet = true;
195 m_treatmentName = std::forward<TreatmentNameT>(value);
196 }
197 template <typename TreatmentNameT = Aws::String>
198 TreatmentResource& WithTreatmentName(TreatmentNameT&& value) {
199 SetTreatmentName(std::forward<TreatmentNameT>(value));
200 return *this;
201 }
203 private:
204 CustomDeliveryConfiguration m_customDeliveryConfiguration;
205 bool m_customDeliveryConfigurationHasBeenSet = false;
206
207 Aws::String m_id;
208 bool m_idHasBeenSet = false;
209
210 MessageConfiguration m_messageConfiguration;
211 bool m_messageConfigurationHasBeenSet = false;
212
213 Schedule m_schedule;
214 bool m_scheduleHasBeenSet = false;
215
216 int m_sizePercent{0};
217 bool m_sizePercentHasBeenSet = false;
218
219 CampaignState m_state;
220 bool m_stateHasBeenSet = false;
221
222 TemplateConfiguration m_templateConfiguration;
223 bool m_templateConfigurationHasBeenSet = false;
224
225 Aws::String m_treatmentDescription;
226 bool m_treatmentDescriptionHasBeenSet = false;
227
228 Aws::String m_treatmentName;
229 bool m_treatmentNameHasBeenSet = false;
230};
231
232} // namespace Model
233} // namespace Pinpoint
234} // 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