AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ResponseTimeRootCauseService.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/ResponseTimeRootCauseEntity.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 ResponseTimeRootCauseService() = 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 ResponseTimeRootCauseService& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_namesHasBeenSet = true; m_names = std::forward<NamesT>(value); }
63 template<typename NamesT = Aws::Vector<Aws::String>>
64 ResponseTimeRootCauseService& WithNames(NamesT&& value) { SetNames(std::forward<NamesT>(value)); return *this;}
65 template<typename NamesT = Aws::String>
66 ResponseTimeRootCauseService& AddNames(NamesT&& value) { m_namesHasBeenSet = true; m_names.emplace_back(std::forward<NamesT>(value)); return *this; }
68
70
73 inline const Aws::String& GetType() const { return m_type; }
74 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
75 template<typename TypeT = Aws::String>
76 void SetType(TypeT&& value) { m_typeHasBeenSet = true; m_type = std::forward<TypeT>(value); }
77 template<typename TypeT = Aws::String>
78 ResponseTimeRootCauseService& WithType(TypeT&& value) { SetType(std::forward<TypeT>(value)); return *this;}
80
82
85 inline const Aws::String& GetAccountId() const { return m_accountId; }
86 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
87 template<typename AccountIdT = Aws::String>
88 void SetAccountId(AccountIdT&& value) { m_accountIdHasBeenSet = true; m_accountId = std::forward<AccountIdT>(value); }
89 template<typename AccountIdT = Aws::String>
90 ResponseTimeRootCauseService& WithAccountId(AccountIdT&& value) { SetAccountId(std::forward<AccountIdT>(value)); return *this;}
92
94
97 inline const Aws::Vector<ResponseTimeRootCauseEntity>& GetEntityPath() const { return m_entityPath; }
98 inline bool EntityPathHasBeenSet() const { return m_entityPathHasBeenSet; }
99 template<typename EntityPathT = Aws::Vector<ResponseTimeRootCauseEntity>>
100 void SetEntityPath(EntityPathT&& value) { m_entityPathHasBeenSet = true; m_entityPath = std::forward<EntityPathT>(value); }
101 template<typename EntityPathT = Aws::Vector<ResponseTimeRootCauseEntity>>
102 ResponseTimeRootCauseService& WithEntityPath(EntityPathT&& value) { SetEntityPath(std::forward<EntityPathT>(value)); return *this;}
103 template<typename EntityPathT = ResponseTimeRootCauseEntity>
104 ResponseTimeRootCauseService& AddEntityPath(EntityPathT&& value) { m_entityPathHasBeenSet = true; m_entityPath.emplace_back(std::forward<EntityPathT>(value)); return *this; }
106
108
111 inline bool GetInferred() const { return m_inferred; }
112 inline bool InferredHasBeenSet() const { return m_inferredHasBeenSet; }
113 inline void SetInferred(bool value) { m_inferredHasBeenSet = true; m_inferred = value; }
114 inline ResponseTimeRootCauseService& WithInferred(bool value) { SetInferred(value); return *this;}
116 private:
117
118 Aws::String m_name;
119 bool m_nameHasBeenSet = false;
120
122 bool m_namesHasBeenSet = false;
123
124 Aws::String m_type;
125 bool m_typeHasBeenSet = false;
126
127 Aws::String m_accountId;
128 bool m_accountIdHasBeenSet = false;
129
131 bool m_entityPathHasBeenSet = false;
132
133 bool m_inferred{false};
134 bool m_inferredHasBeenSet = false;
135 };
136
137} // namespace Model
138} // namespace XRay
139} // 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