AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ListServicesRequest.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/LaunchType.h>
11#include <aws/ecs/model/SchedulingStrategy.h>
12#include <utility>
13
14namespace Aws
15{
16namespace ECS
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_ECS_API ListServicesRequest() = 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 "ListServices"; }
33
34 AWS_ECS_API Aws::String SerializePayload() const override;
35
37
38
40
45 inline const Aws::String& GetCluster() const { return m_cluster; }
46 inline bool ClusterHasBeenSet() const { return m_clusterHasBeenSet; }
47 template<typename ClusterT = Aws::String>
48 void SetCluster(ClusterT&& value) { m_clusterHasBeenSet = true; m_cluster = std::forward<ClusterT>(value); }
49 template<typename ClusterT = Aws::String>
50 ListServicesRequest& WithCluster(ClusterT&& value) { SetCluster(std::forward<ClusterT>(value)); return *this;}
52
54
63 inline const Aws::String& GetNextToken() const { return m_nextToken; }
64 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
65 template<typename NextTokenT = Aws::String>
66 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
67 template<typename NextTokenT = Aws::String>
68 ListServicesRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
70
72
82 inline int GetMaxResults() const { return m_maxResults; }
83 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
84 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
85 inline ListServicesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
87
89
93 inline LaunchType GetLaunchType() const { return m_launchType; }
94 inline bool LaunchTypeHasBeenSet() const { return m_launchTypeHasBeenSet; }
95 inline void SetLaunchType(LaunchType value) { m_launchTypeHasBeenSet = true; m_launchType = value; }
96 inline ListServicesRequest& WithLaunchType(LaunchType value) { SetLaunchType(value); return *this;}
98
100
104 inline SchedulingStrategy GetSchedulingStrategy() const { return m_schedulingStrategy; }
105 inline bool SchedulingStrategyHasBeenSet() const { return m_schedulingStrategyHasBeenSet; }
106 inline void SetSchedulingStrategy(SchedulingStrategy value) { m_schedulingStrategyHasBeenSet = true; m_schedulingStrategy = value; }
109 private:
110
111 Aws::String m_cluster;
112 bool m_clusterHasBeenSet = false;
113
114 Aws::String m_nextToken;
115 bool m_nextTokenHasBeenSet = false;
116
117 int m_maxResults{0};
118 bool m_maxResultsHasBeenSet = false;
119
120 LaunchType m_launchType{LaunchType::NOT_SET};
121 bool m_launchTypeHasBeenSet = false;
122
124 bool m_schedulingStrategyHasBeenSet = false;
125 };
126
127} // namespace Model
128} // namespace ECS
129} // namespace Aws
AWS_ECS_API Aws::String SerializePayload() const override
AWS_ECS_API ListServicesRequest()=default
ListServicesRequest & WithMaxResults(int value)
void SetSchedulingStrategy(SchedulingStrategy value)
ListServicesRequest & WithCluster(ClusterT &&value)
ListServicesRequest & WithSchedulingStrategy(SchedulingStrategy value)
ListServicesRequest & WithNextToken(NextTokenT &&value)
SchedulingStrategy GetSchedulingStrategy() const
const Aws::String & GetNextToken() const
const Aws::String & GetCluster() const
virtual const char * GetServiceRequestName() const override
AWS_ECS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ListServicesRequest & WithLaunchType(LaunchType value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String