AWS SDK for C++

AWS SDK for C++ Version 1.11.682

Loading...
Searching...
No Matches
WriteTreatmentResource.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/CustomDeliveryConfiguration.h>
10#include <aws/pinpoint/model/MessageConfiguration.h>
11#include <aws/pinpoint/model/Schedule.h>
12#include <aws/pinpoint/model/TemplateConfiguration.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Pinpoint {
24namespace Model {
25
34 public:
35 AWS_PINPOINT_API WriteTreatmentResource() = default;
38 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
46 inline const CustomDeliveryConfiguration& GetCustomDeliveryConfiguration() const { return m_customDeliveryConfiguration; }
47 inline bool CustomDeliveryConfigurationHasBeenSet() const { return m_customDeliveryConfigurationHasBeenSet; }
48 template <typename CustomDeliveryConfigurationT = CustomDeliveryConfiguration>
49 void SetCustomDeliveryConfiguration(CustomDeliveryConfigurationT&& value) {
50 m_customDeliveryConfigurationHasBeenSet = true;
51 m_customDeliveryConfiguration = std::forward<CustomDeliveryConfigurationT>(value);
52 }
53 template <typename CustomDeliveryConfigurationT = CustomDeliveryConfiguration>
54 WriteTreatmentResource& WithCustomDeliveryConfiguration(CustomDeliveryConfigurationT&& value) {
55 SetCustomDeliveryConfiguration(std::forward<CustomDeliveryConfigurationT>(value));
56 return *this;
57 }
59
61
64 inline const MessageConfiguration& GetMessageConfiguration() const { return m_messageConfiguration; }
65 inline bool MessageConfigurationHasBeenSet() const { return m_messageConfigurationHasBeenSet; }
66 template <typename MessageConfigurationT = MessageConfiguration>
67 void SetMessageConfiguration(MessageConfigurationT&& value) {
68 m_messageConfigurationHasBeenSet = true;
69 m_messageConfiguration = std::forward<MessageConfigurationT>(value);
70 }
71 template <typename MessageConfigurationT = MessageConfiguration>
72 WriteTreatmentResource& WithMessageConfiguration(MessageConfigurationT&& value) {
73 SetMessageConfiguration(std::forward<MessageConfigurationT>(value));
74 return *this;
75 }
77
79
82 inline const Schedule& GetSchedule() const { return m_schedule; }
83 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
84 template <typename ScheduleT = Schedule>
85 void SetSchedule(ScheduleT&& value) {
86 m_scheduleHasBeenSet = true;
87 m_schedule = std::forward<ScheduleT>(value);
88 }
89 template <typename ScheduleT = Schedule>
91 SetSchedule(std::forward<ScheduleT>(value));
92 return *this;
93 }
95
97
101 inline int GetSizePercent() const { return m_sizePercent; }
102 inline bool SizePercentHasBeenSet() const { return m_sizePercentHasBeenSet; }
103 inline void SetSizePercent(int value) {
104 m_sizePercentHasBeenSet = true;
105 m_sizePercent = value;
106 }
108 SetSizePercent(value);
109 return *this;
110 }
112
114
117 inline const TemplateConfiguration& GetTemplateConfiguration() const { return m_templateConfiguration; }
118 inline bool TemplateConfigurationHasBeenSet() const { return m_templateConfigurationHasBeenSet; }
119 template <typename TemplateConfigurationT = TemplateConfiguration>
120 void SetTemplateConfiguration(TemplateConfigurationT&& value) {
121 m_templateConfigurationHasBeenSet = true;
122 m_templateConfiguration = std::forward<TemplateConfigurationT>(value);
123 }
124 template <typename TemplateConfigurationT = TemplateConfiguration>
125 WriteTreatmentResource& WithTemplateConfiguration(TemplateConfigurationT&& value) {
126 SetTemplateConfiguration(std::forward<TemplateConfigurationT>(value));
127 return *this;
128 }
130
132
135 inline const Aws::String& GetTreatmentDescription() const { return m_treatmentDescription; }
136 inline bool TreatmentDescriptionHasBeenSet() const { return m_treatmentDescriptionHasBeenSet; }
137 template <typename TreatmentDescriptionT = Aws::String>
138 void SetTreatmentDescription(TreatmentDescriptionT&& value) {
139 m_treatmentDescriptionHasBeenSet = true;
140 m_treatmentDescription = std::forward<TreatmentDescriptionT>(value);
141 }
142 template <typename TreatmentDescriptionT = Aws::String>
143 WriteTreatmentResource& WithTreatmentDescription(TreatmentDescriptionT&& value) {
144 SetTreatmentDescription(std::forward<TreatmentDescriptionT>(value));
145 return *this;
146 }
148
150
153 inline const Aws::String& GetTreatmentName() const { return m_treatmentName; }
154 inline bool TreatmentNameHasBeenSet() const { return m_treatmentNameHasBeenSet; }
155 template <typename TreatmentNameT = Aws::String>
156 void SetTreatmentName(TreatmentNameT&& value) {
157 m_treatmentNameHasBeenSet = true;
158 m_treatmentName = std::forward<TreatmentNameT>(value);
159 }
160 template <typename TreatmentNameT = Aws::String>
161 WriteTreatmentResource& WithTreatmentName(TreatmentNameT&& value) {
162 SetTreatmentName(std::forward<TreatmentNameT>(value));
163 return *this;
164 }
166 private:
167 CustomDeliveryConfiguration m_customDeliveryConfiguration;
168 bool m_customDeliveryConfigurationHasBeenSet = false;
169
170 MessageConfiguration m_messageConfiguration;
171 bool m_messageConfigurationHasBeenSet = false;
172
173 Schedule m_schedule;
174 bool m_scheduleHasBeenSet = false;
175
176 int m_sizePercent{0};
177 bool m_sizePercentHasBeenSet = false;
178
179 TemplateConfiguration m_templateConfiguration;
180 bool m_templateConfigurationHasBeenSet = false;
181
182 Aws::String m_treatmentDescription;
183 bool m_treatmentDescriptionHasBeenSet = false;
184
185 Aws::String m_treatmentName;
186 bool m_treatmentNameHasBeenSet = false;
187};
188
189} // namespace Model
190} // namespace Pinpoint
191} // namespace Aws
void SetTemplateConfiguration(TemplateConfigurationT &&value)
void SetMessageConfiguration(MessageConfigurationT &&value)
WriteTreatmentResource & WithSizePercent(int value)
WriteTreatmentResource & WithCustomDeliveryConfiguration(CustomDeliveryConfigurationT &&value)
AWS_PINPOINT_API WriteTreatmentResource(Aws::Utils::Json::JsonView jsonValue)
const MessageConfiguration & GetMessageConfiguration() const
WriteTreatmentResource & WithTemplateConfiguration(TemplateConfigurationT &&value)
const TemplateConfiguration & GetTemplateConfiguration() const
const CustomDeliveryConfiguration & GetCustomDeliveryConfiguration() const
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
WriteTreatmentResource & WithMessageConfiguration(MessageConfigurationT &&value)
AWS_PINPOINT_API WriteTreatmentResource & operator=(Aws::Utils::Json::JsonView jsonValue)
WriteTreatmentResource & WithTreatmentName(TreatmentNameT &&value)
AWS_PINPOINT_API WriteTreatmentResource()=default
WriteTreatmentResource & WithTreatmentDescription(TreatmentDescriptionT &&value)
WriteTreatmentResource & WithSchedule(ScheduleT &&value)
void SetCustomDeliveryConfiguration(CustomDeliveryConfigurationT &&value)
void SetTreatmentDescription(TreatmentDescriptionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue