AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ListServiceDeploymentsRequest.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/core/utils/memory/stl/AWSVector.h>
11#include <aws/ecs/model/CreatedAt.h>
12#include <aws/ecs/model/ServiceDeploymentStatus.h>
13#include <utility>
14
15namespace Aws
16{
17namespace ECS
18{
19namespace Model
20{
21
25 {
26 public:
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "ListServiceDeployments"; }
34
35 AWS_ECS_API Aws::String SerializePayload() const override;
36
38
39
41
44 inline const Aws::String& GetService() const{ return m_service; }
45 inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; }
46 inline void SetService(const Aws::String& value) { m_serviceHasBeenSet = true; m_service = value; }
47 inline void SetService(Aws::String&& value) { m_serviceHasBeenSet = true; m_service = std::move(value); }
48 inline void SetService(const char* value) { m_serviceHasBeenSet = true; m_service.assign(value); }
49 inline ListServiceDeploymentsRequest& WithService(const Aws::String& value) { SetService(value); return *this;}
50 inline ListServiceDeploymentsRequest& WithService(Aws::String&& value) { SetService(std::move(value)); return *this;}
51 inline ListServiceDeploymentsRequest& WithService(const char* value) { SetService(value); return *this;}
53
55
62 inline const Aws::String& GetCluster() const{ return m_cluster; }
63 inline bool ClusterHasBeenSet() const { return m_clusterHasBeenSet; }
64 inline void SetCluster(const Aws::String& value) { m_clusterHasBeenSet = true; m_cluster = value; }
65 inline void SetCluster(Aws::String&& value) { m_clusterHasBeenSet = true; m_cluster = std::move(value); }
66 inline void SetCluster(const char* value) { m_clusterHasBeenSet = true; m_cluster.assign(value); }
67 inline ListServiceDeploymentsRequest& WithCluster(const Aws::String& value) { SetCluster(value); return *this;}
68 inline ListServiceDeploymentsRequest& WithCluster(Aws::String&& value) { SetCluster(std::move(value)); return *this;}
69 inline ListServiceDeploymentsRequest& WithCluster(const char* value) { SetCluster(value); return *this;}
71
73
77 inline const Aws::Vector<ServiceDeploymentStatus>& GetStatus() const{ return m_status; }
78 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
79 inline void SetStatus(const Aws::Vector<ServiceDeploymentStatus>& value) { m_statusHasBeenSet = true; m_status = value; }
80 inline void SetStatus(Aws::Vector<ServiceDeploymentStatus>&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
83 inline ListServiceDeploymentsRequest& AddStatus(const ServiceDeploymentStatus& value) { m_statusHasBeenSet = true; m_status.push_back(value); return *this; }
84 inline ListServiceDeploymentsRequest& AddStatus(ServiceDeploymentStatus&& value) { m_statusHasBeenSet = true; m_status.push_back(std::move(value)); return *this; }
86
88
93 inline const CreatedAt& GetCreatedAt() const{ return m_createdAt; }
94 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
95 inline void SetCreatedAt(const CreatedAt& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
96 inline void SetCreatedAt(CreatedAt&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
97 inline ListServiceDeploymentsRequest& WithCreatedAt(const CreatedAt& value) { SetCreatedAt(value); return *this;}
98 inline ListServiceDeploymentsRequest& WithCreatedAt(CreatedAt&& value) { SetCreatedAt(std::move(value)); return *this;}
100
102
109 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
110 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
111 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
112 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
113 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
114 inline ListServiceDeploymentsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
115 inline ListServiceDeploymentsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
116 inline ListServiceDeploymentsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
118
120
132 inline int GetMaxResults() const{ return m_maxResults; }
133 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
134 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
135 inline ListServiceDeploymentsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
137 private:
138
139 Aws::String m_service;
140 bool m_serviceHasBeenSet = false;
141
142 Aws::String m_cluster;
143 bool m_clusterHasBeenSet = false;
144
146 bool m_statusHasBeenSet = false;
147
148 CreatedAt m_createdAt;
149 bool m_createdAtHasBeenSet = false;
150
151 Aws::String m_nextToken;
152 bool m_nextTokenHasBeenSet = false;
153
154 int m_maxResults;
155 bool m_maxResultsHasBeenSet = false;
156 };
157
158} // namespace Model
159} // namespace ECS
160} // namespace Aws
void SetStatus(Aws::Vector< ServiceDeploymentStatus > &&value)
ListServiceDeploymentsRequest & WithCreatedAt(const CreatedAt &value)
ListServiceDeploymentsRequest & WithService(const char *value)
ListServiceDeploymentsRequest & WithStatus(Aws::Vector< ServiceDeploymentStatus > &&value)
ListServiceDeploymentsRequest & AddStatus(const ServiceDeploymentStatus &value)
const Aws::Vector< ServiceDeploymentStatus > & GetStatus() const
ListServiceDeploymentsRequest & WithNextToken(Aws::String &&value)
ListServiceDeploymentsRequest & WithCluster(const Aws::String &value)
ListServiceDeploymentsRequest & WithCreatedAt(CreatedAt &&value)
ListServiceDeploymentsRequest & WithService(const Aws::String &value)
ListServiceDeploymentsRequest & WithMaxResults(int value)
AWS_ECS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetStatus(const Aws::Vector< ServiceDeploymentStatus > &value)
ListServiceDeploymentsRequest & AddStatus(ServiceDeploymentStatus &&value)
ListServiceDeploymentsRequest & WithStatus(const Aws::Vector< ServiceDeploymentStatus > &value)
ListServiceDeploymentsRequest & WithCluster(Aws::String &&value)
ListServiceDeploymentsRequest & WithService(Aws::String &&value)
ListServiceDeploymentsRequest & WithNextToken(const Aws::String &value)
ListServiceDeploymentsRequest & WithCluster(const char *value)
ListServiceDeploymentsRequest & WithNextToken(const char *value)
virtual const char * GetServiceRequestName() const override
AWS_ECS_API Aws::String SerializePayload() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector