AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetCaseId(const Aws::String& value) { m_caseIdHasBeenSet = true; m_caseId = value; }
45 inline void SetCaseId(Aws::String&& value) { m_caseIdHasBeenSet = true; m_caseId = std::move(value); }
46 inline void SetCaseId(const char* value) { m_caseIdHasBeenSet = true; m_caseId.assign(value); }
47 inline CreateRelatedItemRequest& WithCaseId(const Aws::String& value) { SetCaseId(value); return *this;}
48 inline CreateRelatedItemRequest& WithCaseId(Aws::String&& value) { SetCaseId(std::move(value)); return *this;}
49 inline CreateRelatedItemRequest& WithCaseId(const char* value) { SetCaseId(value); return *this;}
51
53
56 inline const RelatedItemInputContent& GetContent() const{ return m_content; }
57 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
58 inline void SetContent(const RelatedItemInputContent& value) { m_contentHasBeenSet = true; m_content = value; }
59 inline void SetContent(RelatedItemInputContent&& value) { m_contentHasBeenSet = true; m_content = std::move(value); }
60 inline CreateRelatedItemRequest& WithContent(const RelatedItemInputContent& value) { SetContent(value); return *this;}
61 inline CreateRelatedItemRequest& WithContent(RelatedItemInputContent&& value) { SetContent(std::move(value)); return *this;}
63
65
68 inline const Aws::String& GetDomainId() const{ return m_domainId; }
69 inline bool DomainIdHasBeenSet() const { return m_domainIdHasBeenSet; }
70 inline void SetDomainId(const Aws::String& value) { m_domainIdHasBeenSet = true; m_domainId = value; }
71 inline void SetDomainId(Aws::String&& value) { m_domainIdHasBeenSet = true; m_domainId = std::move(value); }
72 inline void SetDomainId(const char* value) { m_domainIdHasBeenSet = true; m_domainId.assign(value); }
73 inline CreateRelatedItemRequest& WithDomainId(const Aws::String& value) { SetDomainId(value); return *this;}
74 inline CreateRelatedItemRequest& WithDomainId(Aws::String&& value) { SetDomainId(std::move(value)); return *this;}
75 inline CreateRelatedItemRequest& WithDomainId(const char* value) { SetDomainId(value); return *this;}
77
79
82 inline const UserUnion& GetPerformedBy() const{ return m_performedBy; }
83 inline bool PerformedByHasBeenSet() const { return m_performedByHasBeenSet; }
84 inline void SetPerformedBy(const UserUnion& value) { m_performedByHasBeenSet = true; m_performedBy = value; }
85 inline void SetPerformedBy(UserUnion&& value) { m_performedByHasBeenSet = true; m_performedBy = std::move(value); }
86 inline CreateRelatedItemRequest& WithPerformedBy(const UserUnion& value) { SetPerformedBy(value); return *this;}
87 inline CreateRelatedItemRequest& WithPerformedBy(UserUnion&& value) { SetPerformedBy(std::move(value)); return *this;}
89
91
94 inline const RelatedItemType& GetType() const{ return m_type; }
95 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
96 inline void SetType(const RelatedItemType& value) { m_typeHasBeenSet = true; m_type = value; }
97 inline void SetType(RelatedItemType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
98 inline CreateRelatedItemRequest& WithType(const RelatedItemType& value) { SetType(value); return *this;}
99 inline CreateRelatedItemRequest& WithType(RelatedItemType&& value) { SetType(std::move(value)); return *this;}
101 private:
102
103 Aws::String m_caseId;
104 bool m_caseIdHasBeenSet = false;
105
106 RelatedItemInputContent m_content;
107 bool m_contentHasBeenSet = false;
108
109 Aws::String m_domainId;
110 bool m_domainIdHasBeenSet = false;
111
112 UserUnion m_performedBy;
113 bool m_performedByHasBeenSet = false;
114
115 RelatedItemType m_type;
116 bool m_typeHasBeenSet = false;
117 };
118
119} // namespace Model
120} // namespace ConnectCases
121} // namespace Aws
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String