AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
WriteTreatmentResource.h
1
6#pragma once
7#include <aws/pinpoint/Pinpoint_EXPORTS.h>
8#include <aws/pinpoint/model/CustomDeliveryConfiguration.h>
9#include <aws/pinpoint/model/MessageConfiguration.h>
10#include <aws/pinpoint/model/Schedule.h>
11#include <aws/pinpoint/model/TemplateConfiguration.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Pinpoint
26{
27namespace Model
28{
29
38 {
39 public:
40 AWS_PINPOINT_API WriteTreatmentResource() = default;
43 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
52 inline const CustomDeliveryConfiguration& GetCustomDeliveryConfiguration() const { return m_customDeliveryConfiguration; }
53 inline bool CustomDeliveryConfigurationHasBeenSet() const { return m_customDeliveryConfigurationHasBeenSet; }
54 template<typename CustomDeliveryConfigurationT = CustomDeliveryConfiguration>
55 void SetCustomDeliveryConfiguration(CustomDeliveryConfigurationT&& value) { m_customDeliveryConfigurationHasBeenSet = true; m_customDeliveryConfiguration = std::forward<CustomDeliveryConfigurationT>(value); }
56 template<typename CustomDeliveryConfigurationT = CustomDeliveryConfiguration>
57 WriteTreatmentResource& WithCustomDeliveryConfiguration(CustomDeliveryConfigurationT&& value) { SetCustomDeliveryConfiguration(std::forward<CustomDeliveryConfigurationT>(value)); return *this;}
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) { m_messageConfigurationHasBeenSet = true; m_messageConfiguration = std::forward<MessageConfigurationT>(value); }
68 template<typename MessageConfigurationT = MessageConfiguration>
69 WriteTreatmentResource& WithMessageConfiguration(MessageConfigurationT&& value) { SetMessageConfiguration(std::forward<MessageConfigurationT>(value)); return *this;}
71
73
76 inline const Schedule& GetSchedule() const { return m_schedule; }
77 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
78 template<typename ScheduleT = Schedule>
79 void SetSchedule(ScheduleT&& value) { m_scheduleHasBeenSet = true; m_schedule = std::forward<ScheduleT>(value); }
80 template<typename ScheduleT = Schedule>
81 WriteTreatmentResource& WithSchedule(ScheduleT&& value) { SetSchedule(std::forward<ScheduleT>(value)); return *this;}
83
85
89 inline int GetSizePercent() const { return m_sizePercent; }
90 inline bool SizePercentHasBeenSet() const { return m_sizePercentHasBeenSet; }
91 inline void SetSizePercent(int value) { m_sizePercentHasBeenSet = true; m_sizePercent = value; }
92 inline WriteTreatmentResource& WithSizePercent(int value) { SetSizePercent(value); return *this;}
94
96
99 inline const TemplateConfiguration& GetTemplateConfiguration() const { return m_templateConfiguration; }
100 inline bool TemplateConfigurationHasBeenSet() const { return m_templateConfigurationHasBeenSet; }
101 template<typename TemplateConfigurationT = TemplateConfiguration>
102 void SetTemplateConfiguration(TemplateConfigurationT&& value) { m_templateConfigurationHasBeenSet = true; m_templateConfiguration = std::forward<TemplateConfigurationT>(value); }
103 template<typename TemplateConfigurationT = TemplateConfiguration>
104 WriteTreatmentResource& WithTemplateConfiguration(TemplateConfigurationT&& value) { SetTemplateConfiguration(std::forward<TemplateConfigurationT>(value)); return *this;}
106
108
111 inline const Aws::String& GetTreatmentDescription() const { return m_treatmentDescription; }
112 inline bool TreatmentDescriptionHasBeenSet() const { return m_treatmentDescriptionHasBeenSet; }
113 template<typename TreatmentDescriptionT = Aws::String>
114 void SetTreatmentDescription(TreatmentDescriptionT&& value) { m_treatmentDescriptionHasBeenSet = true; m_treatmentDescription = std::forward<TreatmentDescriptionT>(value); }
115 template<typename TreatmentDescriptionT = Aws::String>
116 WriteTreatmentResource& WithTreatmentDescription(TreatmentDescriptionT&& value) { SetTreatmentDescription(std::forward<TreatmentDescriptionT>(value)); return *this;}
118
120
123 inline const Aws::String& GetTreatmentName() const { return m_treatmentName; }
124 inline bool TreatmentNameHasBeenSet() const { return m_treatmentNameHasBeenSet; }
125 template<typename TreatmentNameT = Aws::String>
126 void SetTreatmentName(TreatmentNameT&& value) { m_treatmentNameHasBeenSet = true; m_treatmentName = std::forward<TreatmentNameT>(value); }
127 template<typename TreatmentNameT = Aws::String>
128 WriteTreatmentResource& WithTreatmentName(TreatmentNameT&& value) { SetTreatmentName(std::forward<TreatmentNameT>(value)); return *this;}
130 private:
131
132 CustomDeliveryConfiguration m_customDeliveryConfiguration;
133 bool m_customDeliveryConfigurationHasBeenSet = false;
134
135 MessageConfiguration m_messageConfiguration;
136 bool m_messageConfigurationHasBeenSet = false;
137
138 Schedule m_schedule;
139 bool m_scheduleHasBeenSet = false;
140
141 int m_sizePercent{0};
142 bool m_sizePercentHasBeenSet = false;
143
144 TemplateConfiguration m_templateConfiguration;
145 bool m_templateConfigurationHasBeenSet = false;
146
147 Aws::String m_treatmentDescription;
148 bool m_treatmentDescriptionHasBeenSet = false;
149
150 Aws::String m_treatmentName;
151 bool m_treatmentNameHasBeenSet = false;
152 };
153
154} // namespace Model
155} // namespace Pinpoint
156} // 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