AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
BatchGetDeploymentTargetsRequest.h
1
6#pragma once
7#include <aws/codedeploy/CodeDeployRequest.h>
8#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace CodeDeploy {
16namespace Model {
17
21 public:
22 AWS_CODEDEPLOY_API BatchGetDeploymentTargetsRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "BatchGetDeploymentTargets"; }
29
30 AWS_CODEDEPLOY_API Aws::String SerializePayload() const override;
31
33
35
38 inline const Aws::String& GetDeploymentId() const { return m_deploymentId; }
39 inline bool DeploymentIdHasBeenSet() const { return m_deploymentIdHasBeenSet; }
40 template <typename DeploymentIdT = Aws::String>
41 void SetDeploymentId(DeploymentIdT&& value) {
42 m_deploymentIdHasBeenSet = true;
43 m_deploymentId = std::forward<DeploymentIdT>(value);
44 }
45 template <typename DeploymentIdT = Aws::String>
47 SetDeploymentId(std::forward<DeploymentIdT>(value));
48 return *this;
49 }
51
53
69 inline const Aws::Vector<Aws::String>& GetTargetIds() const { return m_targetIds; }
70 inline bool TargetIdsHasBeenSet() const { return m_targetIdsHasBeenSet; }
71 template <typename TargetIdsT = Aws::Vector<Aws::String>>
72 void SetTargetIds(TargetIdsT&& value) {
73 m_targetIdsHasBeenSet = true;
74 m_targetIds = std::forward<TargetIdsT>(value);
75 }
76 template <typename TargetIdsT = Aws::Vector<Aws::String>>
78 SetTargetIds(std::forward<TargetIdsT>(value));
79 return *this;
80 }
81 template <typename TargetIdsT = Aws::String>
83 m_targetIdsHasBeenSet = true;
84 m_targetIds.emplace_back(std::forward<TargetIdsT>(value));
85 return *this;
86 }
88 private:
89 Aws::String m_deploymentId;
90
91 Aws::Vector<Aws::String> m_targetIds;
92 bool m_deploymentIdHasBeenSet = false;
93 bool m_targetIdsHasBeenSet = false;
94};
95
96} // namespace Model
97} // namespace CodeDeploy
98} // 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