AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ResponseTimeRootCause.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/ResponseTimeRootCauseService.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 ResponseTimeRootCause() = default;
35
37
41 inline const Aws::Vector<ResponseTimeRootCauseService>& GetServices() const { return m_services; }
42 inline bool ServicesHasBeenSet() const { return m_servicesHasBeenSet; }
43 template <typename ServicesT = Aws::Vector<ResponseTimeRootCauseService>>
44 void SetServices(ServicesT&& value) {
45 m_servicesHasBeenSet = true;
46 m_services = std::forward<ServicesT>(value);
47 }
48 template <typename ServicesT = Aws::Vector<ResponseTimeRootCauseService>>
49 ResponseTimeRootCause& WithServices(ServicesT&& value) {
50 SetServices(std::forward<ServicesT>(value));
51 return *this;
52 }
53 template <typename ServicesT = ResponseTimeRootCauseService>
54 ResponseTimeRootCause& 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 }
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 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