AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
StartMergeCasesRequest.h
1
6#pragma once
7#include <aws/connectcases/ConnectCasesRequest.h>
8#include <aws/connectcases/ConnectCases_EXPORTS.h>
9#include <aws/connectcases/model/FieldsConfiguration.h>
10#include <aws/connectcases/model/RelatedItemsConfiguration.h>
11#include <aws/connectcases/model/UserUnion.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14
15#include <utility>
16
17namespace Aws {
18namespace ConnectCases {
19namespace Model {
20
24 public:
25 AWS_CONNECTCASES_API StartMergeCasesRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "StartMergeCases"; }
32
33 AWS_CONNECTCASES_API Aws::String SerializePayload() const override;
34
36
39 inline const Aws::String& GetDomainId() const { return m_domainId; }
40 inline bool DomainIdHasBeenSet() const { return m_domainIdHasBeenSet; }
41 template <typename DomainIdT = Aws::String>
42 void SetDomainId(DomainIdT&& value) {
43 m_domainIdHasBeenSet = true;
44 m_domainId = std::forward<DomainIdT>(value);
45 }
46 template <typename DomainIdT = Aws::String>
48 SetDomainId(std::forward<DomainIdT>(value));
49 return *this;
50 }
52
54
59 inline const Aws::String& GetCaseId() const { return m_caseId; }
60 inline bool CaseIdHasBeenSet() const { return m_caseIdHasBeenSet; }
61 template <typename CaseIdT = Aws::String>
62 void SetCaseId(CaseIdT&& value) {
63 m_caseIdHasBeenSet = true;
64 m_caseId = std::forward<CaseIdT>(value);
65 }
66 template <typename CaseIdT = Aws::String>
68 SetCaseId(std::forward<CaseIdT>(value));
69 return *this;
70 }
72
74
79 inline const Aws::Vector<Aws::String>& GetSecondaryCaseIds() const { return m_secondaryCaseIds; }
80 inline bool SecondaryCaseIdsHasBeenSet() const { return m_secondaryCaseIdsHasBeenSet; }
81 template <typename SecondaryCaseIdsT = Aws::Vector<Aws::String>>
82 void SetSecondaryCaseIds(SecondaryCaseIdsT&& value) {
83 m_secondaryCaseIdsHasBeenSet = true;
84 m_secondaryCaseIds = std::forward<SecondaryCaseIdsT>(value);
85 }
86 template <typename SecondaryCaseIdsT = Aws::Vector<Aws::String>>
87 StartMergeCasesRequest& WithSecondaryCaseIds(SecondaryCaseIdsT&& value) {
88 SetSecondaryCaseIds(std::forward<SecondaryCaseIdsT>(value));
89 return *this;
90 }
91 template <typename SecondaryCaseIdsT = Aws::String>
92 StartMergeCasesRequest& AddSecondaryCaseIds(SecondaryCaseIdsT&& value) {
93 m_secondaryCaseIdsHasBeenSet = true;
94 m_secondaryCaseIds.emplace_back(std::forward<SecondaryCaseIdsT>(value));
95 return *this;
96 }
98
100
118 inline const Aws::Vector<FieldsConfiguration>& GetFieldsConfiguration() const { return m_fieldsConfiguration; }
119 inline bool FieldsConfigurationHasBeenSet() const { return m_fieldsConfigurationHasBeenSet; }
120 template <typename FieldsConfigurationT = Aws::Vector<FieldsConfiguration>>
121 void SetFieldsConfiguration(FieldsConfigurationT&& value) {
122 m_fieldsConfigurationHasBeenSet = true;
123 m_fieldsConfiguration = std::forward<FieldsConfigurationT>(value);
124 }
125 template <typename FieldsConfigurationT = Aws::Vector<FieldsConfiguration>>
126 StartMergeCasesRequest& WithFieldsConfiguration(FieldsConfigurationT&& value) {
127 SetFieldsConfiguration(std::forward<FieldsConfigurationT>(value));
128 return *this;
129 }
130 template <typename FieldsConfigurationT = FieldsConfiguration>
131 StartMergeCasesRequest& AddFieldsConfiguration(FieldsConfigurationT&& value) {
132 m_fieldsConfigurationHasBeenSet = true;
133 m_fieldsConfiguration.emplace_back(std::forward<FieldsConfigurationT>(value));
134 return *this;
135 }
137
139
146 inline const RelatedItemsConfiguration& GetRelatedItemsConfiguration() const { return m_relatedItemsConfiguration; }
147 inline bool RelatedItemsConfigurationHasBeenSet() const { return m_relatedItemsConfigurationHasBeenSet; }
148 template <typename RelatedItemsConfigurationT = RelatedItemsConfiguration>
149 void SetRelatedItemsConfiguration(RelatedItemsConfigurationT&& value) {
150 m_relatedItemsConfigurationHasBeenSet = true;
151 m_relatedItemsConfiguration = std::forward<RelatedItemsConfigurationT>(value);
152 }
153 template <typename RelatedItemsConfigurationT = RelatedItemsConfiguration>
154 StartMergeCasesRequest& WithRelatedItemsConfiguration(RelatedItemsConfigurationT&& value) {
155 SetRelatedItemsConfiguration(std::forward<RelatedItemsConfigurationT>(value));
156 return *this;
157 }
159
161
167 inline const UserUnion& GetPerformedBy() const { return m_performedBy; }
168 inline bool PerformedByHasBeenSet() const { return m_performedByHasBeenSet; }
169 template <typename PerformedByT = UserUnion>
170 void SetPerformedBy(PerformedByT&& value) {
171 m_performedByHasBeenSet = true;
172 m_performedBy = std::forward<PerformedByT>(value);
173 }
174 template <typename PerformedByT = UserUnion>
176 SetPerformedBy(std::forward<PerformedByT>(value));
177 return *this;
178 }
180 private:
181 Aws::String m_domainId;
182
183 Aws::String m_caseId;
184
185 Aws::Vector<Aws::String> m_secondaryCaseIds;
186
187 Aws::Vector<FieldsConfiguration> m_fieldsConfiguration;
188
189 RelatedItemsConfiguration m_relatedItemsConfiguration;
190
191 UserUnion m_performedBy;
192 bool m_domainIdHasBeenSet = false;
193 bool m_caseIdHasBeenSet = false;
194 bool m_secondaryCaseIdsHasBeenSet = false;
195 bool m_fieldsConfigurationHasBeenSet = false;
196 bool m_relatedItemsConfigurationHasBeenSet = false;
197 bool m_performedByHasBeenSet = false;
198};
199
200} // namespace Model
201} // namespace ConnectCases
202} // namespace Aws
AWS_CONNECTCASES_API Aws::String SerializePayload() const override
StartMergeCasesRequest & WithFieldsConfiguration(FieldsConfigurationT &&value)
StartMergeCasesRequest & WithSecondaryCaseIds(SecondaryCaseIdsT &&value)
const Aws::Vector< FieldsConfiguration > & GetFieldsConfiguration() const
const Aws::Vector< Aws::String > & GetSecondaryCaseIds() const
StartMergeCasesRequest & AddFieldsConfiguration(FieldsConfigurationT &&value)
StartMergeCasesRequest & WithPerformedBy(PerformedByT &&value)
StartMergeCasesRequest & AddSecondaryCaseIds(SecondaryCaseIdsT &&value)
const RelatedItemsConfiguration & GetRelatedItemsConfiguration() const
StartMergeCasesRequest & WithRelatedItemsConfiguration(RelatedItemsConfigurationT &&value)
StartMergeCasesRequest & WithCaseId(CaseIdT &&value)
void SetRelatedItemsConfiguration(RelatedItemsConfigurationT &&value)
virtual const char * GetServiceRequestName() const override
void SetFieldsConfiguration(FieldsConfigurationT &&value)
StartMergeCasesRequest & WithDomainId(DomainIdT &&value)
AWS_CONNECTCASES_API StartMergeCasesRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector