AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
BatchGetDeploymentGroupsResult.h
1
6#pragma once
7#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
8#include <aws/codedeploy/model/DeploymentGroupInfo.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 BatchGetDeploymentGroupsResult() = default;
36
38
41 inline const Aws::Vector<DeploymentGroupInfo>& GetDeploymentGroupsInfo() const { return m_deploymentGroupsInfo; }
42 template <typename DeploymentGroupsInfoT = Aws::Vector<DeploymentGroupInfo>>
43 void SetDeploymentGroupsInfo(DeploymentGroupsInfoT&& value) {
44 m_deploymentGroupsInfoHasBeenSet = true;
45 m_deploymentGroupsInfo = std::forward<DeploymentGroupsInfoT>(value);
46 }
47 template <typename DeploymentGroupsInfoT = Aws::Vector<DeploymentGroupInfo>>
49 SetDeploymentGroupsInfo(std::forward<DeploymentGroupsInfoT>(value));
50 return *this;
51 }
52 template <typename DeploymentGroupsInfoT = DeploymentGroupInfo>
54 m_deploymentGroupsInfoHasBeenSet = true;
55 m_deploymentGroupsInfo.emplace_back(std::forward<DeploymentGroupsInfoT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetErrorMessage() const { return m_errorMessage; }
65 template <typename ErrorMessageT = Aws::String>
66 void SetErrorMessage(ErrorMessageT&& value) {
67 m_errorMessageHasBeenSet = true;
68 m_errorMessage = std::forward<ErrorMessageT>(value);
69 }
70 template <typename ErrorMessageT = Aws::String>
72 SetErrorMessage(std::forward<ErrorMessageT>(value));
73 return *this;
74 }
76
78
79 inline const Aws::String& GetRequestId() const { return m_requestId; }
80 template <typename RequestIdT = Aws::String>
81 void SetRequestId(RequestIdT&& value) {
82 m_requestIdHasBeenSet = true;
83 m_requestId = std::forward<RequestIdT>(value);
84 }
85 template <typename RequestIdT = Aws::String>
87 SetRequestId(std::forward<RequestIdT>(value));
88 return *this;
89 }
91 private:
92 Aws::Vector<DeploymentGroupInfo> m_deploymentGroupsInfo;
93
94 Aws::String m_errorMessage;
95
96 Aws::String m_requestId;
97 bool m_deploymentGroupsInfoHasBeenSet = false;
98 bool m_errorMessageHasBeenSet = false;
99 bool m_requestIdHasBeenSet = false;
100};
101
102} // namespace Model
103} // namespace CodeDeploy
104} // namespace Aws
BatchGetDeploymentGroupsResult & WithRequestId(RequestIdT &&value)
BatchGetDeploymentGroupsResult & WithDeploymentGroupsInfo(DeploymentGroupsInfoT &&value)
AWS_CODEDEPLOY_API BatchGetDeploymentGroupsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< DeploymentGroupInfo > & GetDeploymentGroupsInfo() const
BatchGetDeploymentGroupsResult & AddDeploymentGroupsInfo(DeploymentGroupsInfoT &&value)
BatchGetDeploymentGroupsResult & WithErrorMessage(ErrorMessageT &&value)
AWS_CODEDEPLOY_API BatchGetDeploymentGroupsResult()=default
AWS_CODEDEPLOY_API BatchGetDeploymentGroupsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue