AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
CreateRelatedItemRequest.h
1
6#pragma once
7#include <aws/connectcases/ConnectCasesRequest.h>
8#include <aws/connectcases/ConnectCases_EXPORTS.h>
9#include <aws/connectcases/model/RelatedItemInputContent.h>
10#include <aws/connectcases/model/RelatedItemType.h>
11#include <aws/connectcases/model/UserUnion.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13
14#include <utility>
15
16namespace Aws {
17namespace ConnectCases {
18namespace Model {
19
23 public:
24 AWS_CONNECTCASES_API CreateRelatedItemRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateRelatedItem"; }
31
32 AWS_CONNECTCASES_API Aws::String SerializePayload() const override;
33
35
38 inline const Aws::String& GetDomainId() const { return m_domainId; }
39 inline bool DomainIdHasBeenSet() const { return m_domainIdHasBeenSet; }
40 template <typename DomainIdT = Aws::String>
41 void SetDomainId(DomainIdT&& value) {
42 m_domainIdHasBeenSet = true;
43 m_domainId = std::forward<DomainIdT>(value);
44 }
45 template <typename DomainIdT = Aws::String>
47 SetDomainId(std::forward<DomainIdT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetCaseId() const { return m_caseId; }
57 inline bool CaseIdHasBeenSet() const { return m_caseIdHasBeenSet; }
58 template <typename CaseIdT = Aws::String>
59 void SetCaseId(CaseIdT&& value) {
60 m_caseIdHasBeenSet = true;
61 m_caseId = std::forward<CaseIdT>(value);
62 }
63 template <typename CaseIdT = Aws::String>
65 SetCaseId(std::forward<CaseIdT>(value));
66 return *this;
67 }
69
71
74 inline RelatedItemType GetType() const { return m_type; }
75 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
76 inline void SetType(RelatedItemType value) {
77 m_typeHasBeenSet = true;
78 m_type = value;
79 }
81 SetType(value);
82 return *this;
83 }
85
87
90 inline const RelatedItemInputContent& GetContent() const { return m_content; }
91 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
92 template <typename ContentT = RelatedItemInputContent>
93 void SetContent(ContentT&& value) {
94 m_contentHasBeenSet = true;
95 m_content = std::forward<ContentT>(value);
96 }
97 template <typename ContentT = RelatedItemInputContent>
99 SetContent(std::forward<ContentT>(value));
100 return *this;
101 }
103
105
108 inline const UserUnion& GetPerformedBy() const { return m_performedBy; }
109 inline bool PerformedByHasBeenSet() const { return m_performedByHasBeenSet; }
110 template <typename PerformedByT = UserUnion>
111 void SetPerformedBy(PerformedByT&& value) {
112 m_performedByHasBeenSet = true;
113 m_performedBy = std::forward<PerformedByT>(value);
114 }
115 template <typename PerformedByT = UserUnion>
117 SetPerformedBy(std::forward<PerformedByT>(value));
118 return *this;
119 }
121 private:
122 Aws::String m_domainId;
123
124 Aws::String m_caseId;
125
127
128 RelatedItemInputContent m_content;
129
130 UserUnion m_performedBy;
131 bool m_domainIdHasBeenSet = false;
132 bool m_caseIdHasBeenSet = false;
133 bool m_typeHasBeenSet = false;
134 bool m_contentHasBeenSet = false;
135 bool m_performedByHasBeenSet = false;
136};
137
138} // namespace Model
139} // namespace ConnectCases
140} // namespace Aws
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String