AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
BatchCreateRelatedItemRequest.h
1
6#pragma once
7#include <aws/connectcases/ConnectCasesRequest.h>
8#include <aws/connectcases/ConnectCases_EXPORTS.h>
9#include <aws/connectcases/model/BatchCreateRelatedItemIdentifier.h>
10#include <aws/connectcases/model/RelatedItemInputContent.h>
11#include <aws/connectcases/model/UserUnion.h>
12#include <aws/core/utils/UUID.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15
16#include <utility>
17
18namespace Aws {
19namespace ConnectCases {
20namespace Model {
21
25 public:
26 AWS_CONNECTCASES_API BatchCreateRelatedItemRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "BatchCreateRelatedItem"; }
33
34 AWS_CONNECTCASES_API Aws::String SerializePayload() const override;
35
37
40 inline const Aws::String& GetDomainId() const { return m_domainId; }
41 inline bool DomainIdHasBeenSet() const { return m_domainIdHasBeenSet; }
42 template <typename DomainIdT = Aws::String>
43 void SetDomainId(DomainIdT&& value) {
44 m_domainIdHasBeenSet = true;
45 m_domainId = std::forward<DomainIdT>(value);
46 }
47 template <typename DomainIdT = Aws::String>
49 SetDomainId(std::forward<DomainIdT>(value));
50 return *this;
51 }
53
55
60 inline const RelatedItemInputContent& GetContent() const { return m_content; }
61 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
62 template <typename ContentT = RelatedItemInputContent>
63 void SetContent(ContentT&& value) {
64 m_contentHasBeenSet = true;
65 m_content = std::forward<ContentT>(value);
66 }
67 template <typename ContentT = RelatedItemInputContent>
69 SetContent(std::forward<ContentT>(value));
70 return *this;
71 }
73
75
79 inline const Aws::Vector<BatchCreateRelatedItemIdentifier>& GetCases() const { return m_cases; }
80 inline bool CasesHasBeenSet() const { return m_casesHasBeenSet; }
81 template <typename CasesT = Aws::Vector<BatchCreateRelatedItemIdentifier>>
82 void SetCases(CasesT&& value) {
83 m_casesHasBeenSet = true;
84 m_cases = std::forward<CasesT>(value);
85 }
86 template <typename CasesT = Aws::Vector<BatchCreateRelatedItemIdentifier>>
88 SetCases(std::forward<CasesT>(value));
89 return *this;
90 }
91 template <typename CasesT = BatchCreateRelatedItemIdentifier>
93 m_casesHasBeenSet = true;
94 m_cases.emplace_back(std::forward<CasesT>(value));
95 return *this;
96 }
98
100
103 inline const UserUnion& GetPerformedBy() const { return m_performedBy; }
104 inline bool PerformedByHasBeenSet() const { return m_performedByHasBeenSet; }
105 template <typename PerformedByT = UserUnion>
106 void SetPerformedBy(PerformedByT&& value) {
107 m_performedByHasBeenSet = true;
108 m_performedBy = std::forward<PerformedByT>(value);
109 }
110 template <typename PerformedByT = UserUnion>
112 SetPerformedBy(std::forward<PerformedByT>(value));
113 return *this;
114 }
116
118
128 inline const Aws::String& GetClientToken() const { return m_clientToken; }
129 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
130 template <typename ClientTokenT = Aws::String>
131 void SetClientToken(ClientTokenT&& value) {
132 m_clientTokenHasBeenSet = true;
133 m_clientToken = std::forward<ClientTokenT>(value);
134 }
135 template <typename ClientTokenT = Aws::String>
137 SetClientToken(std::forward<ClientTokenT>(value));
138 return *this;
139 }
141 private:
142 Aws::String m_domainId;
143
144 RelatedItemInputContent m_content;
145
147
148 UserUnion m_performedBy;
149
151 bool m_domainIdHasBeenSet = false;
152 bool m_contentHasBeenSet = false;
153 bool m_casesHasBeenSet = false;
154 bool m_performedByHasBeenSet = false;
155 bool m_clientTokenHasBeenSet = true;
156};
157
158} // namespace Model
159} // namespace ConnectCases
160} // namespace Aws
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector