AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
BatchGetDeploymentsResult.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/DeploymentInfo.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{
36 {
37 public:
38 AWS_CODEDEPLOY_API BatchGetDeploymentsResult() = default;
41
42
44
47 inline const Aws::Vector<DeploymentInfo>& GetDeploymentsInfo() const { return m_deploymentsInfo; }
48 template<typename DeploymentsInfoT = Aws::Vector<DeploymentInfo>>
49 void SetDeploymentsInfo(DeploymentsInfoT&& value) { m_deploymentsInfoHasBeenSet = true; m_deploymentsInfo = std::forward<DeploymentsInfoT>(value); }
50 template<typename DeploymentsInfoT = Aws::Vector<DeploymentInfo>>
51 BatchGetDeploymentsResult& WithDeploymentsInfo(DeploymentsInfoT&& value) { SetDeploymentsInfo(std::forward<DeploymentsInfoT>(value)); return *this;}
52 template<typename DeploymentsInfoT = DeploymentInfo>
53 BatchGetDeploymentsResult& AddDeploymentsInfo(DeploymentsInfoT&& value) { m_deploymentsInfoHasBeenSet = true; m_deploymentsInfo.emplace_back(std::forward<DeploymentsInfoT>(value)); return *this; }
55
57
58 inline const Aws::String& GetRequestId() const { return m_requestId; }
59 template<typename RequestIdT = Aws::String>
60 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
61 template<typename RequestIdT = Aws::String>
62 BatchGetDeploymentsResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
64 private:
65
66 Aws::Vector<DeploymentInfo> m_deploymentsInfo;
67 bool m_deploymentsInfoHasBeenSet = false;
68
69 Aws::String m_requestId;
70 bool m_requestIdHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace CodeDeploy
75} // 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