AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
BatchGetDeploymentTargetsResult.h
1
6#pragma once
7#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
8#include <aws/codedeploy/model/DeploymentTarget.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 {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace CodeDeploy {
24namespace Model {
26 public:
27 AWS_CODEDEPLOY_API BatchGetDeploymentTargetsResult() = default;
30
32
42 inline const Aws::Vector<DeploymentTarget>& GetDeploymentTargets() const { return m_deploymentTargets; }
43 template <typename DeploymentTargetsT = Aws::Vector<DeploymentTarget>>
44 void SetDeploymentTargets(DeploymentTargetsT&& value) {
45 m_deploymentTargetsHasBeenSet = true;
46 m_deploymentTargets = std::forward<DeploymentTargetsT>(value);
47 }
48 template <typename DeploymentTargetsT = Aws::Vector<DeploymentTarget>>
50 SetDeploymentTargets(std::forward<DeploymentTargetsT>(value));
51 return *this;
52 }
53 template <typename DeploymentTargetsT = DeploymentTarget>
55 m_deploymentTargetsHasBeenSet = true;
56 m_deploymentTargets.emplace_back(std::forward<DeploymentTargetsT>(value));
57 return *this;
58 }
60
62
63 inline const Aws::String& GetRequestId() const { return m_requestId; }
64 template <typename RequestIdT = Aws::String>
65 void SetRequestId(RequestIdT&& value) {
66 m_requestIdHasBeenSet = true;
67 m_requestId = std::forward<RequestIdT>(value);
68 }
69 template <typename RequestIdT = Aws::String>
71 SetRequestId(std::forward<RequestIdT>(value));
72 return *this;
73 }
75 private:
76 Aws::Vector<DeploymentTarget> m_deploymentTargets;
77
78 Aws::String m_requestId;
79 bool m_deploymentTargetsHasBeenSet = false;
80 bool m_requestIdHasBeenSet = false;
81};
82
83} // namespace Model
84} // namespace CodeDeploy
85} // namespace Aws
BatchGetDeploymentTargetsResult & WithRequestId(RequestIdT &&value)
const Aws::Vector< DeploymentTarget > & GetDeploymentTargets() const
AWS_CODEDEPLOY_API BatchGetDeploymentTargetsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
BatchGetDeploymentTargetsResult & AddDeploymentTargets(DeploymentTargetsT &&value)
BatchGetDeploymentTargetsResult & WithDeploymentTargets(DeploymentTargetsT &&value)
AWS_CODEDEPLOY_API BatchGetDeploymentTargetsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_CODEDEPLOY_API BatchGetDeploymentTargetsResult()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue