AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
BatchGetDeploymentTargetsRequest.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/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace CodeDeploy
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_CODEDEPLOY_API BatchGetDeploymentTargetsRequest() = 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 "BatchGetDeploymentTargets"; }
32
33 AWS_CODEDEPLOY_API Aws::String SerializePayload() const override;
34
36
37
39
42 inline const Aws::String& GetDeploymentId() const { return m_deploymentId; }
43 inline bool DeploymentIdHasBeenSet() const { return m_deploymentIdHasBeenSet; }
44 template<typename DeploymentIdT = Aws::String>
45 void SetDeploymentId(DeploymentIdT&& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = std::forward<DeploymentIdT>(value); }
46 template<typename DeploymentIdT = Aws::String>
47 BatchGetDeploymentTargetsRequest& WithDeploymentId(DeploymentIdT&& value) { SetDeploymentId(std::forward<DeploymentIdT>(value)); return *this;}
49
51
67 inline const Aws::Vector<Aws::String>& GetTargetIds() const { return m_targetIds; }
68 inline bool TargetIdsHasBeenSet() const { return m_targetIdsHasBeenSet; }
69 template<typename TargetIdsT = Aws::Vector<Aws::String>>
70 void SetTargetIds(TargetIdsT&& value) { m_targetIdsHasBeenSet = true; m_targetIds = std::forward<TargetIdsT>(value); }
71 template<typename TargetIdsT = Aws::Vector<Aws::String>>
72 BatchGetDeploymentTargetsRequest& WithTargetIds(TargetIdsT&& value) { SetTargetIds(std::forward<TargetIdsT>(value)); return *this;}
73 template<typename TargetIdsT = Aws::String>
74 BatchGetDeploymentTargetsRequest& AddTargetIds(TargetIdsT&& value) { m_targetIdsHasBeenSet = true; m_targetIds.emplace_back(std::forward<TargetIdsT>(value)); return *this; }
76 private:
77
78 Aws::String m_deploymentId;
79 bool m_deploymentIdHasBeenSet = false;
80
81 Aws::Vector<Aws::String> m_targetIds;
82 bool m_targetIdsHasBeenSet = false;
83 };
84
85} // namespace Model
86} // namespace CodeDeploy
87} // namespace Aws
BatchGetDeploymentTargetsRequest & AddTargetIds(TargetIdsT &&value)
AWS_CODEDEPLOY_API BatchGetDeploymentTargetsRequest()=default
AWS_CODEDEPLOY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
BatchGetDeploymentTargetsRequest & WithDeploymentId(DeploymentIdT &&value)
BatchGetDeploymentTargetsRequest & WithTargetIds(TargetIdsT &&value)
AWS_CODEDEPLOY_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