AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetCustomDeliveryConfiguration(const CustomDeliveryConfiguration& value) { m_customDeliveryConfigurationHasBeenSet = true; m_customDeliveryConfiguration = value; }
55 inline void SetCustomDeliveryConfiguration(CustomDeliveryConfiguration&& value) { m_customDeliveryConfigurationHasBeenSet = true; m_customDeliveryConfiguration = std::move(value); }
59
61
64 inline const MessageConfiguration& GetMessageConfiguration() const{ return m_messageConfiguration; }
65 inline bool MessageConfigurationHasBeenSet() const { return m_messageConfigurationHasBeenSet; }
66 inline void SetMessageConfiguration(const MessageConfiguration& value) { m_messageConfigurationHasBeenSet = true; m_messageConfiguration = value; }
67 inline void SetMessageConfiguration(MessageConfiguration&& value) { m_messageConfigurationHasBeenSet = true; m_messageConfiguration = std::move(value); }
71
73
76 inline const Schedule& GetSchedule() const{ return m_schedule; }
77 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
78 inline void SetSchedule(const Schedule& value) { m_scheduleHasBeenSet = true; m_schedule = value; }
79 inline void SetSchedule(Schedule&& value) { m_scheduleHasBeenSet = true; m_schedule = std::move(value); }
80 inline WriteTreatmentResource& WithSchedule(const Schedule& value) { SetSchedule(value); return *this;}
81 inline WriteTreatmentResource& WithSchedule(Schedule&& value) { SetSchedule(std::move(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 inline void SetTemplateConfiguration(const TemplateConfiguration& value) { m_templateConfigurationHasBeenSet = true; m_templateConfiguration = value; }
102 inline void SetTemplateConfiguration(TemplateConfiguration&& value) { m_templateConfigurationHasBeenSet = true; m_templateConfiguration = std::move(value); }
106
108
111 inline const Aws::String& GetTreatmentDescription() const{ return m_treatmentDescription; }
112 inline bool TreatmentDescriptionHasBeenSet() const { return m_treatmentDescriptionHasBeenSet; }
113 inline void SetTreatmentDescription(const Aws::String& value) { m_treatmentDescriptionHasBeenSet = true; m_treatmentDescription = value; }
114 inline void SetTreatmentDescription(Aws::String&& value) { m_treatmentDescriptionHasBeenSet = true; m_treatmentDescription = std::move(value); }
115 inline void SetTreatmentDescription(const char* value) { m_treatmentDescriptionHasBeenSet = true; m_treatmentDescription.assign(value); }
117 inline WriteTreatmentResource& WithTreatmentDescription(Aws::String&& value) { SetTreatmentDescription(std::move(value)); return *this;}
118 inline WriteTreatmentResource& WithTreatmentDescription(const char* value) { SetTreatmentDescription(value); return *this;}
120
122
125 inline const Aws::String& GetTreatmentName() const{ return m_treatmentName; }
126 inline bool TreatmentNameHasBeenSet() const { return m_treatmentNameHasBeenSet; }
127 inline void SetTreatmentName(const Aws::String& value) { m_treatmentNameHasBeenSet = true; m_treatmentName = value; }
128 inline void SetTreatmentName(Aws::String&& value) { m_treatmentNameHasBeenSet = true; m_treatmentName = std::move(value); }
129 inline void SetTreatmentName(const char* value) { m_treatmentNameHasBeenSet = true; m_treatmentName.assign(value); }
130 inline WriteTreatmentResource& WithTreatmentName(const Aws::String& value) { SetTreatmentName(value); return *this;}
131 inline WriteTreatmentResource& WithTreatmentName(Aws::String&& value) { SetTreatmentName(std::move(value)); return *this;}
132 inline WriteTreatmentResource& WithTreatmentName(const char* value) { SetTreatmentName(value); return *this;}
134 private:
135
136 CustomDeliveryConfiguration m_customDeliveryConfiguration;
137 bool m_customDeliveryConfigurationHasBeenSet = false;
138
139 MessageConfiguration m_messageConfiguration;
140 bool m_messageConfigurationHasBeenSet = false;
141
142 Schedule m_schedule;
143 bool m_scheduleHasBeenSet = false;
144
145 int m_sizePercent;
146 bool m_sizePercentHasBeenSet = false;
147
148 TemplateConfiguration m_templateConfiguration;
149 bool m_templateConfigurationHasBeenSet = false;
150
151 Aws::String m_treatmentDescription;
152 bool m_treatmentDescriptionHasBeenSet = false;
153
154 Aws::String m_treatmentName;
155 bool m_treatmentNameHasBeenSet = false;
156 };
157
158} // namespace Model
159} // namespace Pinpoint
160} // namespace Aws
WriteTreatmentResource & WithTreatmentName(const Aws::String &value)
WriteTreatmentResource & WithSchedule(Schedule &&value)
WriteTreatmentResource & WithTreatmentDescription(const Aws::String &value)
void SetCustomDeliveryConfiguration(const CustomDeliveryConfiguration &value)
WriteTreatmentResource & WithSizePercent(int value)
WriteTreatmentResource & WithTreatmentName(const char *value)
WriteTreatmentResource & WithTemplateConfiguration(TemplateConfiguration &&value)
WriteTreatmentResource & WithTreatmentDescription(const char *value)
void SetTemplateConfiguration(TemplateConfiguration &&value)
AWS_PINPOINT_API WriteTreatmentResource(Aws::Utils::Json::JsonView jsonValue)
void SetTreatmentDescription(const Aws::String &value)
const MessageConfiguration & GetMessageConfiguration() const
const TemplateConfiguration & GetTemplateConfiguration() const
const CustomDeliveryConfiguration & GetCustomDeliveryConfiguration() const
void SetMessageConfiguration(MessageConfiguration &&value)
void SetMessageConfiguration(const MessageConfiguration &value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
WriteTreatmentResource & WithCustomDeliveryConfiguration(const CustomDeliveryConfiguration &value)
AWS_PINPOINT_API WriteTreatmentResource & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetTemplateConfiguration(const TemplateConfiguration &value)
WriteTreatmentResource & WithTreatmentName(Aws::String &&value)
WriteTreatmentResource & WithMessageConfiguration(MessageConfiguration &&value)
WriteTreatmentResource & WithMessageConfiguration(const MessageConfiguration &value)
WriteTreatmentResource & WithTreatmentDescription(Aws::String &&value)
void SetCustomDeliveryConfiguration(CustomDeliveryConfiguration &&value)
WriteTreatmentResource & WithSchedule(const Schedule &value)
WriteTreatmentResource & WithCustomDeliveryConfiguration(CustomDeliveryConfiguration &&value)
WriteTreatmentResource & WithTemplateConfiguration(const TemplateConfiguration &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue