AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ErrorRootCause.h
1
6#pragma once
7#include <aws/xray/XRay_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/xray/model/ErrorRootCauseService.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace XRay
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_XRAY_API ErrorRootCause() = default;
39
40
42
46 inline const Aws::Vector<ErrorRootCauseService>& GetServices() const { return m_services; }
47 inline bool ServicesHasBeenSet() const { return m_servicesHasBeenSet; }
48 template<typename ServicesT = Aws::Vector<ErrorRootCauseService>>
49 void SetServices(ServicesT&& value) { m_servicesHasBeenSet = true; m_services = std::forward<ServicesT>(value); }
50 template<typename ServicesT = Aws::Vector<ErrorRootCauseService>>
51 ErrorRootCause& WithServices(ServicesT&& value) { SetServices(std::forward<ServicesT>(value)); return *this;}
52 template<typename ServicesT = ErrorRootCauseService>
53 ErrorRootCause& AddServices(ServicesT&& value) { m_servicesHasBeenSet = true; m_services.emplace_back(std::forward<ServicesT>(value)); return *this; }
55
57
60 inline bool GetClientImpacting() const { return m_clientImpacting; }
61 inline bool ClientImpactingHasBeenSet() const { return m_clientImpactingHasBeenSet; }
62 inline void SetClientImpacting(bool value) { m_clientImpactingHasBeenSet = true; m_clientImpacting = value; }
63 inline ErrorRootCause& WithClientImpacting(bool value) { SetClientImpacting(value); return *this;}
65 private:
66
68 bool m_servicesHasBeenSet = false;
69
70 bool m_clientImpacting{false};
71 bool m_clientImpactingHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace XRay
76} // namespace Aws
ErrorRootCause & WithServices(ServicesT &&value)
AWS_XRAY_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_XRAY_API ErrorRootCause()=default
AWS_XRAY_API ErrorRootCause & operator=(Aws::Utils::Json::JsonView jsonValue)
ErrorRootCause & AddServices(ServicesT &&value)
void SetServices(ServicesT &&value)
ErrorRootCause & WithClientImpacting(bool value)
const Aws::Vector< ErrorRootCauseService > & GetServices() const
AWS_XRAY_API ErrorRootCause(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue