AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateRelatedItemRequest.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/RelatedItemInputContent.h>
11#include <aws/connectcases/model/UserUnion.h>
12#include <aws/connectcases/model/RelatedItemType.h>
13#include <utility>
14
15namespace Aws
16{
17namespace ConnectCases
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_CONNECTCASES_API CreateRelatedItemRequest() = 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 "CreateRelatedItem"; }
34
35 AWS_CONNECTCASES_API Aws::String SerializePayload() const override;
36
37
39
42 inline const Aws::String& GetCaseId() const { return m_caseId; }
43 inline bool CaseIdHasBeenSet() const { return m_caseIdHasBeenSet; }
44 template<typename CaseIdT = Aws::String>
45 void SetCaseId(CaseIdT&& value) { m_caseIdHasBeenSet = true; m_caseId = std::forward<CaseIdT>(value); }
46 template<typename CaseIdT = Aws::String>
47 CreateRelatedItemRequest& WithCaseId(CaseIdT&& value) { SetCaseId(std::forward<CaseIdT>(value)); return *this;}
49
51
54 inline const RelatedItemInputContent& GetContent() const { return m_content; }
55 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
56 template<typename ContentT = RelatedItemInputContent>
57 void SetContent(ContentT&& value) { m_contentHasBeenSet = true; m_content = std::forward<ContentT>(value); }
58 template<typename ContentT = RelatedItemInputContent>
59 CreateRelatedItemRequest& WithContent(ContentT&& value) { SetContent(std::forward<ContentT>(value)); return *this;}
61
63
66 inline const Aws::String& GetDomainId() const { return m_domainId; }
67 inline bool DomainIdHasBeenSet() const { return m_domainIdHasBeenSet; }
68 template<typename DomainIdT = Aws::String>
69 void SetDomainId(DomainIdT&& value) { m_domainIdHasBeenSet = true; m_domainId = std::forward<DomainIdT>(value); }
70 template<typename DomainIdT = Aws::String>
71 CreateRelatedItemRequest& WithDomainId(DomainIdT&& value) { SetDomainId(std::forward<DomainIdT>(value)); return *this;}
73
75
78 inline const UserUnion& GetPerformedBy() const { return m_performedBy; }
79 inline bool PerformedByHasBeenSet() const { return m_performedByHasBeenSet; }
80 template<typename PerformedByT = UserUnion>
81 void SetPerformedBy(PerformedByT&& value) { m_performedByHasBeenSet = true; m_performedBy = std::forward<PerformedByT>(value); }
82 template<typename PerformedByT = UserUnion>
83 CreateRelatedItemRequest& WithPerformedBy(PerformedByT&& value) { SetPerformedBy(std::forward<PerformedByT>(value)); return *this;}
85
87
90 inline RelatedItemType GetType() const { return m_type; }
91 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
92 inline void SetType(RelatedItemType value) { m_typeHasBeenSet = true; m_type = value; }
93 inline CreateRelatedItemRequest& WithType(RelatedItemType value) { SetType(value); return *this;}
95 private:
96
97 Aws::String m_caseId;
98 bool m_caseIdHasBeenSet = false;
99
100 RelatedItemInputContent m_content;
101 bool m_contentHasBeenSet = false;
102
103 Aws::String m_domainId;
104 bool m_domainIdHasBeenSet = false;
105
106 UserUnion m_performedBy;
107 bool m_performedByHasBeenSet = false;
108
110 bool m_typeHasBeenSet = false;
111 };
112
113} // namespace Model
114} // namespace ConnectCases
115} // namespace Aws
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String