AWS SDK for C++  1.9.108
AWS SDK for C++
DescribeDeploymentsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace OpsWorks
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "DescribeDeployments"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
42  inline const Aws::String& GetStackId() const{ return m_stackId; }
43 
48  inline bool StackIdHasBeenSet() const { return m_stackIdHasBeenSet; }
49 
54  inline void SetStackId(const Aws::String& value) { m_stackIdHasBeenSet = true; m_stackId = value; }
55 
60  inline void SetStackId(Aws::String&& value) { m_stackIdHasBeenSet = true; m_stackId = std::move(value); }
61 
66  inline void SetStackId(const char* value) { m_stackIdHasBeenSet = true; m_stackId.assign(value); }
67 
72  inline DescribeDeploymentsRequest& WithStackId(const Aws::String& value) { SetStackId(value); return *this;}
73 
78  inline DescribeDeploymentsRequest& WithStackId(Aws::String&& value) { SetStackId(std::move(value)); return *this;}
79 
84  inline DescribeDeploymentsRequest& WithStackId(const char* value) { SetStackId(value); return *this;}
85 
86 
91  inline const Aws::String& GetAppId() const{ return m_appId; }
92 
97  inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
98 
103  inline void SetAppId(const Aws::String& value) { m_appIdHasBeenSet = true; m_appId = value; }
104 
109  inline void SetAppId(Aws::String&& value) { m_appIdHasBeenSet = true; m_appId = std::move(value); }
110 
115  inline void SetAppId(const char* value) { m_appIdHasBeenSet = true; m_appId.assign(value); }
116 
121  inline DescribeDeploymentsRequest& WithAppId(const Aws::String& value) { SetAppId(value); return *this;}
122 
127  inline DescribeDeploymentsRequest& WithAppId(Aws::String&& value) { SetAppId(std::move(value)); return *this;}
128 
133  inline DescribeDeploymentsRequest& WithAppId(const char* value) { SetAppId(value); return *this;}
134 
135 
141  inline const Aws::Vector<Aws::String>& GetDeploymentIds() const{ return m_deploymentIds; }
142 
148  inline bool DeploymentIdsHasBeenSet() const { return m_deploymentIdsHasBeenSet; }
149 
155  inline void SetDeploymentIds(const Aws::Vector<Aws::String>& value) { m_deploymentIdsHasBeenSet = true; m_deploymentIds = value; }
156 
162  inline void SetDeploymentIds(Aws::Vector<Aws::String>&& value) { m_deploymentIdsHasBeenSet = true; m_deploymentIds = std::move(value); }
163 
169  inline DescribeDeploymentsRequest& WithDeploymentIds(const Aws::Vector<Aws::String>& value) { SetDeploymentIds(value); return *this;}
170 
176  inline DescribeDeploymentsRequest& WithDeploymentIds(Aws::Vector<Aws::String>&& value) { SetDeploymentIds(std::move(value)); return *this;}
177 
183  inline DescribeDeploymentsRequest& AddDeploymentIds(const Aws::String& value) { m_deploymentIdsHasBeenSet = true; m_deploymentIds.push_back(value); return *this; }
184 
190  inline DescribeDeploymentsRequest& AddDeploymentIds(Aws::String&& value) { m_deploymentIdsHasBeenSet = true; m_deploymentIds.push_back(std::move(value)); return *this; }
191 
197  inline DescribeDeploymentsRequest& AddDeploymentIds(const char* value) { m_deploymentIdsHasBeenSet = true; m_deploymentIds.push_back(value); return *this; }
198 
199  private:
200 
201  Aws::String m_stackId;
202  bool m_stackIdHasBeenSet;
203 
204  Aws::String m_appId;
205  bool m_appIdHasBeenSet;
206 
207  Aws::Vector<Aws::String> m_deploymentIds;
208  bool m_deploymentIdsHasBeenSet;
209  };
210 
211 } // namespace Model
212 } // namespace OpsWorks
213 } // namespace Aws
Aws::OpsWorks::Model::DescribeDeploymentsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::OpsWorks::Model::DescribeDeploymentsRequest::SetAppId
void SetAppId(Aws::String &&value)
Definition: DescribeDeploymentsRequest.h:109
Aws::OpsWorks::Model::DescribeDeploymentsRequest::AddDeploymentIds
DescribeDeploymentsRequest & AddDeploymentIds(const char *value)
Definition: DescribeDeploymentsRequest.h:197
OpsWorks_EXPORTS.h
Aws::OpsWorks::Model::DescribeDeploymentsRequest::GetDeploymentIds
const Aws::Vector< Aws::String > & GetDeploymentIds() const
Definition: DescribeDeploymentsRequest.h:141
Aws::OpsWorks::Model::DescribeDeploymentsRequest::DescribeDeploymentsRequest
DescribeDeploymentsRequest()
Aws::OpsWorks::Model::DescribeDeploymentsRequest::AddDeploymentIds
DescribeDeploymentsRequest & AddDeploymentIds(Aws::String &&value)
Definition: DescribeDeploymentsRequest.h:190
Aws::OpsWorks::Model::DescribeDeploymentsRequest::SetAppId
void SetAppId(const char *value)
Definition: DescribeDeploymentsRequest.h:115
Aws::OpsWorks::Model::DescribeDeploymentsRequest::WithStackId
DescribeDeploymentsRequest & WithStackId(Aws::String &&value)
Definition: DescribeDeploymentsRequest.h:78
Aws::OpsWorks::Model::DescribeDeploymentsRequest::SetStackId
void SetStackId(const char *value)
Definition: DescribeDeploymentsRequest.h:66
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
AWS_OPSWORKS_API
#define AWS_OPSWORKS_API
Definition: OpsWorks_EXPORTS.h:28
Aws::OpsWorks::Model::DescribeDeploymentsRequest::AppIdHasBeenSet
bool AppIdHasBeenSet() const
Definition: DescribeDeploymentsRequest.h:97
Aws::OpsWorks::Model::DescribeDeploymentsRequest::StackIdHasBeenSet
bool StackIdHasBeenSet() const
Definition: DescribeDeploymentsRequest.h:48
Aws::OpsWorks::Model::DescribeDeploymentsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeDeploymentsRequest.h:31
Aws::OpsWorks::OpsWorksRequest
Definition: OpsWorksRequest.h:17
Aws::OpsWorks::Model::DescribeDeploymentsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
OpsWorksRequest.h
Aws::OpsWorks::Model::DescribeDeploymentsRequest::SetDeploymentIds
void SetDeploymentIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeDeploymentsRequest.h:162
Aws::OpsWorks::Model::DescribeDeploymentsRequest::SetStackId
void SetStackId(const Aws::String &value)
Definition: DescribeDeploymentsRequest.h:54
Aws::OpsWorks::Model::DescribeDeploymentsRequest::WithAppId
DescribeDeploymentsRequest & WithAppId(const char *value)
Definition: DescribeDeploymentsRequest.h:133
Aws::OpsWorks::Model::DescribeDeploymentsRequest::GetAppId
const Aws::String & GetAppId() const
Definition: DescribeDeploymentsRequest.h:91
Aws::OpsWorks::Model::DescribeDeploymentsRequest::WithDeploymentIds
DescribeDeploymentsRequest & WithDeploymentIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeDeploymentsRequest.h:176
Aws::OpsWorks::Model::DescribeDeploymentsRequest::WithStackId
DescribeDeploymentsRequest & WithStackId(const Aws::String &value)
Definition: DescribeDeploymentsRequest.h:72
Aws::OpsWorks::Model::DescribeDeploymentsRequest
Definition: DescribeDeploymentsRequest.h:23
AWSString.h
Aws::OpsWorks::Model::DescribeDeploymentsRequest::WithAppId
DescribeDeploymentsRequest & WithAppId(Aws::String &&value)
Definition: DescribeDeploymentsRequest.h:127
Aws::OpsWorks::Model::DescribeDeploymentsRequest::WithStackId
DescribeDeploymentsRequest & WithStackId(const char *value)
Definition: DescribeDeploymentsRequest.h:84
Aws::OpsWorks::Model::DescribeDeploymentsRequest::SetStackId
void SetStackId(Aws::String &&value)
Definition: DescribeDeploymentsRequest.h:60
Aws::OpsWorks::Model::DescribeDeploymentsRequest::DeploymentIdsHasBeenSet
bool DeploymentIdsHasBeenSet() const
Definition: DescribeDeploymentsRequest.h:148
Aws
Definition: AccessManagementClient.h:15
Aws::OpsWorks::Model::DescribeDeploymentsRequest::SetDeploymentIds
void SetDeploymentIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeDeploymentsRequest.h:155
Aws::OpsWorks::Model::DescribeDeploymentsRequest::SetAppId
void SetAppId(const Aws::String &value)
Definition: DescribeDeploymentsRequest.h:103
Aws::OpsWorks::Model::DescribeDeploymentsRequest::WithAppId
DescribeDeploymentsRequest & WithAppId(const Aws::String &value)
Definition: DescribeDeploymentsRequest.h:121
Aws::OpsWorks::Model::DescribeDeploymentsRequest::GetStackId
const Aws::String & GetStackId() const
Definition: DescribeDeploymentsRequest.h:42
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::OpsWorks::Model::DescribeDeploymentsRequest::WithDeploymentIds
DescribeDeploymentsRequest & WithDeploymentIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeDeploymentsRequest.h:169
Aws::OpsWorks::Model::DescribeDeploymentsRequest::AddDeploymentIds
DescribeDeploymentsRequest & AddDeploymentIds(const Aws::String &value)
Definition: DescribeDeploymentsRequest.h:183