AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetCustomDeliveryConfiguration(const CustomDeliveryConfiguration& value) { m_customDeliveryConfigurationHasBeenSet = true; m_customDeliveryConfiguration = value; }
56 inline void SetCustomDeliveryConfiguration(CustomDeliveryConfiguration&& value) { m_customDeliveryConfigurationHasBeenSet = true; m_customDeliveryConfiguration = std::move(value); }
60
62
65 inline const Aws::String& GetId() const{ return m_id; }
66 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
67 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
68 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
69 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
70 inline TreatmentResource& WithId(const Aws::String& value) { SetId(value); return *this;}
71 inline TreatmentResource& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
72 inline TreatmentResource& WithId(const char* value) { SetId(value); return *this;}
74
76
79 inline const MessageConfiguration& GetMessageConfiguration() const{ return m_messageConfiguration; }
80 inline bool MessageConfigurationHasBeenSet() const { return m_messageConfigurationHasBeenSet; }
81 inline void SetMessageConfiguration(const MessageConfiguration& value) { m_messageConfigurationHasBeenSet = true; m_messageConfiguration = value; }
82 inline void SetMessageConfiguration(MessageConfiguration&& value) { m_messageConfigurationHasBeenSet = true; m_messageConfiguration = std::move(value); }
86
88
91 inline const Schedule& GetSchedule() const{ return m_schedule; }
92 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
93 inline void SetSchedule(const Schedule& value) { m_scheduleHasBeenSet = true; m_schedule = value; }
94 inline void SetSchedule(Schedule&& value) { m_scheduleHasBeenSet = true; m_schedule = std::move(value); }
95 inline TreatmentResource& WithSchedule(const Schedule& value) { SetSchedule(value); return *this;}
96 inline TreatmentResource& WithSchedule(Schedule&& value) { SetSchedule(std::move(value)); return *this;}
98
100
104 inline int GetSizePercent() const{ return m_sizePercent; }
105 inline bool SizePercentHasBeenSet() const { return m_sizePercentHasBeenSet; }
106 inline void SetSizePercent(int value) { m_sizePercentHasBeenSet = true; m_sizePercent = value; }
107 inline TreatmentResource& WithSizePercent(int value) { SetSizePercent(value); return *this;}
109
111
114 inline const CampaignState& GetState() const{ return m_state; }
115 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
116 inline void SetState(const CampaignState& value) { m_stateHasBeenSet = true; m_state = value; }
117 inline void SetState(CampaignState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
118 inline TreatmentResource& WithState(const CampaignState& value) { SetState(value); return *this;}
119 inline TreatmentResource& WithState(CampaignState&& value) { SetState(std::move(value)); return *this;}
121
123
126 inline const TemplateConfiguration& GetTemplateConfiguration() const{ return m_templateConfiguration; }
127 inline bool TemplateConfigurationHasBeenSet() const { return m_templateConfigurationHasBeenSet; }
128 inline void SetTemplateConfiguration(const TemplateConfiguration& value) { m_templateConfigurationHasBeenSet = true; m_templateConfiguration = value; }
129 inline void SetTemplateConfiguration(TemplateConfiguration&& value) { m_templateConfigurationHasBeenSet = true; m_templateConfiguration = std::move(value); }
133
135
138 inline const Aws::String& GetTreatmentDescription() const{ return m_treatmentDescription; }
139 inline bool TreatmentDescriptionHasBeenSet() const { return m_treatmentDescriptionHasBeenSet; }
140 inline void SetTreatmentDescription(const Aws::String& value) { m_treatmentDescriptionHasBeenSet = true; m_treatmentDescription = value; }
141 inline void SetTreatmentDescription(Aws::String&& value) { m_treatmentDescriptionHasBeenSet = true; m_treatmentDescription = std::move(value); }
142 inline void SetTreatmentDescription(const char* value) { m_treatmentDescriptionHasBeenSet = true; m_treatmentDescription.assign(value); }
144 inline TreatmentResource& WithTreatmentDescription(Aws::String&& value) { SetTreatmentDescription(std::move(value)); return *this;}
145 inline TreatmentResource& WithTreatmentDescription(const char* value) { SetTreatmentDescription(value); return *this;}
147
149
152 inline const Aws::String& GetTreatmentName() const{ return m_treatmentName; }
153 inline bool TreatmentNameHasBeenSet() const { return m_treatmentNameHasBeenSet; }
154 inline void SetTreatmentName(const Aws::String& value) { m_treatmentNameHasBeenSet = true; m_treatmentName = value; }
155 inline void SetTreatmentName(Aws::String&& value) { m_treatmentNameHasBeenSet = true; m_treatmentName = std::move(value); }
156 inline void SetTreatmentName(const char* value) { m_treatmentNameHasBeenSet = true; m_treatmentName.assign(value); }
157 inline TreatmentResource& WithTreatmentName(const Aws::String& value) { SetTreatmentName(value); return *this;}
158 inline TreatmentResource& WithTreatmentName(Aws::String&& value) { SetTreatmentName(std::move(value)); return *this;}
159 inline TreatmentResource& WithTreatmentName(const char* value) { SetTreatmentName(value); return *this;}
161 private:
162
163 CustomDeliveryConfiguration m_customDeliveryConfiguration;
164 bool m_customDeliveryConfigurationHasBeenSet = false;
165
166 Aws::String m_id;
167 bool m_idHasBeenSet = false;
168
169 MessageConfiguration m_messageConfiguration;
170 bool m_messageConfigurationHasBeenSet = false;
171
172 Schedule m_schedule;
173 bool m_scheduleHasBeenSet = false;
174
175 int m_sizePercent;
176 bool m_sizePercentHasBeenSet = false;
177
178 CampaignState m_state;
179 bool m_stateHasBeenSet = false;
180
181 TemplateConfiguration m_templateConfiguration;
182 bool m_templateConfigurationHasBeenSet = false;
183
184 Aws::String m_treatmentDescription;
185 bool m_treatmentDescriptionHasBeenSet = false;
186
187 Aws::String m_treatmentName;
188 bool m_treatmentNameHasBeenSet = false;
189 };
190
191} // namespace Model
192} // namespace Pinpoint
193} // namespace Aws
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_PINPOINT_API TreatmentResource & operator=(Aws::Utils::Json::JsonView jsonValue)
TreatmentResource & WithTreatmentName(const char *value)
const CampaignState & GetState() const
void SetSchedule(const Schedule &value)
const TemplateConfiguration & GetTemplateConfiguration() const
void SetState(const CampaignState &value)
void SetTemplateConfiguration(TemplateConfiguration &&value)
const MessageConfiguration & GetMessageConfiguration() const
TreatmentResource & WithMessageConfiguration(MessageConfiguration &&value)
TreatmentResource & WithTreatmentName(Aws::String &&value)
const CustomDeliveryConfiguration & GetCustomDeliveryConfiguration() const
const Aws::String & GetTreatmentName() const
TreatmentResource & WithState(const CampaignState &value)
void SetTreatmentName(const Aws::String &value)
TreatmentResource & WithTreatmentName(const Aws::String &value)
TreatmentResource & WithId(const char *value)
void SetCustomDeliveryConfiguration(const CustomDeliveryConfiguration &value)
TreatmentResource & WithTemplateConfiguration(TemplateConfiguration &&value)
void SetTreatmentDescription(Aws::String &&value)
TreatmentResource & WithId(Aws::String &&value)
TreatmentResource & WithSchedule(const Schedule &value)
TreatmentResource & WithMessageConfiguration(const MessageConfiguration &value)
TreatmentResource & WithCustomDeliveryConfiguration(const CustomDeliveryConfiguration &value)
TreatmentResource & WithId(const Aws::String &value)
void SetCustomDeliveryConfiguration(CustomDeliveryConfiguration &&value)
TreatmentResource & WithSchedule(Schedule &&value)
TreatmentResource & WithTreatmentDescription(const char *value)
TreatmentResource & WithTreatmentDescription(const Aws::String &value)
TreatmentResource & WithState(CampaignState &&value)
void SetTemplateConfiguration(const TemplateConfiguration &value)
void SetTreatmentDescription(const Aws::String &value)
TreatmentResource & WithCustomDeliveryConfiguration(CustomDeliveryConfiguration &&value)
AWS_PINPOINT_API TreatmentResource(Aws::Utils::Json::JsonView jsonValue)
void SetMessageConfiguration(const MessageConfiguration &value)
TreatmentResource & WithSizePercent(int value)
void SetId(const Aws::String &value)
TreatmentResource & WithTreatmentDescription(Aws::String &&value)
void SetTreatmentDescription(const char *value)
void SetMessageConfiguration(MessageConfiguration &&value)
TreatmentResource & WithTemplateConfiguration(const TemplateConfiguration &value)
const Aws::String & GetTreatmentDescription() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue