AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
BatchGetDeploymentsResult.h
1
6#pragma once
7#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
8#include <aws/codedeploy/model/DeploymentInfo.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 {
32 public:
33 AWS_CODEDEPLOY_API BatchGetDeploymentsResult() = default;
36
38
41 inline const Aws::Vector<DeploymentInfo>& GetDeploymentsInfo() const { return m_deploymentsInfo; }
42 template <typename DeploymentsInfoT = Aws::Vector<DeploymentInfo>>
43 void SetDeploymentsInfo(DeploymentsInfoT&& value) {
44 m_deploymentsInfoHasBeenSet = true;
45 m_deploymentsInfo = std::forward<DeploymentsInfoT>(value);
46 }
47 template <typename DeploymentsInfoT = Aws::Vector<DeploymentInfo>>
49 SetDeploymentsInfo(std::forward<DeploymentsInfoT>(value));
50 return *this;
51 }
52 template <typename DeploymentsInfoT = DeploymentInfo>
53 BatchGetDeploymentsResult& AddDeploymentsInfo(DeploymentsInfoT&& value) {
54 m_deploymentsInfoHasBeenSet = true;
55 m_deploymentsInfo.emplace_back(std::forward<DeploymentsInfoT>(value));
56 return *this;
57 }
59
61
62 inline const Aws::String& GetRequestId() const { return m_requestId; }
63 template <typename RequestIdT = Aws::String>
64 void SetRequestId(RequestIdT&& value) {
65 m_requestIdHasBeenSet = true;
66 m_requestId = std::forward<RequestIdT>(value);
67 }
68 template <typename RequestIdT = Aws::String>
70 SetRequestId(std::forward<RequestIdT>(value));
71 return *this;
72 }
74 private:
75 Aws::Vector<DeploymentInfo> m_deploymentsInfo;
76
77 Aws::String m_requestId;
78 bool m_deploymentsInfoHasBeenSet = false;
79 bool m_requestIdHasBeenSet = false;
80};
81
82} // namespace Model
83} // namespace CodeDeploy
84} // namespace Aws
AWS_CODEDEPLOY_API BatchGetDeploymentsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_CODEDEPLOY_API BatchGetDeploymentsResult()=default
BatchGetDeploymentsResult & AddDeploymentsInfo(DeploymentsInfoT &&value)
BatchGetDeploymentsResult & WithRequestId(RequestIdT &&value)
AWS_CODEDEPLOY_API BatchGetDeploymentsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< DeploymentInfo > & GetDeploymentsInfo() const
BatchGetDeploymentsResult & WithDeploymentsInfo(DeploymentsInfoT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue