AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateTemplateRequest.h
1
6#pragma once
7#include <aws/connectcases/ConnectCases_EXPORTS.h>
8#include <aws/connectcases/ConnectCasesRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/connectcases/model/LayoutConfiguration.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/connectcases/model/TemplateStatus.h>
13#include <aws/connectcases/model/RequiredField.h>
14#include <utility>
15
16namespace Aws
17{
18namespace ConnectCases
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_CONNECTCASES_API UpdateTemplateRequest();
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "UpdateTemplate"; }
35
36 AWS_CONNECTCASES_API Aws::String SerializePayload() const override;
37
38
40
43 inline const Aws::String& GetDescription() const{ return m_description; }
44 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
45 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
46 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
47 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
48 inline UpdateTemplateRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
49 inline UpdateTemplateRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
50 inline UpdateTemplateRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
52
54
57 inline const Aws::String& GetDomainId() const{ return m_domainId; }
58 inline bool DomainIdHasBeenSet() const { return m_domainIdHasBeenSet; }
59 inline void SetDomainId(const Aws::String& value) { m_domainIdHasBeenSet = true; m_domainId = value; }
60 inline void SetDomainId(Aws::String&& value) { m_domainIdHasBeenSet = true; m_domainId = std::move(value); }
61 inline void SetDomainId(const char* value) { m_domainIdHasBeenSet = true; m_domainId.assign(value); }
62 inline UpdateTemplateRequest& WithDomainId(const Aws::String& value) { SetDomainId(value); return *this;}
63 inline UpdateTemplateRequest& WithDomainId(Aws::String&& value) { SetDomainId(std::move(value)); return *this;}
64 inline UpdateTemplateRequest& WithDomainId(const char* value) { SetDomainId(value); return *this;}
66
68
71 inline const LayoutConfiguration& GetLayoutConfiguration() const{ return m_layoutConfiguration; }
72 inline bool LayoutConfigurationHasBeenSet() const { return m_layoutConfigurationHasBeenSet; }
73 inline void SetLayoutConfiguration(const LayoutConfiguration& value) { m_layoutConfigurationHasBeenSet = true; m_layoutConfiguration = value; }
74 inline void SetLayoutConfiguration(LayoutConfiguration&& value) { m_layoutConfigurationHasBeenSet = true; m_layoutConfiguration = std::move(value); }
78
80
83 inline const Aws::String& GetName() const{ return m_name; }
84 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
85 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
86 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
87 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
88 inline UpdateTemplateRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
89 inline UpdateTemplateRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
90 inline UpdateTemplateRequest& WithName(const char* value) { SetName(value); return *this;}
92
94
98 inline const Aws::Vector<RequiredField>& GetRequiredFields() const{ return m_requiredFields; }
99 inline bool RequiredFieldsHasBeenSet() const { return m_requiredFieldsHasBeenSet; }
100 inline void SetRequiredFields(const Aws::Vector<RequiredField>& value) { m_requiredFieldsHasBeenSet = true; m_requiredFields = value; }
101 inline void SetRequiredFields(Aws::Vector<RequiredField>&& value) { m_requiredFieldsHasBeenSet = true; m_requiredFields = std::move(value); }
104 inline UpdateTemplateRequest& AddRequiredFields(const RequiredField& value) { m_requiredFieldsHasBeenSet = true; m_requiredFields.push_back(value); return *this; }
105 inline UpdateTemplateRequest& AddRequiredFields(RequiredField&& value) { m_requiredFieldsHasBeenSet = true; m_requiredFields.push_back(std::move(value)); return *this; }
107
109
112 inline const TemplateStatus& GetStatus() const{ return m_status; }
113 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
114 inline void SetStatus(const TemplateStatus& value) { m_statusHasBeenSet = true; m_status = value; }
115 inline void SetStatus(TemplateStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
116 inline UpdateTemplateRequest& WithStatus(const TemplateStatus& value) { SetStatus(value); return *this;}
117 inline UpdateTemplateRequest& WithStatus(TemplateStatus&& value) { SetStatus(std::move(value)); return *this;}
119
121
124 inline const Aws::String& GetTemplateId() const{ return m_templateId; }
125 inline bool TemplateIdHasBeenSet() const { return m_templateIdHasBeenSet; }
126 inline void SetTemplateId(const Aws::String& value) { m_templateIdHasBeenSet = true; m_templateId = value; }
127 inline void SetTemplateId(Aws::String&& value) { m_templateIdHasBeenSet = true; m_templateId = std::move(value); }
128 inline void SetTemplateId(const char* value) { m_templateIdHasBeenSet = true; m_templateId.assign(value); }
129 inline UpdateTemplateRequest& WithTemplateId(const Aws::String& value) { SetTemplateId(value); return *this;}
130 inline UpdateTemplateRequest& WithTemplateId(Aws::String&& value) { SetTemplateId(std::move(value)); return *this;}
131 inline UpdateTemplateRequest& WithTemplateId(const char* value) { SetTemplateId(value); return *this;}
133 private:
134
135 Aws::String m_description;
136 bool m_descriptionHasBeenSet = false;
137
138 Aws::String m_domainId;
139 bool m_domainIdHasBeenSet = false;
140
141 LayoutConfiguration m_layoutConfiguration;
142 bool m_layoutConfigurationHasBeenSet = false;
143
144 Aws::String m_name;
145 bool m_nameHasBeenSet = false;
146
147 Aws::Vector<RequiredField> m_requiredFields;
148 bool m_requiredFieldsHasBeenSet = false;
149
150 TemplateStatus m_status;
151 bool m_statusHasBeenSet = false;
152
153 Aws::String m_templateId;
154 bool m_templateIdHasBeenSet = false;
155 };
156
157} // namespace Model
158} // namespace ConnectCases
159} // namespace Aws
UpdateTemplateRequest & WithRequiredFields(Aws::Vector< RequiredField > &&value)
const LayoutConfiguration & GetLayoutConfiguration() const
UpdateTemplateRequest & WithDescription(Aws::String &&value)
UpdateTemplateRequest & WithLayoutConfiguration(const LayoutConfiguration &value)
UpdateTemplateRequest & WithStatus(TemplateStatus &&value)
UpdateTemplateRequest & WithDomainId(const char *value)
UpdateTemplateRequest & AddRequiredFields(RequiredField &&value)
UpdateTemplateRequest & WithDomainId(Aws::String &&value)
AWS_CONNECTCASES_API Aws::String SerializePayload() const override
UpdateTemplateRequest & WithDomainId(const Aws::String &value)
void SetRequiredFields(Aws::Vector< RequiredField > &&value)
UpdateTemplateRequest & WithDescription(const Aws::String &value)
UpdateTemplateRequest & WithStatus(const TemplateStatus &value)
UpdateTemplateRequest & WithLayoutConfiguration(LayoutConfiguration &&value)
UpdateTemplateRequest & WithTemplateId(const char *value)
UpdateTemplateRequest & WithName(const char *value)
void SetLayoutConfiguration(LayoutConfiguration &&value)
UpdateTemplateRequest & WithDescription(const char *value)
void SetRequiredFields(const Aws::Vector< RequiredField > &value)
void SetLayoutConfiguration(const LayoutConfiguration &value)
virtual const char * GetServiceRequestName() const override
UpdateTemplateRequest & WithTemplateId(const Aws::String &value)
UpdateTemplateRequest & WithTemplateId(Aws::String &&value)
UpdateTemplateRequest & WithName(Aws::String &&value)
UpdateTemplateRequest & AddRequiredFields(const RequiredField &value)
UpdateTemplateRequest & WithRequiredFields(const Aws::Vector< RequiredField > &value)
const Aws::Vector< RequiredField > & GetRequiredFields() const
UpdateTemplateRequest & WithName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector