AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ListTaskTemplatesRequest.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/ConnectRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/connect/model/TaskTemplateStatus.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Http
16{
17 class URI;
18} //namespace Http
19namespace Connect
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_CONNECT_API ListTaskTemplatesRequest();
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "ListTaskTemplates"; }
36
37 AWS_CONNECT_API Aws::String SerializePayload() const override;
38
39 AWS_CONNECT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
40
41
43
48 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
49 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
50 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
51 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
52 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
53 inline ListTaskTemplatesRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
54 inline ListTaskTemplatesRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
55 inline ListTaskTemplatesRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
57
59
65 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
66 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
67 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
68 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
69 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
70 inline ListTaskTemplatesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
71 inline ListTaskTemplatesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
72 inline ListTaskTemplatesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
74
76
80 inline int GetMaxResults() const{ return m_maxResults; }
81 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
82 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
83 inline ListTaskTemplatesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
85
87
93 inline const TaskTemplateStatus& GetStatus() const{ return m_status; }
94 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
95 inline void SetStatus(const TaskTemplateStatus& value) { m_statusHasBeenSet = true; m_status = value; }
96 inline void SetStatus(TaskTemplateStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
97 inline ListTaskTemplatesRequest& WithStatus(const TaskTemplateStatus& value) { SetStatus(value); return *this;}
98 inline ListTaskTemplatesRequest& WithStatus(TaskTemplateStatus&& value) { SetStatus(std::move(value)); return *this;}
100
102
105 inline const Aws::String& GetName() const{ return m_name; }
106 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
107 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
108 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
109 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
110 inline ListTaskTemplatesRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
111 inline ListTaskTemplatesRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
112 inline ListTaskTemplatesRequest& WithName(const char* value) { SetName(value); return *this;}
114 private:
115
116 Aws::String m_instanceId;
117 bool m_instanceIdHasBeenSet = false;
118
119 Aws::String m_nextToken;
120 bool m_nextTokenHasBeenSet = false;
121
122 int m_maxResults;
123 bool m_maxResultsHasBeenSet = false;
124
125 TaskTemplateStatus m_status;
126 bool m_statusHasBeenSet = false;
127
128 Aws::String m_name;
129 bool m_nameHasBeenSet = false;
130 };
131
132} // namespace Model
133} // namespace Connect
134} // namespace Aws
ListTaskTemplatesRequest & WithInstanceId(const Aws::String &value)
void SetStatus(const TaskTemplateStatus &value)
AWS_CONNECT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
ListTaskTemplatesRequest & WithMaxResults(int value)
AWS_CONNECT_API Aws::String SerializePayload() const override
ListTaskTemplatesRequest & WithNextToken(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
ListTaskTemplatesRequest & WithNextToken(const Aws::String &value)
ListTaskTemplatesRequest & WithStatus(TaskTemplateStatus &&value)
ListTaskTemplatesRequest & WithInstanceId(Aws::String &&value)
ListTaskTemplatesRequest & WithNextToken(const char *value)
ListTaskTemplatesRequest & WithInstanceId(const char *value)
ListTaskTemplatesRequest & WithName(const char *value)
ListTaskTemplatesRequest & WithName(Aws::String &&value)
ListTaskTemplatesRequest & WithStatus(const TaskTemplateStatus &value)
ListTaskTemplatesRequest & WithName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String