AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
FaultRootCause.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/FaultRootCauseService.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
30 public:
31 AWS_XRAY_API FaultRootCause() = default;
35
37
41 inline const Aws::Vector<FaultRootCauseService>& GetServices() const { return m_services; }
42 inline bool ServicesHasBeenSet() const { return m_servicesHasBeenSet; }
43 template <typename ServicesT = Aws::Vector<FaultRootCauseService>>
44 void SetServices(ServicesT&& value) {
45 m_servicesHasBeenSet = true;
46 m_services = std::forward<ServicesT>(value);
47 }
48 template <typename ServicesT = Aws::Vector<FaultRootCauseService>>
49 FaultRootCause& WithServices(ServicesT&& value) {
50 SetServices(std::forward<ServicesT>(value));
51 return *this;
52 }
53 template <typename ServicesT = FaultRootCauseService>
54 FaultRootCause& AddServices(ServicesT&& value) {
55 m_servicesHasBeenSet = true;
56 m_services.emplace_back(std::forward<ServicesT>(value));
57 return *this;
58 }
60
62
65 inline bool GetClientImpacting() const { return m_clientImpacting; }
66 inline bool ClientImpactingHasBeenSet() const { return m_clientImpactingHasBeenSet; }
67 inline void SetClientImpacting(bool value) {
68 m_clientImpactingHasBeenSet = true;
69 m_clientImpacting = value;
70 }
71 inline FaultRootCause& WithClientImpacting(bool value) {
72 SetClientImpacting(value);
73 return *this;
74 }
76 private:
78
79 bool m_clientImpacting{false};
80 bool m_servicesHasBeenSet = false;
81 bool m_clientImpactingHasBeenSet = false;
82};
83
84} // namespace Model
85} // namespace XRay
86} // namespace Aws
AWS_XRAY_API FaultRootCause & operator=(Aws::Utils::Json::JsonView jsonValue)
FaultRootCause & AddServices(ServicesT &&value)
FaultRootCause & WithClientImpacting(bool value)
const Aws::Vector< FaultRootCauseService > & GetServices() const
void SetServices(ServicesT &&value)
AWS_XRAY_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_XRAY_API FaultRootCause(Aws::Utils::Json::JsonView jsonValue)
AWS_XRAY_API FaultRootCause()=default
FaultRootCause & WithServices(ServicesT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue