AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
BatchGetDeploymentTargetsResult.h
1
6#pragma once
7#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/codedeploy/model/DeploymentTarget.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace CodeDeploy
26{
27namespace Model
28{
30 {
31 public:
32 AWS_CODEDEPLOY_API BatchGetDeploymentTargetsResult() = default;
35
36
38
48 inline const Aws::Vector<DeploymentTarget>& GetDeploymentTargets() const { return m_deploymentTargets; }
49 template<typename DeploymentTargetsT = Aws::Vector<DeploymentTarget>>
50 void SetDeploymentTargets(DeploymentTargetsT&& value) { m_deploymentTargetsHasBeenSet = true; m_deploymentTargets = std::forward<DeploymentTargetsT>(value); }
51 template<typename DeploymentTargetsT = Aws::Vector<DeploymentTarget>>
52 BatchGetDeploymentTargetsResult& WithDeploymentTargets(DeploymentTargetsT&& value) { SetDeploymentTargets(std::forward<DeploymentTargetsT>(value)); return *this;}
53 template<typename DeploymentTargetsT = DeploymentTarget>
54 BatchGetDeploymentTargetsResult& AddDeploymentTargets(DeploymentTargetsT&& value) { m_deploymentTargetsHasBeenSet = true; m_deploymentTargets.emplace_back(std::forward<DeploymentTargetsT>(value)); return *this; }
56
58
59 inline const Aws::String& GetRequestId() const { return m_requestId; }
60 template<typename RequestIdT = Aws::String>
61 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
62 template<typename RequestIdT = Aws::String>
63 BatchGetDeploymentTargetsResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
65 private:
66
67 Aws::Vector<DeploymentTarget> m_deploymentTargets;
68 bool m_deploymentTargetsHasBeenSet = false;
69
70 Aws::String m_requestId;
71 bool m_requestIdHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace CodeDeploy
76} // 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