AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ErrorRootCause.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/xray/XRay_EXPORTS.h>
9#include <aws/xray/model/ErrorRootCauseService.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace XRay {
21namespace Model {
22
29 public:
30 AWS_XRAY_API ErrorRootCause() = default;
34
36
40 inline const Aws::Vector<ErrorRootCauseService>& GetServices() const { return m_services; }
41 inline bool ServicesHasBeenSet() const { return m_servicesHasBeenSet; }
42 template <typename ServicesT = Aws::Vector<ErrorRootCauseService>>
43 void SetServices(ServicesT&& value) {
44 m_servicesHasBeenSet = true;
45 m_services = std::forward<ServicesT>(value);
46 }
47 template <typename ServicesT = Aws::Vector<ErrorRootCauseService>>
48 ErrorRootCause& WithServices(ServicesT&& value) {
49 SetServices(std::forward<ServicesT>(value));
50 return *this;
51 }
52 template <typename ServicesT = ErrorRootCauseService>
53 ErrorRootCause& AddServices(ServicesT&& value) {
54 m_servicesHasBeenSet = true;
55 m_services.emplace_back(std::forward<ServicesT>(value));
56 return *this;
57 }
59
61
64 inline bool GetClientImpacting() const { return m_clientImpacting; }
65 inline bool ClientImpactingHasBeenSet() const { return m_clientImpactingHasBeenSet; }
66 inline void SetClientImpacting(bool value) {
67 m_clientImpactingHasBeenSet = true;
68 m_clientImpacting = value;
69 }
70 inline ErrorRootCause& WithClientImpacting(bool value) {
71 SetClientImpacting(value);
72 return *this;
73 }
75 private:
77
78 bool m_clientImpacting{false};
79 bool m_servicesHasBeenSet = false;
80 bool m_clientImpactingHasBeenSet = false;
81};
82
83} // namespace Model
84} // namespace XRay
85} // 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