AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
FaultRootCauseEntity.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 FaultRootCauseEntity();
41
42
44
47 inline const Aws::String& GetName() const{ return m_name; }
48 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
49 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
50 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
51 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
52 inline FaultRootCauseEntity& WithName(const Aws::String& value) { SetName(value); return *this;}
53 inline FaultRootCauseEntity& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
54 inline FaultRootCauseEntity& WithName(const char* value) { SetName(value); return *this;}
56
58
61 inline const Aws::Vector<RootCauseException>& GetExceptions() const{ return m_exceptions; }
62 inline bool ExceptionsHasBeenSet() const { return m_exceptionsHasBeenSet; }
63 inline void SetExceptions(const Aws::Vector<RootCauseException>& value) { m_exceptionsHasBeenSet = true; m_exceptions = value; }
64 inline void SetExceptions(Aws::Vector<RootCauseException>&& value) { m_exceptionsHasBeenSet = true; m_exceptions = std::move(value); }
66 inline FaultRootCauseEntity& WithExceptions(Aws::Vector<RootCauseException>&& value) { SetExceptions(std::move(value)); return *this;}
67 inline FaultRootCauseEntity& AddExceptions(const RootCauseException& value) { m_exceptionsHasBeenSet = true; m_exceptions.push_back(value); return *this; }
68 inline FaultRootCauseEntity& AddExceptions(RootCauseException&& value) { m_exceptionsHasBeenSet = true; m_exceptions.push_back(std::move(value)); return *this; }
70
72
75 inline bool GetRemote() const{ return m_remote; }
76 inline bool RemoteHasBeenSet() const { return m_remoteHasBeenSet; }
77 inline void SetRemote(bool value) { m_remoteHasBeenSet = true; m_remote = value; }
78 inline FaultRootCauseEntity& WithRemote(bool value) { SetRemote(value); return *this;}
80 private:
81
82 Aws::String m_name;
83 bool m_nameHasBeenSet = false;
84
86 bool m_exceptionsHasBeenSet = false;
87
88 bool m_remote;
89 bool m_remoteHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace XRay
94} // namespace Aws
void SetExceptions(const Aws::Vector< RootCauseException > &value)
FaultRootCauseEntity & WithExceptions(const Aws::Vector< RootCauseException > &value)
void SetExceptions(Aws::Vector< RootCauseException > &&value)
FaultRootCauseEntity & WithName(Aws::String &&value)
AWS_XRAY_API FaultRootCauseEntity & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_XRAY_API Aws::Utils::Json::JsonValue Jsonize() const
FaultRootCauseEntity & WithRemote(bool value)
FaultRootCauseEntity & WithName(const char *value)
FaultRootCauseEntity & AddExceptions(const RootCauseException &value)
FaultRootCauseEntity & AddExceptions(RootCauseException &&value)
void SetName(const Aws::String &value)
AWS_XRAY_API FaultRootCauseEntity(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< RootCauseException > & GetExceptions() const
FaultRootCauseEntity & WithExceptions(Aws::Vector< RootCauseException > &&value)
FaultRootCauseEntity & WithName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue