AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ListDeploymentsRequest.h
1
6#pragma once
7#include <aws/proton/Proton_EXPORTS.h>
8#include <aws/proton/ProtonRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Proton
15{
16namespace Model
17{
18
22 {
23 public:
24 AWS_PROTON_API ListDeploymentsRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "ListDeployments"; }
31
32 AWS_PROTON_API Aws::String SerializePayload() const override;
33
35
36
38
42 inline const Aws::String& GetComponentName() const { return m_componentName; }
43 inline bool ComponentNameHasBeenSet() const { return m_componentNameHasBeenSet; }
44 template<typename ComponentNameT = Aws::String>
45 void SetComponentName(ComponentNameT&& value) { m_componentNameHasBeenSet = true; m_componentName = std::forward<ComponentNameT>(value); }
46 template<typename ComponentNameT = Aws::String>
47 ListDeploymentsRequest& WithComponentName(ComponentNameT&& value) { SetComponentName(std::forward<ComponentNameT>(value)); return *this;}
49
51
55 inline const Aws::String& GetEnvironmentName() const { return m_environmentName; }
56 inline bool EnvironmentNameHasBeenSet() const { return m_environmentNameHasBeenSet; }
57 template<typename EnvironmentNameT = Aws::String>
58 void SetEnvironmentName(EnvironmentNameT&& value) { m_environmentNameHasBeenSet = true; m_environmentName = std::forward<EnvironmentNameT>(value); }
59 template<typename EnvironmentNameT = Aws::String>
60 ListDeploymentsRequest& WithEnvironmentName(EnvironmentNameT&& value) { SetEnvironmentName(std::forward<EnvironmentNameT>(value)); return *this;}
62
64
67 inline int GetMaxResults() const { return m_maxResults; }
68 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
69 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
70 inline ListDeploymentsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
72
74
78 inline const Aws::String& GetNextToken() const { return m_nextToken; }
79 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
80 template<typename NextTokenT = Aws::String>
81 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
82 template<typename NextTokenT = Aws::String>
83 ListDeploymentsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
85
87
91 inline const Aws::String& GetServiceInstanceName() const { return m_serviceInstanceName; }
92 inline bool ServiceInstanceNameHasBeenSet() const { return m_serviceInstanceNameHasBeenSet; }
93 template<typename ServiceInstanceNameT = Aws::String>
94 void SetServiceInstanceName(ServiceInstanceNameT&& value) { m_serviceInstanceNameHasBeenSet = true; m_serviceInstanceName = std::forward<ServiceInstanceNameT>(value); }
95 template<typename ServiceInstanceNameT = Aws::String>
96 ListDeploymentsRequest& WithServiceInstanceName(ServiceInstanceNameT&& value) { SetServiceInstanceName(std::forward<ServiceInstanceNameT>(value)); return *this;}
98
100
104 inline const Aws::String& GetServiceName() const { return m_serviceName; }
105 inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
106 template<typename ServiceNameT = Aws::String>
107 void SetServiceName(ServiceNameT&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::forward<ServiceNameT>(value); }
108 template<typename ServiceNameT = Aws::String>
109 ListDeploymentsRequest& WithServiceName(ServiceNameT&& value) { SetServiceName(std::forward<ServiceNameT>(value)); return *this;}
111 private:
112
113 Aws::String m_componentName;
114 bool m_componentNameHasBeenSet = false;
115
116 Aws::String m_environmentName;
117 bool m_environmentNameHasBeenSet = false;
118
119 int m_maxResults{0};
120 bool m_maxResultsHasBeenSet = false;
121
122 Aws::String m_nextToken;
123 bool m_nextTokenHasBeenSet = false;
124
125 Aws::String m_serviceInstanceName;
126 bool m_serviceInstanceNameHasBeenSet = false;
127
128 Aws::String m_serviceName;
129 bool m_serviceNameHasBeenSet = false;
130 };
131
132} // namespace Model
133} // namespace Proton
134} // namespace Aws
AWS_PROTON_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetServiceInstanceName(ServiceInstanceNameT &&value)
virtual const char * GetServiceRequestName() const override
ListDeploymentsRequest & WithServiceInstanceName(ServiceInstanceNameT &&value)
AWS_PROTON_API Aws::String SerializePayload() const override
ListDeploymentsRequest & WithNextToken(NextTokenT &&value)
ListDeploymentsRequest & WithComponentName(ComponentNameT &&value)
ListDeploymentsRequest & WithMaxResults(int value)
AWS_PROTON_API ListDeploymentsRequest()=default
void SetEnvironmentName(EnvironmentNameT &&value)
ListDeploymentsRequest & WithServiceName(ServiceNameT &&value)
ListDeploymentsRequest & WithEnvironmentName(EnvironmentNameT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String