AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetCluster(const Aws::String& value) { m_clusterHasBeenSet = true; m_cluster = value; }
48 inline void SetCluster(Aws::String&& value) { m_clusterHasBeenSet = true; m_cluster = std::move(value); }
49 inline void SetCluster(const char* value) { m_clusterHasBeenSet = true; m_cluster.assign(value); }
50 inline ListServicesRequest& WithCluster(const Aws::String& value) { SetCluster(value); return *this;}
51 inline ListServicesRequest& WithCluster(Aws::String&& value) { SetCluster(std::move(value)); return *this;}
52 inline ListServicesRequest& WithCluster(const char* value) { SetCluster(value); return *this;}
54
56
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 ListServicesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
71 inline ListServicesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
72 inline ListServicesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
74
76
86 inline int GetMaxResults() const{ return m_maxResults; }
87 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
88 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
89 inline ListServicesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
91
93
97 inline const LaunchType& GetLaunchType() const{ return m_launchType; }
98 inline bool LaunchTypeHasBeenSet() const { return m_launchTypeHasBeenSet; }
99 inline void SetLaunchType(const LaunchType& value) { m_launchTypeHasBeenSet = true; m_launchType = value; }
100 inline void SetLaunchType(LaunchType&& value) { m_launchTypeHasBeenSet = true; m_launchType = std::move(value); }
101 inline ListServicesRequest& WithLaunchType(const LaunchType& value) { SetLaunchType(value); return *this;}
102 inline ListServicesRequest& WithLaunchType(LaunchType&& value) { SetLaunchType(std::move(value)); return *this;}
104
106
110 inline const SchedulingStrategy& GetSchedulingStrategy() const{ return m_schedulingStrategy; }
111 inline bool SchedulingStrategyHasBeenSet() const { return m_schedulingStrategyHasBeenSet; }
112 inline void SetSchedulingStrategy(const SchedulingStrategy& value) { m_schedulingStrategyHasBeenSet = true; m_schedulingStrategy = value; }
113 inline void SetSchedulingStrategy(SchedulingStrategy&& value) { m_schedulingStrategyHasBeenSet = true; m_schedulingStrategy = std::move(value); }
115 inline ListServicesRequest& WithSchedulingStrategy(SchedulingStrategy&& value) { SetSchedulingStrategy(std::move(value)); return *this;}
117 private:
118
119 Aws::String m_cluster;
120 bool m_clusterHasBeenSet = false;
121
122 Aws::String m_nextToken;
123 bool m_nextTokenHasBeenSet = false;
124
125 int m_maxResults;
126 bool m_maxResultsHasBeenSet = false;
127
128 LaunchType m_launchType;
129 bool m_launchTypeHasBeenSet = false;
130
131 SchedulingStrategy m_schedulingStrategy;
132 bool m_schedulingStrategyHasBeenSet = false;
133 };
134
135} // namespace Model
136} // namespace ECS
137} // namespace Aws
void SetNextToken(const Aws::String &value)
ListServicesRequest & WithCluster(Aws::String &&value)
AWS_ECS_API Aws::String SerializePayload() const override
ListServicesRequest & WithCluster(const char *value)
ListServicesRequest & WithMaxResults(int value)
const LaunchType & GetLaunchType() const
const SchedulingStrategy & GetSchedulingStrategy() const
ListServicesRequest & WithNextToken(const Aws::String &value)
ListServicesRequest & WithNextToken(const char *value)
void SetLaunchType(const LaunchType &value)
ListServicesRequest & WithLaunchType(LaunchType &&value)
ListServicesRequest & WithSchedulingStrategy(SchedulingStrategy &&value)
const Aws::String & GetNextToken() const
void SetSchedulingStrategy(SchedulingStrategy &&value)
const Aws::String & GetCluster() const
virtual const char * GetServiceRequestName() const override
void SetCluster(const Aws::String &value)
AWS_ECS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ListServicesRequest & WithSchedulingStrategy(const SchedulingStrategy &value)
void SetSchedulingStrategy(const SchedulingStrategy &value)
ListServicesRequest & WithCluster(const Aws::String &value)
ListServicesRequest & WithNextToken(Aws::String &&value)
ListServicesRequest & WithLaunchType(const LaunchType &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String