AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
UpdateTemplateRequest.h
1
6#pragma once
7#include <aws/connectcases/ConnectCasesRequest.h>
8#include <aws/connectcases/ConnectCases_EXPORTS.h>
9#include <aws/connectcases/model/LayoutConfiguration.h>
10#include <aws/connectcases/model/RequiredField.h>
11#include <aws/connectcases/model/TagPropagationConfiguration.h>
12#include <aws/connectcases/model/TemplateRule.h>
13#include <aws/connectcases/model/TemplateStatus.h>
14#include <aws/core/utils/memory/stl/AWSString.h>
15#include <aws/core/utils/memory/stl/AWSVector.h>
16
17#include <utility>
18
19namespace Aws {
20namespace ConnectCases {
21namespace Model {
22
26 public:
27 AWS_CONNECTCASES_API UpdateTemplateRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "UpdateTemplate"; }
34
35 AWS_CONNECTCASES_API Aws::String SerializePayload() const override;
36
38
41 inline const Aws::String& GetDomainId() const { return m_domainId; }
42 inline bool DomainIdHasBeenSet() const { return m_domainIdHasBeenSet; }
43 template <typename DomainIdT = Aws::String>
44 void SetDomainId(DomainIdT&& value) {
45 m_domainIdHasBeenSet = true;
46 m_domainId = std::forward<DomainIdT>(value);
47 }
48 template <typename DomainIdT = Aws::String>
49 UpdateTemplateRequest& WithDomainId(DomainIdT&& value) {
50 SetDomainId(std::forward<DomainIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetTemplateId() const { return m_templateId; }
60 inline bool TemplateIdHasBeenSet() const { return m_templateIdHasBeenSet; }
61 template <typename TemplateIdT = Aws::String>
62 void SetTemplateId(TemplateIdT&& value) {
63 m_templateIdHasBeenSet = true;
64 m_templateId = std::forward<TemplateIdT>(value);
65 }
66 template <typename TemplateIdT = Aws::String>
67 UpdateTemplateRequest& WithTemplateId(TemplateIdT&& value) {
68 SetTemplateId(std::forward<TemplateIdT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetName() const { return m_name; }
78 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
79 template <typename NameT = Aws::String>
80 void SetName(NameT&& value) {
81 m_nameHasBeenSet = true;
82 m_name = std::forward<NameT>(value);
83 }
84 template <typename NameT = Aws::String>
86 SetName(std::forward<NameT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetDescription() const { return m_description; }
96 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
97 template <typename DescriptionT = Aws::String>
98 void SetDescription(DescriptionT&& value) {
99 m_descriptionHasBeenSet = true;
100 m_description = std::forward<DescriptionT>(value);
101 }
102 template <typename DescriptionT = Aws::String>
103 UpdateTemplateRequest& WithDescription(DescriptionT&& value) {
104 SetDescription(std::forward<DescriptionT>(value));
105 return *this;
106 }
108
110
113 inline const LayoutConfiguration& GetLayoutConfiguration() const { return m_layoutConfiguration; }
114 inline bool LayoutConfigurationHasBeenSet() const { return m_layoutConfigurationHasBeenSet; }
115 template <typename LayoutConfigurationT = LayoutConfiguration>
116 void SetLayoutConfiguration(LayoutConfigurationT&& value) {
117 m_layoutConfigurationHasBeenSet = true;
118 m_layoutConfiguration = std::forward<LayoutConfigurationT>(value);
119 }
120 template <typename LayoutConfigurationT = LayoutConfiguration>
121 UpdateTemplateRequest& WithLayoutConfiguration(LayoutConfigurationT&& value) {
122 SetLayoutConfiguration(std::forward<LayoutConfigurationT>(value));
123 return *this;
124 }
126
128
132 inline const Aws::Vector<RequiredField>& GetRequiredFields() const { return m_requiredFields; }
133 inline bool RequiredFieldsHasBeenSet() const { return m_requiredFieldsHasBeenSet; }
134 template <typename RequiredFieldsT = Aws::Vector<RequiredField>>
135 void SetRequiredFields(RequiredFieldsT&& value) {
136 m_requiredFieldsHasBeenSet = true;
137 m_requiredFields = std::forward<RequiredFieldsT>(value);
138 }
139 template <typename RequiredFieldsT = Aws::Vector<RequiredField>>
140 UpdateTemplateRequest& WithRequiredFields(RequiredFieldsT&& value) {
141 SetRequiredFields(std::forward<RequiredFieldsT>(value));
142 return *this;
143 }
144 template <typename RequiredFieldsT = RequiredField>
145 UpdateTemplateRequest& AddRequiredFields(RequiredFieldsT&& value) {
146 m_requiredFieldsHasBeenSet = true;
147 m_requiredFields.emplace_back(std::forward<RequiredFieldsT>(value));
148 return *this;
149 }
151
153
156 inline TemplateStatus GetStatus() const { return m_status; }
157 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
158 inline void SetStatus(TemplateStatus value) {
159 m_statusHasBeenSet = true;
160 m_status = value;
161 }
163 SetStatus(value);
164 return *this;
165 }
167
169
174 inline const Aws::Vector<TemplateRule>& GetRules() const { return m_rules; }
175 inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
176 template <typename RulesT = Aws::Vector<TemplateRule>>
177 void SetRules(RulesT&& value) {
178 m_rulesHasBeenSet = true;
179 m_rules = std::forward<RulesT>(value);
180 }
181 template <typename RulesT = Aws::Vector<TemplateRule>>
183 SetRules(std::forward<RulesT>(value));
184 return *this;
185 }
186 template <typename RulesT = TemplateRule>
188 m_rulesHasBeenSet = true;
189 m_rules.emplace_back(std::forward<RulesT>(value));
190 return *this;
191 }
193
195
200 inline const Aws::Vector<TagPropagationConfiguration>& GetTagPropagationConfigurations() const { return m_tagPropagationConfigurations; }
201 inline bool TagPropagationConfigurationsHasBeenSet() const { return m_tagPropagationConfigurationsHasBeenSet; }
202 template <typename TagPropagationConfigurationsT = Aws::Vector<TagPropagationConfiguration>>
203 void SetTagPropagationConfigurations(TagPropagationConfigurationsT&& value) {
204 m_tagPropagationConfigurationsHasBeenSet = true;
205 m_tagPropagationConfigurations = std::forward<TagPropagationConfigurationsT>(value);
206 }
207 template <typename TagPropagationConfigurationsT = Aws::Vector<TagPropagationConfiguration>>
208 UpdateTemplateRequest& WithTagPropagationConfigurations(TagPropagationConfigurationsT&& value) {
209 SetTagPropagationConfigurations(std::forward<TagPropagationConfigurationsT>(value));
210 return *this;
211 }
212 template <typename TagPropagationConfigurationsT = TagPropagationConfiguration>
213 UpdateTemplateRequest& AddTagPropagationConfigurations(TagPropagationConfigurationsT&& value) {
214 m_tagPropagationConfigurationsHasBeenSet = true;
215 m_tagPropagationConfigurations.emplace_back(std::forward<TagPropagationConfigurationsT>(value));
216 return *this;
217 }
219 private:
220 Aws::String m_domainId;
221
222 Aws::String m_templateId;
223
224 Aws::String m_name;
225
226 Aws::String m_description;
227
228 LayoutConfiguration m_layoutConfiguration;
229
230 Aws::Vector<RequiredField> m_requiredFields;
231
233
235
236 Aws::Vector<TagPropagationConfiguration> m_tagPropagationConfigurations;
237 bool m_domainIdHasBeenSet = false;
238 bool m_templateIdHasBeenSet = false;
239 bool m_nameHasBeenSet = false;
240 bool m_descriptionHasBeenSet = false;
241 bool m_layoutConfigurationHasBeenSet = false;
242 bool m_requiredFieldsHasBeenSet = false;
243 bool m_statusHasBeenSet = false;
244 bool m_rulesHasBeenSet = false;
245 bool m_tagPropagationConfigurationsHasBeenSet = false;
246};
247
248} // namespace Model
249} // namespace ConnectCases
250} // namespace Aws
UpdateTemplateRequest & WithRequiredFields(RequiredFieldsT &&value)
const LayoutConfiguration & GetLayoutConfiguration() const
UpdateTemplateRequest & WithName(NameT &&value)
void SetTagPropagationConfigurations(TagPropagationConfigurationsT &&value)
const Aws::Vector< TemplateRule > & GetRules() const
UpdateTemplateRequest & WithDescription(DescriptionT &&value)
UpdateTemplateRequest & WithTemplateId(TemplateIdT &&value)
AWS_CONNECTCASES_API Aws::String SerializePayload() const override
UpdateTemplateRequest & AddRequiredFields(RequiredFieldsT &&value)
AWS_CONNECTCASES_API UpdateTemplateRequest()=default
UpdateTemplateRequest & WithRules(RulesT &&value)
UpdateTemplateRequest & WithLayoutConfiguration(LayoutConfigurationT &&value)
UpdateTemplateRequest & WithTagPropagationConfigurations(TagPropagationConfigurationsT &&value)
UpdateTemplateRequest & WithDomainId(DomainIdT &&value)
UpdateTemplateRequest & AddTagPropagationConfigurations(TagPropagationConfigurationsT &&value)
virtual const char * GetServiceRequestName() const override
UpdateTemplateRequest & WithStatus(TemplateStatus value)
const Aws::Vector< RequiredField > & GetRequiredFields() const
void SetLayoutConfiguration(LayoutConfigurationT &&value)
UpdateTemplateRequest & AddRules(RulesT &&value)
const Aws::Vector< TagPropagationConfiguration > & GetTagPropagationConfigurations() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector