AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
ListProblemsResult.h
1
6#pragma once
7#include <aws/application-insights/ApplicationInsights_EXPORTS.h>
8#include <aws/application-insights/model/Problem.h>
9#include <aws/core/http/HttpResponse.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace ApplicationInsights {
25namespace Model {
27 public:
28 AWS_APPLICATIONINSIGHTS_API ListProblemsResult() = default;
31
33
36 inline const Aws::Vector<Problem>& GetProblemList() const { return m_problemList; }
37 template <typename ProblemListT = Aws::Vector<Problem>>
38 void SetProblemList(ProblemListT&& value) {
39 m_problemListHasBeenSet = true;
40 m_problemList = std::forward<ProblemListT>(value);
41 }
42 template <typename ProblemListT = Aws::Vector<Problem>>
43 ListProblemsResult& WithProblemList(ProblemListT&& value) {
44 SetProblemList(std::forward<ProblemListT>(value));
45 return *this;
46 }
47 template <typename ProblemListT = Problem>
48 ListProblemsResult& AddProblemList(ProblemListT&& value) {
49 m_problemListHasBeenSet = true;
50 m_problemList.emplace_back(std::forward<ProblemListT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::String& GetNextToken() const { return m_nextToken; }
61 template <typename NextTokenT = Aws::String>
62 void SetNextToken(NextTokenT&& value) {
63 m_nextTokenHasBeenSet = true;
64 m_nextToken = std::forward<NextTokenT>(value);
65 }
66 template <typename NextTokenT = Aws::String>
67 ListProblemsResult& WithNextToken(NextTokenT&& value) {
68 SetNextToken(std::forward<NextTokenT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetResourceGroupName() const { return m_resourceGroupName; }
78 template <typename ResourceGroupNameT = Aws::String>
79 void SetResourceGroupName(ResourceGroupNameT&& value) {
80 m_resourceGroupNameHasBeenSet = true;
81 m_resourceGroupName = std::forward<ResourceGroupNameT>(value);
82 }
83 template <typename ResourceGroupNameT = Aws::String>
84 ListProblemsResult& WithResourceGroupName(ResourceGroupNameT&& value) {
85 SetResourceGroupName(std::forward<ResourceGroupNameT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::String& GetAccountId() const { return m_accountId; }
95 template <typename AccountIdT = Aws::String>
96 void SetAccountId(AccountIdT&& value) {
97 m_accountIdHasBeenSet = true;
98 m_accountId = std::forward<AccountIdT>(value);
99 }
100 template <typename AccountIdT = Aws::String>
101 ListProblemsResult& WithAccountId(AccountIdT&& value) {
102 SetAccountId(std::forward<AccountIdT>(value));
103 return *this;
104 }
106
108
109 inline const Aws::String& GetRequestId() const { return m_requestId; }
110 template <typename RequestIdT = Aws::String>
111 void SetRequestId(RequestIdT&& value) {
112 m_requestIdHasBeenSet = true;
113 m_requestId = std::forward<RequestIdT>(value);
114 }
115 template <typename RequestIdT = Aws::String>
116 ListProblemsResult& WithRequestId(RequestIdT&& value) {
117 SetRequestId(std::forward<RequestIdT>(value));
118 return *this;
119 }
121 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
122
123 private:
124 Aws::Vector<Problem> m_problemList;
125
126 Aws::String m_nextToken;
127
128 Aws::String m_resourceGroupName;
129
130 Aws::String m_accountId;
131
132 Aws::String m_requestId;
133 Aws::Http::HttpResponseCode m_HttpResponseCode;
134 bool m_problemListHasBeenSet = false;
135 bool m_nextTokenHasBeenSet = false;
136 bool m_resourceGroupNameHasBeenSet = false;
137 bool m_accountIdHasBeenSet = false;
138 bool m_requestIdHasBeenSet = false;
139};
140
141} // namespace Model
142} // namespace ApplicationInsights
143} // namespace Aws
AWS_APPLICATIONINSIGHTS_API ListProblemsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ListProblemsResult & WithRequestId(RequestIdT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const Aws::Vector< Problem > & GetProblemList() const
ListProblemsResult & WithProblemList(ProblemListT &&value)
ListProblemsResult & WithResourceGroupName(ResourceGroupNameT &&value)
AWS_APPLICATIONINSIGHTS_API ListProblemsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetResourceGroupName(ResourceGroupNameT &&value)
ListProblemsResult & WithAccountId(AccountIdT &&value)
ListProblemsResult & WithNextToken(NextTokenT &&value)
AWS_APPLICATIONINSIGHTS_API ListProblemsResult()=default
ListProblemsResult & AddProblemList(ProblemListT &&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