AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
ListTemplatesRequest.h
1
6#pragma once
7#include <aws/connectcases/ConnectCasesRequest.h>
8#include <aws/connectcases/ConnectCases_EXPORTS.h>
9#include <aws/connectcases/model/TemplateStatus.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 Http {
17class URI;
18} // namespace Http
19namespace ConnectCases {
20namespace Model {
21
25 public:
26 AWS_CONNECTCASES_API ListTemplatesRequest() = 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 "ListTemplates"; }
33
34 AWS_CONNECTCASES_API Aws::String SerializePayload() const override;
35
36 AWS_CONNECTCASES_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
37
39
42 inline const Aws::String& GetDomainId() const { return m_domainId; }
43 inline bool DomainIdHasBeenSet() const { return m_domainIdHasBeenSet; }
44 template <typename DomainIdT = Aws::String>
45 void SetDomainId(DomainIdT&& value) {
46 m_domainIdHasBeenSet = true;
47 m_domainId = std::forward<DomainIdT>(value);
48 }
49 template <typename DomainIdT = Aws::String>
50 ListTemplatesRequest& WithDomainId(DomainIdT&& value) {
51 SetDomainId(std::forward<DomainIdT>(value));
52 return *this;
53 }
55
57
60 inline int GetMaxResults() const { return m_maxResults; }
61 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
62 inline void SetMaxResults(int value) {
63 m_maxResultsHasBeenSet = true;
64 m_maxResults = value;
65 }
67 SetMaxResults(value);
68 return *this;
69 }
71
73
77 inline const Aws::String& GetNextToken() const { return m_nextToken; }
78 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
79 template <typename NextTokenT = Aws::String>
80 void SetNextToken(NextTokenT&& value) {
81 m_nextTokenHasBeenSet = true;
82 m_nextToken = std::forward<NextTokenT>(value);
83 }
84 template <typename NextTokenT = Aws::String>
85 ListTemplatesRequest& WithNextToken(NextTokenT&& value) {
86 SetNextToken(std::forward<NextTokenT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::Vector<TemplateStatus>& GetStatus() const { return m_status; }
96 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
97 template <typename StatusT = Aws::Vector<TemplateStatus>>
98 void SetStatus(StatusT&& value) {
99 m_statusHasBeenSet = true;
100 m_status = std::forward<StatusT>(value);
101 }
102 template <typename StatusT = Aws::Vector<TemplateStatus>>
104 SetStatus(std::forward<StatusT>(value));
105 return *this;
106 }
108 m_statusHasBeenSet = true;
109 m_status.push_back(value);
110 return *this;
111 }
113 private:
114 Aws::String m_domainId;
115
116 int m_maxResults{0};
117
118 Aws::String m_nextToken;
119
121 bool m_domainIdHasBeenSet = false;
122 bool m_maxResultsHasBeenSet = false;
123 bool m_nextTokenHasBeenSet = false;
124 bool m_statusHasBeenSet = false;
125};
126
127} // namespace Model
128} // namespace ConnectCases
129} // namespace Aws
AWS_CONNECTCASES_API ListTemplatesRequest()=default
const Aws::Vector< TemplateStatus > & GetStatus() const
virtual const char * GetServiceRequestName() const override
ListTemplatesRequest & WithDomainId(DomainIdT &&value)
AWS_CONNECTCASES_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
ListTemplatesRequest & WithNextToken(NextTokenT &&value)
AWS_CONNECTCASES_API Aws::String SerializePayload() const override
ListTemplatesRequest & WithStatus(StatusT &&value)
ListTemplatesRequest & WithMaxResults(int value)
ListTemplatesRequest & AddStatus(TemplateStatus value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector