AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ErrorRootCauseEntity.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/xray/XRay_EXPORTS.h>
10#include <aws/xray/model/RootCauseException.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace XRay {
22namespace Model {
23
31 public:
32 AWS_XRAY_API ErrorRootCauseEntity() = default;
36
38
41 inline const Aws::String& GetName() const { return m_name; }
42 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
43 template <typename NameT = Aws::String>
44 void SetName(NameT&& value) {
45 m_nameHasBeenSet = true;
46 m_name = std::forward<NameT>(value);
47 }
48 template <typename NameT = Aws::String>
50 SetName(std::forward<NameT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::Vector<RootCauseException>& GetExceptions() const { return m_exceptions; }
60 inline bool ExceptionsHasBeenSet() const { return m_exceptionsHasBeenSet; }
61 template <typename ExceptionsT = Aws::Vector<RootCauseException>>
62 void SetExceptions(ExceptionsT&& value) {
63 m_exceptionsHasBeenSet = true;
64 m_exceptions = std::forward<ExceptionsT>(value);
65 }
66 template <typename ExceptionsT = Aws::Vector<RootCauseException>>
67 ErrorRootCauseEntity& WithExceptions(ExceptionsT&& value) {
68 SetExceptions(std::forward<ExceptionsT>(value));
69 return *this;
70 }
71 template <typename ExceptionsT = RootCauseException>
72 ErrorRootCauseEntity& AddExceptions(ExceptionsT&& value) {
73 m_exceptionsHasBeenSet = true;
74 m_exceptions.emplace_back(std::forward<ExceptionsT>(value));
75 return *this;
76 }
78
80
83 inline bool GetRemote() const { return m_remote; }
84 inline bool RemoteHasBeenSet() const { return m_remoteHasBeenSet; }
85 inline void SetRemote(bool value) {
86 m_remoteHasBeenSet = true;
87 m_remote = value;
88 }
89 inline ErrorRootCauseEntity& WithRemote(bool value) {
90 SetRemote(value);
91 return *this;
92 }
94 private:
95 Aws::String m_name;
96
98
99 bool m_remote{false};
100 bool m_nameHasBeenSet = false;
101 bool m_exceptionsHasBeenSet = false;
102 bool m_remoteHasBeenSet = false;
103};
104
105} // namespace Model
106} // namespace XRay
107} // namespace Aws
ErrorRootCauseEntity & WithRemote(bool value)
ErrorRootCauseEntity & AddExceptions(ExceptionsT &&value)
AWS_XRAY_API ErrorRootCauseEntity()=default
ErrorRootCauseEntity & WithExceptions(ExceptionsT &&value)
ErrorRootCauseEntity & WithName(NameT &&value)
AWS_XRAY_API ErrorRootCauseEntity(Aws::Utils::Json::JsonView jsonValue)
AWS_XRAY_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< RootCauseException > & GetExceptions() const
AWS_XRAY_API ErrorRootCauseEntity & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue