AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ErrorRootCauseEntity.h
1
6#pragma once
7#include <aws/xray/XRay_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/xray/model/RootCauseException.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace XRay
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_XRAY_API ErrorRootCauseEntity() = default;
41
42
44
47 inline const Aws::String& GetName() const { return m_name; }
48 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
49 template<typename NameT = Aws::String>
50 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
51 template<typename NameT = Aws::String>
52 ErrorRootCauseEntity& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_exceptionsHasBeenSet = true; m_exceptions = std::forward<ExceptionsT>(value); }
63 template<typename ExceptionsT = Aws::Vector<RootCauseException>>
64 ErrorRootCauseEntity& WithExceptions(ExceptionsT&& value) { SetExceptions(std::forward<ExceptionsT>(value)); return *this;}
65 template<typename ExceptionsT = RootCauseException>
66 ErrorRootCauseEntity& AddExceptions(ExceptionsT&& value) { m_exceptionsHasBeenSet = true; m_exceptions.emplace_back(std::forward<ExceptionsT>(value)); return *this; }
68
70
73 inline bool GetRemote() const { return m_remote; }
74 inline bool RemoteHasBeenSet() const { return m_remoteHasBeenSet; }
75 inline void SetRemote(bool value) { m_remoteHasBeenSet = true; m_remote = value; }
76 inline ErrorRootCauseEntity& WithRemote(bool value) { SetRemote(value); return *this;}
78 private:
79
80 Aws::String m_name;
81 bool m_nameHasBeenSet = false;
82
84 bool m_exceptionsHasBeenSet = false;
85
86 bool m_remote{false};
87 bool m_remoteHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace XRay
92} // 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