AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
BatchGetDeploymentGroupsResult.h
Go to the documentation of this file.
1
6#pragma once
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:
41
42
46 inline const Aws::Vector<DeploymentGroupInfo>& GetDeploymentGroupsInfo() const{ return m_deploymentGroupsInfo; }
47
51 inline void SetDeploymentGroupsInfo(const Aws::Vector<DeploymentGroupInfo>& value) { m_deploymentGroupsInfo = value; }
52
56 inline void SetDeploymentGroupsInfo(Aws::Vector<DeploymentGroupInfo>&& value) { m_deploymentGroupsInfo = std::move(value); }
57
62
67
71 inline BatchGetDeploymentGroupsResult& AddDeploymentGroupsInfo(const DeploymentGroupInfo& value) { m_deploymentGroupsInfo.push_back(value); return *this; }
72
76 inline BatchGetDeploymentGroupsResult& AddDeploymentGroupsInfo(DeploymentGroupInfo&& value) { m_deploymentGroupsInfo.push_back(std::move(value)); return *this; }
77
78
82 inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; }
83
87 inline void SetErrorMessage(const Aws::String& value) { m_errorMessage = value; }
88
92 inline void SetErrorMessage(Aws::String&& value) { m_errorMessage = std::move(value); }
93
97 inline void SetErrorMessage(const char* value) { m_errorMessage.assign(value); }
98
102 inline BatchGetDeploymentGroupsResult& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
103
107 inline BatchGetDeploymentGroupsResult& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;}
108
112 inline BatchGetDeploymentGroupsResult& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
113
114 private:
115
116 Aws::Vector<DeploymentGroupInfo> m_deploymentGroupsInfo;
117
118 Aws::String m_errorMessage;
119 };
120
121} // namespace Model
122} // namespace CodeDeploy
123} // namespace Aws
#define AWS_CODEDEPLOY_API
BatchGetDeploymentGroupsResult & AddDeploymentGroupsInfo(const DeploymentGroupInfo &value)
void SetDeploymentGroupsInfo(const Aws::Vector< DeploymentGroupInfo > &value)
AWS_CODEDEPLOY_API BatchGetDeploymentGroupsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< DeploymentGroupInfo > & GetDeploymentGroupsInfo() const
BatchGetDeploymentGroupsResult & WithErrorMessage(const Aws::String &value)
BatchGetDeploymentGroupsResult & WithDeploymentGroupsInfo(const Aws::Vector< DeploymentGroupInfo > &value)
BatchGetDeploymentGroupsResult & AddDeploymentGroupsInfo(DeploymentGroupInfo &&value)
BatchGetDeploymentGroupsResult & WithDeploymentGroupsInfo(Aws::Vector< DeploymentGroupInfo > &&value)
AWS_CODEDEPLOY_API BatchGetDeploymentGroupsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
BatchGetDeploymentGroupsResult & WithErrorMessage(const char *value)
void SetDeploymentGroupsInfo(Aws::Vector< DeploymentGroupInfo > &&value)
BatchGetDeploymentGroupsResult & WithErrorMessage(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector