AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ListTemplatesRequest.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/core/utils/memory/stl/AWSVector.h>
11#include <aws/connectcases/model/TemplateStatus.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Http
17{
18 class URI;
19} //namespace Http
20namespace ConnectCases
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_CONNECTCASES_API ListTemplatesRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "ListTemplates"; }
37
38 AWS_CONNECTCASES_API Aws::String SerializePayload() const override;
39
40 AWS_CONNECTCASES_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
41
42
44
47 inline const Aws::String& GetDomainId() const { return m_domainId; }
48 inline bool DomainIdHasBeenSet() const { return m_domainIdHasBeenSet; }
49 template<typename DomainIdT = Aws::String>
50 void SetDomainId(DomainIdT&& value) { m_domainIdHasBeenSet = true; m_domainId = std::forward<DomainIdT>(value); }
51 template<typename DomainIdT = Aws::String>
52 ListTemplatesRequest& WithDomainId(DomainIdT&& value) { SetDomainId(std::forward<DomainIdT>(value)); return *this;}
54
56
59 inline int GetMaxResults() const { return m_maxResults; }
60 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
61 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
62 inline ListTemplatesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
64
66
70 inline const Aws::String& GetNextToken() const { return m_nextToken; }
71 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
72 template<typename NextTokenT = Aws::String>
73 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
74 template<typename NextTokenT = Aws::String>
75 ListTemplatesRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
77
79
82 inline const Aws::Vector<TemplateStatus>& GetStatus() const { return m_status; }
83 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
84 template<typename StatusT = Aws::Vector<TemplateStatus>>
85 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
86 template<typename StatusT = Aws::Vector<TemplateStatus>>
87 ListTemplatesRequest& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
88 inline ListTemplatesRequest& AddStatus(TemplateStatus value) { m_statusHasBeenSet = true; m_status.push_back(value); return *this; }
90 private:
91
92 Aws::String m_domainId;
93 bool m_domainIdHasBeenSet = false;
94
95 int m_maxResults{0};
96 bool m_maxResultsHasBeenSet = false;
97
98 Aws::String m_nextToken;
99 bool m_nextTokenHasBeenSet = false;
100
102 bool m_statusHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace ConnectCases
107} // 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