AWS SDK for C++  1.9.104
AWS SDK for C++
ErrorRootCause.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace XRay
23 {
24 namespace Model
25 {
26 
33  {
34  public:
39 
40 
45  inline const Aws::Vector<ErrorRootCauseService>& GetServices() const{ return m_services; }
46 
51  inline bool ServicesHasBeenSet() const { return m_servicesHasBeenSet; }
52 
57  inline void SetServices(const Aws::Vector<ErrorRootCauseService>& value) { m_servicesHasBeenSet = true; m_services = value; }
58 
63  inline void SetServices(Aws::Vector<ErrorRootCauseService>&& value) { m_servicesHasBeenSet = true; m_services = std::move(value); }
64 
69  inline ErrorRootCause& WithServices(const Aws::Vector<ErrorRootCauseService>& value) { SetServices(value); return *this;}
70 
75  inline ErrorRootCause& WithServices(Aws::Vector<ErrorRootCauseService>&& value) { SetServices(std::move(value)); return *this;}
76 
81  inline ErrorRootCause& AddServices(const ErrorRootCauseService& value) { m_servicesHasBeenSet = true; m_services.push_back(value); return *this; }
82 
87  inline ErrorRootCause& AddServices(ErrorRootCauseService&& value) { m_servicesHasBeenSet = true; m_services.push_back(std::move(value)); return *this; }
88 
89 
93  inline bool GetClientImpacting() const{ return m_clientImpacting; }
94 
98  inline bool ClientImpactingHasBeenSet() const { return m_clientImpactingHasBeenSet; }
99 
103  inline void SetClientImpacting(bool value) { m_clientImpactingHasBeenSet = true; m_clientImpacting = value; }
104 
108  inline ErrorRootCause& WithClientImpacting(bool value) { SetClientImpacting(value); return *this;}
109 
110  private:
111 
113  bool m_servicesHasBeenSet;
114 
115  bool m_clientImpacting;
116  bool m_clientImpactingHasBeenSet;
117  };
118 
119 } // namespace Model
120 } // namespace XRay
121 } // namespace Aws
Aws::XRay::Model::ErrorRootCause::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::XRay::Model::ErrorRootCauseService
Definition: ErrorRootCauseService.h:35
Aws::XRay::Model::ErrorRootCause::ErrorRootCause
ErrorRootCause(Aws::Utils::Json::JsonView jsonValue)
ErrorRootCauseService.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::XRay::Model::ErrorRootCause::SetClientImpacting
void SetClientImpacting(bool value)
Definition: ErrorRootCause.h:103
Aws::XRay::Model::ErrorRootCause::AddServices
ErrorRootCause & AddServices(const ErrorRootCauseService &value)
Definition: ErrorRootCause.h:81
Aws::XRay::Model::ErrorRootCause::AddServices
ErrorRootCause & AddServices(ErrorRootCauseService &&value)
Definition: ErrorRootCause.h:87
Aws::XRay::Model::ErrorRootCause::GetClientImpacting
bool GetClientImpacting() const
Definition: ErrorRootCause.h:93
Aws::XRay::Model::ErrorRootCause::ServicesHasBeenSet
bool ServicesHasBeenSet() const
Definition: ErrorRootCause.h:51
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
XRay_EXPORTS.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::XRay::Model::ErrorRootCause::operator=
ErrorRootCause & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::XRay::Model::ErrorRootCause::WithClientImpacting
ErrorRootCause & WithClientImpacting(bool value)
Definition: ErrorRootCause.h:108
Aws::XRay::Model::ErrorRootCause::ClientImpactingHasBeenSet
bool ClientImpactingHasBeenSet() const
Definition: ErrorRootCause.h:98
Aws::XRay::Model::ErrorRootCause::GetServices
const Aws::Vector< ErrorRootCauseService > & GetServices() const
Definition: ErrorRootCause.h:45
Aws::XRay::Model::ErrorRootCause::WithServices
ErrorRootCause & WithServices(const Aws::Vector< ErrorRootCauseService > &value)
Definition: ErrorRootCause.h:69
AWS_XRAY_API
#define AWS_XRAY_API
Definition: XRay_EXPORTS.h:28
Aws
Definition: AccessManagementClient.h:15
Aws::XRay::Model::ErrorRootCause::WithServices
ErrorRootCause & WithServices(Aws::Vector< ErrorRootCauseService > &&value)
Definition: ErrorRootCause.h:75
Aws::XRay::Model::ErrorRootCause::SetServices
void SetServices(Aws::Vector< ErrorRootCauseService > &&value)
Definition: ErrorRootCause.h:63
Aws::XRay::Model::ErrorRootCause::ErrorRootCause
ErrorRootCause()
Aws::XRay::Model::ErrorRootCause
Definition: ErrorRootCause.h:33
Aws::XRay::Model::ErrorRootCause::SetServices
void SetServices(const Aws::Vector< ErrorRootCauseService > &value)
Definition: ErrorRootCause.h:57