AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ResponseTimeRootCause.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/ResponseTimeRootCauseService.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
34 {
35 public:
36 AWS_XRAY_API ResponseTimeRootCause() = default;
40
41
43
47 inline const Aws::Vector<ResponseTimeRootCauseService>& GetServices() const { return m_services; }
48 inline bool ServicesHasBeenSet() const { return m_servicesHasBeenSet; }
49 template<typename ServicesT = Aws::Vector<ResponseTimeRootCauseService>>
50 void SetServices(ServicesT&& value) { m_servicesHasBeenSet = true; m_services = std::forward<ServicesT>(value); }
51 template<typename ServicesT = Aws::Vector<ResponseTimeRootCauseService>>
52 ResponseTimeRootCause& WithServices(ServicesT&& value) { SetServices(std::forward<ServicesT>(value)); return *this;}
53 template<typename ServicesT = ResponseTimeRootCauseService>
54 ResponseTimeRootCause& AddServices(ServicesT&& value) { m_servicesHasBeenSet = true; m_services.emplace_back(std::forward<ServicesT>(value)); return *this; }
56
58
61 inline bool GetClientImpacting() const { return m_clientImpacting; }
62 inline bool ClientImpactingHasBeenSet() const { return m_clientImpactingHasBeenSet; }
63 inline void SetClientImpacting(bool value) { m_clientImpactingHasBeenSet = true; m_clientImpacting = value; }
64 inline ResponseTimeRootCause& WithClientImpacting(bool value) { SetClientImpacting(value); return *this;}
66 private:
67
69 bool m_servicesHasBeenSet = false;
70
71 bool m_clientImpacting{false};
72 bool m_clientImpactingHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace XRay
77} // namespace Aws
AWS_XRAY_API ResponseTimeRootCause(Aws::Utils::Json::JsonView jsonValue)
AWS_XRAY_API ResponseTimeRootCause()=default
AWS_XRAY_API ResponseTimeRootCause & operator=(Aws::Utils::Json::JsonView jsonValue)
ResponseTimeRootCause & WithClientImpacting(bool value)
ResponseTimeRootCause & AddServices(ServicesT &&value)
ResponseTimeRootCause & WithServices(ServicesT &&value)
const Aws::Vector< ResponseTimeRootCauseService > & GetServices() const
AWS_XRAY_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue