AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DescribeDeploymentsRequest.h
1
6#pragma once
7#include <aws/opsworks/OpsWorks_EXPORTS.h>
8#include <aws/opsworks/OpsWorksRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace OpsWorks
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_OPSWORKS_API DescribeDeploymentsRequest() = default;
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_OPSWORKS_API Aws::String SerializePayload() const override;
34
36
37
39
43 inline const Aws::String& GetStackId() const { return m_stackId; }
44 inline bool StackIdHasBeenSet() const { return m_stackIdHasBeenSet; }
45 template<typename StackIdT = Aws::String>
46 void SetStackId(StackIdT&& value) { m_stackIdHasBeenSet = true; m_stackId = std::forward<StackIdT>(value); }
47 template<typename StackIdT = Aws::String>
48 DescribeDeploymentsRequest& WithStackId(StackIdT&& value) { SetStackId(std::forward<StackIdT>(value)); return *this;}
50
52
56 inline const Aws::String& GetAppId() const { return m_appId; }
57 inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
58 template<typename AppIdT = Aws::String>
59 void SetAppId(AppIdT&& value) { m_appIdHasBeenSet = true; m_appId = std::forward<AppIdT>(value); }
60 template<typename AppIdT = Aws::String>
61 DescribeDeploymentsRequest& WithAppId(AppIdT&& value) { SetAppId(std::forward<AppIdT>(value)); return *this;}
63
65
70 inline const Aws::Vector<Aws::String>& GetDeploymentIds() const { return m_deploymentIds; }
71 inline bool DeploymentIdsHasBeenSet() const { return m_deploymentIdsHasBeenSet; }
72 template<typename DeploymentIdsT = Aws::Vector<Aws::String>>
73 void SetDeploymentIds(DeploymentIdsT&& value) { m_deploymentIdsHasBeenSet = true; m_deploymentIds = std::forward<DeploymentIdsT>(value); }
74 template<typename DeploymentIdsT = Aws::Vector<Aws::String>>
75 DescribeDeploymentsRequest& WithDeploymentIds(DeploymentIdsT&& value) { SetDeploymentIds(std::forward<DeploymentIdsT>(value)); return *this;}
76 template<typename DeploymentIdsT = Aws::String>
77 DescribeDeploymentsRequest& AddDeploymentIds(DeploymentIdsT&& value) { m_deploymentIdsHasBeenSet = true; m_deploymentIds.emplace_back(std::forward<DeploymentIdsT>(value)); return *this; }
79 private:
80
81 Aws::String m_stackId;
82 bool m_stackIdHasBeenSet = false;
83
84 Aws::String m_appId;
85 bool m_appIdHasBeenSet = false;
86
87 Aws::Vector<Aws::String> m_deploymentIds;
88 bool m_deploymentIdsHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace OpsWorks
93} // namespace Aws
DescribeDeploymentsRequest & WithAppId(AppIdT &&value)
DescribeDeploymentsRequest & WithStackId(StackIdT &&value)
AWS_OPSWORKS_API Aws::String SerializePayload() const override
DescribeDeploymentsRequest & WithDeploymentIds(DeploymentIdsT &&value)
const Aws::Vector< Aws::String > & GetDeploymentIds() const
virtual const char * GetServiceRequestName() const override
DescribeDeploymentsRequest & AddDeploymentIds(DeploymentIdsT &&value)
AWS_OPSWORKS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_OPSWORKS_API DescribeDeploymentsRequest()=default
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