AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetDomainId(const Aws::String& value) { m_domainIdHasBeenSet = true; m_domainId = value; }
50 inline void SetDomainId(Aws::String&& value) { m_domainIdHasBeenSet = true; m_domainId = std::move(value); }
51 inline void SetDomainId(const char* value) { m_domainIdHasBeenSet = true; m_domainId.assign(value); }
52 inline ListTemplatesRequest& WithDomainId(const Aws::String& value) { SetDomainId(value); return *this;}
53 inline ListTemplatesRequest& WithDomainId(Aws::String&& value) { SetDomainId(std::move(value)); return *this;}
54 inline ListTemplatesRequest& WithDomainId(const char* value) { SetDomainId(value); return *this;}
56
58
61 inline int GetMaxResults() const{ return m_maxResults; }
62 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
63 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
64 inline ListTemplatesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
66
68
72 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
73 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
74 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
75 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
76 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
77 inline ListTemplatesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
78 inline ListTemplatesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
79 inline ListTemplatesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
81
83
86 inline const Aws::Vector<TemplateStatus>& GetStatus() const{ return m_status; }
87 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
88 inline void SetStatus(const Aws::Vector<TemplateStatus>& value) { m_statusHasBeenSet = true; m_status = value; }
89 inline void SetStatus(Aws::Vector<TemplateStatus>&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
90 inline ListTemplatesRequest& WithStatus(const Aws::Vector<TemplateStatus>& value) { SetStatus(value); return *this;}
91 inline ListTemplatesRequest& WithStatus(Aws::Vector<TemplateStatus>&& value) { SetStatus(std::move(value)); return *this;}
92 inline ListTemplatesRequest& AddStatus(const TemplateStatus& value) { m_statusHasBeenSet = true; m_status.push_back(value); return *this; }
93 inline ListTemplatesRequest& AddStatus(TemplateStatus&& value) { m_statusHasBeenSet = true; m_status.push_back(std::move(value)); return *this; }
95 private:
96
97 Aws::String m_domainId;
98 bool m_domainIdHasBeenSet = false;
99
100 int m_maxResults;
101 bool m_maxResultsHasBeenSet = false;
102
103 Aws::String m_nextToken;
104 bool m_nextTokenHasBeenSet = false;
105
107 bool m_statusHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace ConnectCases
112} // namespace Aws
ListTemplatesRequest & AddStatus(TemplateStatus &&value)
const Aws::Vector< TemplateStatus > & GetStatus() const
ListTemplatesRequest & WithStatus(Aws::Vector< TemplateStatus > &&value)
ListTemplatesRequest & WithNextToken(const char *value)
ListTemplatesRequest & WithNextToken(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
ListTemplatesRequest & WithDomainId(const char *value)
ListTemplatesRequest & WithStatus(const Aws::Vector< TemplateStatus > &value)
AWS_CONNECTCASES_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
void SetStatus(Aws::Vector< TemplateStatus > &&value)
AWS_CONNECTCASES_API Aws::String SerializePayload() const override
void SetStatus(const Aws::Vector< TemplateStatus > &value)
ListTemplatesRequest & WithDomainId(const Aws::String &value)
ListTemplatesRequest & WithNextToken(Aws::String &&value)
ListTemplatesRequest & AddStatus(const TemplateStatus &value)
ListTemplatesRequest & WithMaxResults(int value)
ListTemplatesRequest & WithDomainId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector