AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
GetCaseRequest.h
1
6#pragma once
7#include <aws/connectcases/ConnectCasesRequest.h>
8#include <aws/connectcases/ConnectCases_EXPORTS.h>
9#include <aws/connectcases/model/FieldIdentifier.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace ConnectCases {
17namespace Model {
18
22 public:
23 AWS_CONNECTCASES_API GetCaseRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "GetCase"; }
30
31 AWS_CONNECTCASES_API Aws::String SerializePayload() const override;
32
34
37 inline const Aws::String& GetCaseId() const { return m_caseId; }
38 inline bool CaseIdHasBeenSet() const { return m_caseIdHasBeenSet; }
39 template <typename CaseIdT = Aws::String>
40 void SetCaseId(CaseIdT&& value) {
41 m_caseIdHasBeenSet = true;
42 m_caseId = std::forward<CaseIdT>(value);
43 }
44 template <typename CaseIdT = Aws::String>
45 GetCaseRequest& WithCaseId(CaseIdT&& value) {
46 SetCaseId(std::forward<CaseIdT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetDomainId() const { return m_domainId; }
56 inline bool DomainIdHasBeenSet() const { return m_domainIdHasBeenSet; }
57 template <typename DomainIdT = Aws::String>
58 void SetDomainId(DomainIdT&& value) {
59 m_domainIdHasBeenSet = true;
60 m_domainId = std::forward<DomainIdT>(value);
61 }
62 template <typename DomainIdT = Aws::String>
63 GetCaseRequest& WithDomainId(DomainIdT&& value) {
64 SetDomainId(std::forward<DomainIdT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::Vector<FieldIdentifier>& GetFields() const { return m_fields; }
74 inline bool FieldsHasBeenSet() const { return m_fieldsHasBeenSet; }
75 template <typename FieldsT = Aws::Vector<FieldIdentifier>>
76 void SetFields(FieldsT&& value) {
77 m_fieldsHasBeenSet = true;
78 m_fields = std::forward<FieldsT>(value);
79 }
80 template <typename FieldsT = Aws::Vector<FieldIdentifier>>
81 GetCaseRequest& WithFields(FieldsT&& value) {
82 SetFields(std::forward<FieldsT>(value));
83 return *this;
84 }
85 template <typename FieldsT = FieldIdentifier>
86 GetCaseRequest& AddFields(FieldsT&& value) {
87 m_fieldsHasBeenSet = true;
88 m_fields.emplace_back(std::forward<FieldsT>(value));
89 return *this;
90 }
92
94
98 inline const Aws::String& GetNextToken() const { return m_nextToken; }
99 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
100 template <typename NextTokenT = Aws::String>
101 void SetNextToken(NextTokenT&& value) {
102 m_nextTokenHasBeenSet = true;
103 m_nextToken = std::forward<NextTokenT>(value);
104 }
105 template <typename NextTokenT = Aws::String>
106 GetCaseRequest& WithNextToken(NextTokenT&& value) {
107 SetNextToken(std::forward<NextTokenT>(value));
108 return *this;
109 }
111 private:
112 Aws::String m_caseId;
113
114 Aws::String m_domainId;
115
117
118 Aws::String m_nextToken;
119 bool m_caseIdHasBeenSet = false;
120 bool m_domainIdHasBeenSet = false;
121 bool m_fieldsHasBeenSet = false;
122 bool m_nextTokenHasBeenSet = false;
123};
124
125} // namespace Model
126} // namespace ConnectCases
127} // namespace Aws
virtual const char * GetServiceRequestName() const override
const Aws::String & GetDomainId() const
const Aws::String & GetCaseId() const
GetCaseRequest & WithCaseId(CaseIdT &&value)
AWS_CONNECTCASES_API GetCaseRequest()=default
GetCaseRequest & WithFields(FieldsT &&value)
GetCaseRequest & WithNextToken(NextTokenT &&value)
const Aws::Vector< FieldIdentifier > & GetFields() const
GetCaseRequest & AddFields(FieldsT &&value)
AWS_CONNECTCASES_API Aws::String SerializePayload() const override
GetCaseRequest & WithDomainId(DomainIdT &&value)
const Aws::String & GetNextToken() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector