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>
55 template<
typename CustomDeliveryConfigurationT = CustomDeliveryConfiguration>
56 void SetCustomDeliveryConfiguration(CustomDeliveryConfigurationT&& value) { m_customDeliveryConfigurationHasBeenSet =
true; m_customDeliveryConfiguration = std::forward<CustomDeliveryConfigurationT>(value); }
57 template<
typename CustomDeliveryConfigurationT = CustomDeliveryConfiguration>
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>
79 template<
typename MessageConfigurationT = MessageConfiguration>
80 void SetMessageConfiguration(MessageConfigurationT&& value) { m_messageConfigurationHasBeenSet =
true; m_messageConfiguration = std::forward<MessageConfigurationT>(value); }
81 template<
typename MessageConfigurationT = MessageConfiguration>
91 template<
typename ScheduleT = Schedule>
92 void SetSchedule(ScheduleT&& value) { m_scheduleHasBeenSet =
true; m_schedule = std::forward<ScheduleT>(value); }
93 template<
typename ScheduleT = Schedule>
104 inline void SetSizePercent(
int value) { m_sizePercentHasBeenSet =
true; m_sizePercent = value; }
114 template<
typename StateT = CampaignState>
115 void SetState(StateT&& value) { m_stateHasBeenSet =
true; m_state = std::forward<StateT>(value); }
116 template<
typename StateT = CampaignState>
126 template<
typename TemplateConfigurationT = TemplateConfiguration>
127 void SetTemplateConfiguration(TemplateConfigurationT&& value) { m_templateConfigurationHasBeenSet =
true; m_templateConfiguration = std::forward<TemplateConfigurationT>(value); }
128 template<
typename TemplateConfigurationT = TemplateConfiguration>
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>
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>
158 bool m_customDeliveryConfigurationHasBeenSet =
false;
161 bool m_idHasBeenSet =
false;
164 bool m_messageConfigurationHasBeenSet =
false;
167 bool m_scheduleHasBeenSet =
false;
169 int m_sizePercent{0};
170 bool m_sizePercentHasBeenSet =
false;
172 CampaignState m_state;
173 bool m_stateHasBeenSet =
false;
175 TemplateConfiguration m_templateConfiguration;
176 bool m_templateConfigurationHasBeenSet =
false;
179 bool m_treatmentDescriptionHasBeenSet =
false;
182 bool m_treatmentNameHasBeenSet =
false;
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)
bool CustomDeliveryConfigurationHasBeenSet() const
const CampaignState & GetState() const
void SetCustomDeliveryConfiguration(CustomDeliveryConfigurationT &&value)
const TemplateConfiguration & GetTemplateConfiguration() const
void SetState(StateT &&value)
const MessageConfiguration & GetMessageConfiguration() const
TreatmentResource & WithTreatmentDescription(TreatmentDescriptionT &&value)
const CustomDeliveryConfiguration & GetCustomDeliveryConfiguration() const
bool SizePercentHasBeenSet() const
void SetTreatmentName(TreatmentNameT &&value)
const Aws::String & GetTreatmentName() const
TreatmentResource & WithTreatmentName(TreatmentNameT &&value)
TreatmentResource & WithMessageConfiguration(MessageConfigurationT &&value)
bool TreatmentDescriptionHasBeenSet() const
void SetMessageConfiguration(MessageConfigurationT &&value)
bool StateHasBeenSet() const
TreatmentResource & WithState(StateT &&value)
bool TemplateConfigurationHasBeenSet() const
bool TreatmentNameHasBeenSet() const
TreatmentResource & WithSchedule(ScheduleT &&value)
int GetSizePercent() const
bool IdHasBeenSet() const
void SetSizePercent(int value)
void SetTemplateConfiguration(TemplateConfigurationT &&value)
bool ScheduleHasBeenSet() const
AWS_PINPOINT_API TreatmentResource()=default
AWS_PINPOINT_API TreatmentResource(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetId() const
TreatmentResource & WithSizePercent(int value)
TreatmentResource & WithId(IdT &&value)
const Schedule & GetSchedule() const
bool MessageConfigurationHasBeenSet() const
TreatmentResource & WithCustomDeliveryConfiguration(CustomDeliveryConfigurationT &&value)
const Aws::String & GetTreatmentDescription() const
void SetSchedule(ScheduleT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue