AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
BatchGetDeploymentsRequest.h
1
6#pragma once
7#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
8#include <aws/codedeploy/CodeDeployRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace CodeDeploy
16{
17namespace Model
18{
19
27 {
28 public:
29 AWS_CODEDEPLOY_API BatchGetDeploymentsRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "BatchGetDeployments"; }
36
37 AWS_CODEDEPLOY_API Aws::String SerializePayload() const override;
38
40
41
43
47 inline const Aws::Vector<Aws::String>& GetDeploymentIds() const { return m_deploymentIds; }
48 inline bool DeploymentIdsHasBeenSet() const { return m_deploymentIdsHasBeenSet; }
49 template<typename DeploymentIdsT = Aws::Vector<Aws::String>>
50 void SetDeploymentIds(DeploymentIdsT&& value) { m_deploymentIdsHasBeenSet = true; m_deploymentIds = std::forward<DeploymentIdsT>(value); }
51 template<typename DeploymentIdsT = Aws::Vector<Aws::String>>
52 BatchGetDeploymentsRequest& WithDeploymentIds(DeploymentIdsT&& value) { SetDeploymentIds(std::forward<DeploymentIdsT>(value)); return *this;}
53 template<typename DeploymentIdsT = Aws::String>
54 BatchGetDeploymentsRequest& AddDeploymentIds(DeploymentIdsT&& value) { m_deploymentIdsHasBeenSet = true; m_deploymentIds.emplace_back(std::forward<DeploymentIdsT>(value)); return *this; }
56 private:
57
58 Aws::Vector<Aws::String> m_deploymentIds;
59 bool m_deploymentIdsHasBeenSet = false;
60 };
61
62} // namespace Model
63} // namespace CodeDeploy
64} // namespace Aws
const Aws::Vector< Aws::String > & GetDeploymentIds() const
virtual const char * GetServiceRequestName() const override
AWS_CODEDEPLOY_API BatchGetDeploymentsRequest()=default
BatchGetDeploymentsRequest & AddDeploymentIds(DeploymentIdsT &&value)
AWS_CODEDEPLOY_API Aws::String SerializePayload() const override
AWS_CODEDEPLOY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
BatchGetDeploymentsRequest & WithDeploymentIds(DeploymentIdsT &&value)
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