AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ResponseTimeRootCauseService.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/ResponseTimeRootCauseEntity.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 ResponseTimeRootCauseService() = 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<Aws::String>& GetNames() const { return m_names; }
60 inline bool NamesHasBeenSet() const { return m_namesHasBeenSet; }
61 template <typename NamesT = Aws::Vector<Aws::String>>
62 void SetNames(NamesT&& value) {
63 m_namesHasBeenSet = true;
64 m_names = std::forward<NamesT>(value);
65 }
66 template <typename NamesT = Aws::Vector<Aws::String>>
68 SetNames(std::forward<NamesT>(value));
69 return *this;
70 }
71 template <typename NamesT = Aws::String>
73 m_namesHasBeenSet = true;
74 m_names.emplace_back(std::forward<NamesT>(value));
75 return *this;
76 }
78
80
83 inline const Aws::String& GetType() const { return m_type; }
84 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
85 template <typename TypeT = Aws::String>
86 void SetType(TypeT&& value) {
87 m_typeHasBeenSet = true;
88 m_type = std::forward<TypeT>(value);
89 }
90 template <typename TypeT = Aws::String>
92 SetType(std::forward<TypeT>(value));
93 return *this;
94 }
96
98
101 inline const Aws::String& GetAccountId() const { return m_accountId; }
102 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
103 template <typename AccountIdT = Aws::String>
104 void SetAccountId(AccountIdT&& value) {
105 m_accountIdHasBeenSet = true;
106 m_accountId = std::forward<AccountIdT>(value);
107 }
108 template <typename AccountIdT = Aws::String>
110 SetAccountId(std::forward<AccountIdT>(value));
111 return *this;
112 }
114
116
119 inline const Aws::Vector<ResponseTimeRootCauseEntity>& GetEntityPath() const { return m_entityPath; }
120 inline bool EntityPathHasBeenSet() const { return m_entityPathHasBeenSet; }
121 template <typename EntityPathT = Aws::Vector<ResponseTimeRootCauseEntity>>
122 void SetEntityPath(EntityPathT&& value) {
123 m_entityPathHasBeenSet = true;
124 m_entityPath = std::forward<EntityPathT>(value);
125 }
126 template <typename EntityPathT = Aws::Vector<ResponseTimeRootCauseEntity>>
128 SetEntityPath(std::forward<EntityPathT>(value));
129 return *this;
130 }
131 template <typename EntityPathT = ResponseTimeRootCauseEntity>
133 m_entityPathHasBeenSet = true;
134 m_entityPath.emplace_back(std::forward<EntityPathT>(value));
135 return *this;
136 }
138
140
143 inline bool GetInferred() const { return m_inferred; }
144 inline bool InferredHasBeenSet() const { return m_inferredHasBeenSet; }
145 inline void SetInferred(bool value) {
146 m_inferredHasBeenSet = true;
147 m_inferred = value;
148 }
150 SetInferred(value);
151 return *this;
152 }
154 private:
155 Aws::String m_name;
156
158
159 Aws::String m_type;
160
161 Aws::String m_accountId;
162
164
165 bool m_inferred{false};
166 bool m_nameHasBeenSet = false;
167 bool m_namesHasBeenSet = false;
168 bool m_typeHasBeenSet = false;
169 bool m_accountIdHasBeenSet = false;
170 bool m_entityPathHasBeenSet = false;
171 bool m_inferredHasBeenSet = false;
172};
173
174} // namespace Model
175} // namespace XRay
176} // namespace Aws
ResponseTimeRootCauseService & AddEntityPath(EntityPathT &&value)
ResponseTimeRootCauseService & AddNames(NamesT &&value)
AWS_XRAY_API ResponseTimeRootCauseService()=default
ResponseTimeRootCauseService & WithEntityPath(EntityPathT &&value)
AWS_XRAY_API ResponseTimeRootCauseService(Aws::Utils::Json::JsonView jsonValue)
ResponseTimeRootCauseService & WithAccountId(AccountIdT &&value)
ResponseTimeRootCauseService & WithType(TypeT &&value)
const Aws::Vector< ResponseTimeRootCauseEntity > & GetEntityPath() const
AWS_XRAY_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Aws::String > & GetNames() const
ResponseTimeRootCauseService & WithInferred(bool value)
ResponseTimeRootCauseService & WithNames(NamesT &&value)
AWS_XRAY_API ResponseTimeRootCauseService & operator=(Aws::Utils::Json::JsonView jsonValue)
ResponseTimeRootCauseService & WithName(NameT &&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