AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ListTaskDefinitionsRequest.h
1
6#pragma once
7#include <aws/ecs/ECS_EXPORTS.h>
8#include <aws/ecs/ECSRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ecs/model/TaskDefinitionStatus.h>
11#include <aws/ecs/model/SortOrder.h>
12#include <utility>
13
14namespace Aws
15{
16namespace ECS
17{
18namespace Model
19{
20
24 {
25 public:
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 "ListTaskDefinitions"; }
33
34 AWS_ECS_API Aws::String SerializePayload() const override;
35
37
38
40
45 inline const Aws::String& GetFamilyPrefix() const{ return m_familyPrefix; }
46 inline bool FamilyPrefixHasBeenSet() const { return m_familyPrefixHasBeenSet; }
47 inline void SetFamilyPrefix(const Aws::String& value) { m_familyPrefixHasBeenSet = true; m_familyPrefix = value; }
48 inline void SetFamilyPrefix(Aws::String&& value) { m_familyPrefixHasBeenSet = true; m_familyPrefix = std::move(value); }
49 inline void SetFamilyPrefix(const char* value) { m_familyPrefixHasBeenSet = true; m_familyPrefix.assign(value); }
50 inline ListTaskDefinitionsRequest& WithFamilyPrefix(const Aws::String& value) { SetFamilyPrefix(value); return *this;}
51 inline ListTaskDefinitionsRequest& WithFamilyPrefix(Aws::String&& value) { SetFamilyPrefix(std::move(value)); return *this;}
52 inline ListTaskDefinitionsRequest& WithFamilyPrefix(const char* value) { SetFamilyPrefix(value); return *this;}
54
56
64 inline const TaskDefinitionStatus& GetStatus() const{ return m_status; }
65 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
66 inline void SetStatus(const TaskDefinitionStatus& value) { m_statusHasBeenSet = true; m_status = value; }
67 inline void SetStatus(TaskDefinitionStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
68 inline ListTaskDefinitionsRequest& WithStatus(const TaskDefinitionStatus& value) { SetStatus(value); return *this;}
69 inline ListTaskDefinitionsRequest& WithStatus(TaskDefinitionStatus&& value) { SetStatus(std::move(value)); return *this;}
71
73
82 inline const SortOrder& GetSort() const{ return m_sort; }
83 inline bool SortHasBeenSet() const { return m_sortHasBeenSet; }
84 inline void SetSort(const SortOrder& value) { m_sortHasBeenSet = true; m_sort = value; }
85 inline void SetSort(SortOrder&& value) { m_sortHasBeenSet = true; m_sort = std::move(value); }
86 inline ListTaskDefinitionsRequest& WithSort(const SortOrder& value) { SetSort(value); return *this;}
87 inline ListTaskDefinitionsRequest& WithSort(SortOrder&& value) { SetSort(std::move(value)); return *this;}
89
91
100 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
101 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
102 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
103 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
104 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
105 inline ListTaskDefinitionsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
106 inline ListTaskDefinitionsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
107 inline ListTaskDefinitionsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
109
111
122 inline int GetMaxResults() const{ return m_maxResults; }
123 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
124 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
125 inline ListTaskDefinitionsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
127 private:
128
129 Aws::String m_familyPrefix;
130 bool m_familyPrefixHasBeenSet = false;
131
132 TaskDefinitionStatus m_status;
133 bool m_statusHasBeenSet = false;
134
135 SortOrder m_sort;
136 bool m_sortHasBeenSet = false;
137
138 Aws::String m_nextToken;
139 bool m_nextTokenHasBeenSet = false;
140
141 int m_maxResults;
142 bool m_maxResultsHasBeenSet = false;
143 };
144
145} // namespace Model
146} // namespace ECS
147} // namespace Aws
ListTaskDefinitionsRequest & WithNextToken(const Aws::String &value)
ListTaskDefinitionsRequest & WithStatus(const TaskDefinitionStatus &value)
AWS_ECS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetStatus(const TaskDefinitionStatus &value)
ListTaskDefinitionsRequest & WithMaxResults(int value)
ListTaskDefinitionsRequest & WithNextToken(Aws::String &&value)
ListTaskDefinitionsRequest & WithSort(const SortOrder &value)
const TaskDefinitionStatus & GetStatus() const
ListTaskDefinitionsRequest & WithFamilyPrefix(const char *value)
ListTaskDefinitionsRequest & WithNextToken(const char *value)
ListTaskDefinitionsRequest & WithSort(SortOrder &&value)
virtual const char * GetServiceRequestName() const override
ListTaskDefinitionsRequest & WithFamilyPrefix(const Aws::String &value)
AWS_ECS_API Aws::String SerializePayload() const override
ListTaskDefinitionsRequest & WithStatus(TaskDefinitionStatus &&value)
ListTaskDefinitionsRequest & WithFamilyPrefix(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String