AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ErrorRootCauseService.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/ErrorRootCauseEntity.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 ErrorRootCauseService();
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 ErrorRootCauseService& WithName(const Aws::String& value) { SetName(value); return *this;}
53 inline ErrorRootCauseService& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
54 inline ErrorRootCauseService& WithName(const char* value) { SetName(value); return *this;}
56
58
61 inline const Aws::Vector<Aws::String>& GetNames() const{ return m_names; }
62 inline bool NamesHasBeenSet() const { return m_namesHasBeenSet; }
63 inline void SetNames(const Aws::Vector<Aws::String>& value) { m_namesHasBeenSet = true; m_names = value; }
64 inline void SetNames(Aws::Vector<Aws::String>&& value) { m_namesHasBeenSet = true; m_names = std::move(value); }
65 inline ErrorRootCauseService& WithNames(const Aws::Vector<Aws::String>& value) { SetNames(value); return *this;}
66 inline ErrorRootCauseService& WithNames(Aws::Vector<Aws::String>&& value) { SetNames(std::move(value)); return *this;}
67 inline ErrorRootCauseService& AddNames(const Aws::String& value) { m_namesHasBeenSet = true; m_names.push_back(value); return *this; }
68 inline ErrorRootCauseService& AddNames(Aws::String&& value) { m_namesHasBeenSet = true; m_names.push_back(std::move(value)); return *this; }
69 inline ErrorRootCauseService& AddNames(const char* value) { m_namesHasBeenSet = true; m_names.push_back(value); return *this; }
71
73
76 inline const Aws::String& GetType() const{ return m_type; }
77 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
78 inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
79 inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
80 inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
81 inline ErrorRootCauseService& WithType(const Aws::String& value) { SetType(value); return *this;}
82 inline ErrorRootCauseService& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
83 inline ErrorRootCauseService& WithType(const char* value) { SetType(value); return *this;}
85
87
90 inline const Aws::String& GetAccountId() const{ return m_accountId; }
91 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
92 inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
93 inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
94 inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
95 inline ErrorRootCauseService& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
96 inline ErrorRootCauseService& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
97 inline ErrorRootCauseService& WithAccountId(const char* value) { SetAccountId(value); return *this;}
99
101
104 inline const Aws::Vector<ErrorRootCauseEntity>& GetEntityPath() const{ return m_entityPath; }
105 inline bool EntityPathHasBeenSet() const { return m_entityPathHasBeenSet; }
106 inline void SetEntityPath(const Aws::Vector<ErrorRootCauseEntity>& value) { m_entityPathHasBeenSet = true; m_entityPath = value; }
107 inline void SetEntityPath(Aws::Vector<ErrorRootCauseEntity>&& value) { m_entityPathHasBeenSet = true; m_entityPath = std::move(value); }
109 inline ErrorRootCauseService& WithEntityPath(Aws::Vector<ErrorRootCauseEntity>&& value) { SetEntityPath(std::move(value)); return *this;}
110 inline ErrorRootCauseService& AddEntityPath(const ErrorRootCauseEntity& value) { m_entityPathHasBeenSet = true; m_entityPath.push_back(value); return *this; }
111 inline ErrorRootCauseService& AddEntityPath(ErrorRootCauseEntity&& value) { m_entityPathHasBeenSet = true; m_entityPath.push_back(std::move(value)); return *this; }
113
115
118 inline bool GetInferred() const{ return m_inferred; }
119 inline bool InferredHasBeenSet() const { return m_inferredHasBeenSet; }
120 inline void SetInferred(bool value) { m_inferredHasBeenSet = true; m_inferred = value; }
121 inline ErrorRootCauseService& WithInferred(bool value) { SetInferred(value); return *this;}
123 private:
124
125 Aws::String m_name;
126 bool m_nameHasBeenSet = false;
127
129 bool m_namesHasBeenSet = false;
130
131 Aws::String m_type;
132 bool m_typeHasBeenSet = false;
133
134 Aws::String m_accountId;
135 bool m_accountIdHasBeenSet = false;
136
138 bool m_entityPathHasBeenSet = false;
139
140 bool m_inferred;
141 bool m_inferredHasBeenSet = false;
142 };
143
144} // namespace Model
145} // namespace XRay
146} // namespace Aws
void SetNames(Aws::Vector< Aws::String > &&value)
ErrorRootCauseService & AddEntityPath(ErrorRootCauseEntity &&value)
AWS_XRAY_API ErrorRootCauseService & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAccountId(const Aws::String &value)
ErrorRootCauseService & WithName(const Aws::String &value)
ErrorRootCauseService & WithEntityPath(Aws::Vector< ErrorRootCauseEntity > &&value)
void SetEntityPath(Aws::Vector< ErrorRootCauseEntity > &&value)
ErrorRootCauseService & WithInferred(bool value)
ErrorRootCauseService & WithAccountId(const char *value)
AWS_XRAY_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Aws::String > & GetNames() const
AWS_XRAY_API ErrorRootCauseService(Aws::Utils::Json::JsonView jsonValue)
ErrorRootCauseService & WithName(Aws::String &&value)
ErrorRootCauseService & WithType(const Aws::String &value)
ErrorRootCauseService & WithType(const char *value)
ErrorRootCauseService & WithType(Aws::String &&value)
ErrorRootCauseService & WithAccountId(Aws::String &&value)
ErrorRootCauseService & AddNames(const char *value)
ErrorRootCauseService & AddNames(const Aws::String &value)
ErrorRootCauseService & AddEntityPath(const ErrorRootCauseEntity &value)
ErrorRootCauseService & WithNames(Aws::Vector< Aws::String > &&value)
const Aws::Vector< ErrorRootCauseEntity > & GetEntityPath() const
void SetNames(const Aws::Vector< Aws::String > &value)
void SetEntityPath(const Aws::Vector< ErrorRootCauseEntity > &value)
ErrorRootCauseService & WithName(const char *value)
ErrorRootCauseService & WithNames(const Aws::Vector< Aws::String > &value)
ErrorRootCauseService & WithEntityPath(const Aws::Vector< ErrorRootCauseEntity > &value)
ErrorRootCauseService & AddNames(Aws::String &&value)
ErrorRootCauseService & WithAccountId(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