AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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:
27 AWS_ECS_API ListServiceDeploymentsRequest() = default;
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 template<typename ServiceT = Aws::String>
47 void SetService(ServiceT&& value) { m_serviceHasBeenSet = true; m_service = std::forward<ServiceT>(value); }
48 template<typename ServiceT = Aws::String>
49 ListServiceDeploymentsRequest& WithService(ServiceT&& value) { SetService(std::forward<ServiceT>(value)); return *this;}
51
53
60 inline const Aws::String& GetCluster() const { return m_cluster; }
61 inline bool ClusterHasBeenSet() const { return m_clusterHasBeenSet; }
62 template<typename ClusterT = Aws::String>
63 void SetCluster(ClusterT&& value) { m_clusterHasBeenSet = true; m_cluster = std::forward<ClusterT>(value); }
64 template<typename ClusterT = Aws::String>
65 ListServiceDeploymentsRequest& WithCluster(ClusterT&& value) { SetCluster(std::forward<ClusterT>(value)); return *this;}
67
69
73 inline const Aws::Vector<ServiceDeploymentStatus>& GetStatus() const { return m_status; }
74 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
75 template<typename StatusT = Aws::Vector<ServiceDeploymentStatus>>
76 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
77 template<typename StatusT = Aws::Vector<ServiceDeploymentStatus>>
78 ListServiceDeploymentsRequest& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
79 inline ListServiceDeploymentsRequest& AddStatus(ServiceDeploymentStatus value) { m_statusHasBeenSet = true; m_status.push_back(value); return *this; }
81
83
88 inline const CreatedAt& GetCreatedAt() const { return m_createdAt; }
89 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
90 template<typename CreatedAtT = CreatedAt>
91 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
92 template<typename CreatedAtT = CreatedAt>
93 ListServiceDeploymentsRequest& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
95
97
104 inline const Aws::String& GetNextToken() const { return m_nextToken; }
105 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
106 template<typename NextTokenT = Aws::String>
107 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
108 template<typename NextTokenT = Aws::String>
109 ListServiceDeploymentsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
111
113
125 inline int GetMaxResults() const { return m_maxResults; }
126 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
127 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
128 inline ListServiceDeploymentsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
130 private:
131
132 Aws::String m_service;
133 bool m_serviceHasBeenSet = false;
134
135 Aws::String m_cluster;
136 bool m_clusterHasBeenSet = false;
137
139 bool m_statusHasBeenSet = false;
140
141 CreatedAt m_createdAt;
142 bool m_createdAtHasBeenSet = false;
143
144 Aws::String m_nextToken;
145 bool m_nextTokenHasBeenSet = false;
146
147 int m_maxResults{0};
148 bool m_maxResultsHasBeenSet = false;
149 };
150
151} // namespace Model
152} // namespace ECS
153} // namespace Aws
ListServiceDeploymentsRequest & WithCluster(ClusterT &&value)
ListServiceDeploymentsRequest & WithService(ServiceT &&value)
const Aws::Vector< ServiceDeploymentStatus > & GetStatus() const
ListServiceDeploymentsRequest & AddStatus(ServiceDeploymentStatus value)
ListServiceDeploymentsRequest & WithMaxResults(int value)
AWS_ECS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ListServiceDeploymentsRequest & WithCreatedAt(CreatedAtT &&value)
ListServiceDeploymentsRequest & WithNextToken(NextTokenT &&value)
ListServiceDeploymentsRequest & WithStatus(StatusT &&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