AWS SDK for C++  1.9.104
AWS SDK for C++
DescribeServiceErrorsResult.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 template<typename RESULT_TYPE>
15 class AmazonWebServiceResult;
16 
17 namespace Utils
18 {
19 namespace Json
20 {
21  class JsonValue;
22 } // namespace Json
23 } // namespace Utils
24 namespace OpsWorks
25 {
26 namespace Model
27 {
35  {
36  public:
40 
41 
46  inline const Aws::Vector<ServiceError>& GetServiceErrors() const{ return m_serviceErrors; }
47 
52  inline void SetServiceErrors(const Aws::Vector<ServiceError>& value) { m_serviceErrors = value; }
53 
58  inline void SetServiceErrors(Aws::Vector<ServiceError>&& value) { m_serviceErrors = std::move(value); }
59 
64  inline DescribeServiceErrorsResult& WithServiceErrors(const Aws::Vector<ServiceError>& value) { SetServiceErrors(value); return *this;}
65 
70  inline DescribeServiceErrorsResult& WithServiceErrors(Aws::Vector<ServiceError>&& value) { SetServiceErrors(std::move(value)); return *this;}
71 
76  inline DescribeServiceErrorsResult& AddServiceErrors(const ServiceError& value) { m_serviceErrors.push_back(value); return *this; }
77 
82  inline DescribeServiceErrorsResult& AddServiceErrors(ServiceError&& value) { m_serviceErrors.push_back(std::move(value)); return *this; }
83 
84  private:
85 
86  Aws::Vector<ServiceError> m_serviceErrors;
87  };
88 
89 } // namespace Model
90 } // namespace OpsWorks
91 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::OpsWorks::Model::DescribeServiceErrorsResult::operator=
DescribeServiceErrorsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::OpsWorks::Model::DescribeServiceErrorsResult::AddServiceErrors
DescribeServiceErrorsResult & AddServiceErrors(const ServiceError &value)
Definition: DescribeServiceErrorsResult.h:76
OpsWorks_EXPORTS.h
Aws::OpsWorks::Model::DescribeServiceErrorsResult::GetServiceErrors
const Aws::Vector< ServiceError > & GetServiceErrors() const
Definition: DescribeServiceErrorsResult.h:46
Aws::OpsWorks::Model::DescribeServiceErrorsResult::WithServiceErrors
DescribeServiceErrorsResult & WithServiceErrors(Aws::Vector< ServiceError > &&value)
Definition: DescribeServiceErrorsResult.h:70
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::OpsWorks::Model::DescribeServiceErrorsResult::DescribeServiceErrorsResult
DescribeServiceErrorsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_OPSWORKS_API
#define AWS_OPSWORKS_API
Definition: OpsWorks_EXPORTS.h:28
Aws::OpsWorks::Model::DescribeServiceErrorsResult::SetServiceErrors
void SetServiceErrors(Aws::Vector< ServiceError > &&value)
Definition: DescribeServiceErrorsResult.h:58
Aws::OpsWorks::Model::DescribeServiceErrorsResult
Definition: DescribeServiceErrorsResult.h:35
Aws::OpsWorks::Model::DescribeServiceErrorsResult::DescribeServiceErrorsResult
DescribeServiceErrorsResult()
Aws::OpsWorks::Model::DescribeServiceErrorsResult::SetServiceErrors
void SetServiceErrors(const Aws::Vector< ServiceError > &value)
Definition: DescribeServiceErrorsResult.h:52
Aws::OpsWorks::Model::DescribeServiceErrorsResult::AddServiceErrors
DescribeServiceErrorsResult & AddServiceErrors(ServiceError &&value)
Definition: DescribeServiceErrorsResult.h:82
Aws
Definition: AccessManagementClient.h:15
Aws::OpsWorks::Model::ServiceError
Definition: ServiceError.h:32
ServiceError.h
Aws::OpsWorks::Model::DescribeServiceErrorsResult::WithServiceErrors
DescribeServiceErrorsResult & WithServiceErrors(const Aws::Vector< ServiceError > &value)
Definition: DescribeServiceErrorsResult.h:64