AWS SDK for C++

AWS SDK for C++ Version 1.11.788

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/http/HttpResponse.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace CodeDeploy {
25namespace Model {
27 public:
28 AWS_CODEDEPLOY_API BatchGetDeploymentTargetsResult() = default;
31
33
43 inline const Aws::Vector<DeploymentTarget>& GetDeploymentTargets() const { return m_deploymentTargets; }
44 template <typename DeploymentTargetsT = Aws::Vector<DeploymentTarget>>
45 void SetDeploymentTargets(DeploymentTargetsT&& value) {
46 m_deploymentTargetsHasBeenSet = true;
47 m_deploymentTargets = std::forward<DeploymentTargetsT>(value);
48 }
49 template <typename DeploymentTargetsT = Aws::Vector<DeploymentTarget>>
51 SetDeploymentTargets(std::forward<DeploymentTargetsT>(value));
52 return *this;
53 }
54 template <typename DeploymentTargetsT = DeploymentTarget>
56 m_deploymentTargetsHasBeenSet = true;
57 m_deploymentTargets.emplace_back(std::forward<DeploymentTargetsT>(value));
58 return *this;
59 }
61
63
64 inline const Aws::String& GetRequestId() const { return m_requestId; }
65 template <typename RequestIdT = Aws::String>
66 void SetRequestId(RequestIdT&& value) {
67 m_requestIdHasBeenSet = true;
68 m_requestId = std::forward<RequestIdT>(value);
69 }
70 template <typename RequestIdT = Aws::String>
72 SetRequestId(std::forward<RequestIdT>(value));
73 return *this;
74 }
76 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
77
78 private:
79 Aws::Vector<DeploymentTarget> m_deploymentTargets;
80
81 Aws::String m_requestId;
82 Aws::Http::HttpResponseCode m_HttpResponseCode;
83 bool m_deploymentTargetsHasBeenSet = false;
84 bool m_requestIdHasBeenSet = false;
85};
86
87} // namespace Model
88} // namespace CodeDeploy
89} // 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