AWS SDK for C++

AWS SDK for C++ Version 1.11.746

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/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace ApplicationInsights {
24namespace Model {
26 public:
27 AWS_APPLICATIONINSIGHTS_API ListProblemsResult() = default;
30
32
35 inline const Aws::Vector<Problem>& GetProblemList() const { return m_problemList; }
36 template <typename ProblemListT = Aws::Vector<Problem>>
37 void SetProblemList(ProblemListT&& value) {
38 m_problemListHasBeenSet = true;
39 m_problemList = std::forward<ProblemListT>(value);
40 }
41 template <typename ProblemListT = Aws::Vector<Problem>>
42 ListProblemsResult& WithProblemList(ProblemListT&& value) {
43 SetProblemList(std::forward<ProblemListT>(value));
44 return *this;
45 }
46 template <typename ProblemListT = Problem>
47 ListProblemsResult& AddProblemList(ProblemListT&& value) {
48 m_problemListHasBeenSet = true;
49 m_problemList.emplace_back(std::forward<ProblemListT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetNextToken() const { return m_nextToken; }
60 template <typename NextTokenT = Aws::String>
61 void SetNextToken(NextTokenT&& value) {
62 m_nextTokenHasBeenSet = true;
63 m_nextToken = std::forward<NextTokenT>(value);
64 }
65 template <typename NextTokenT = Aws::String>
66 ListProblemsResult& WithNextToken(NextTokenT&& value) {
67 SetNextToken(std::forward<NextTokenT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetResourceGroupName() const { return m_resourceGroupName; }
77 template <typename ResourceGroupNameT = Aws::String>
78 void SetResourceGroupName(ResourceGroupNameT&& value) {
79 m_resourceGroupNameHasBeenSet = true;
80 m_resourceGroupName = std::forward<ResourceGroupNameT>(value);
81 }
82 template <typename ResourceGroupNameT = Aws::String>
83 ListProblemsResult& WithResourceGroupName(ResourceGroupNameT&& value) {
84 SetResourceGroupName(std::forward<ResourceGroupNameT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetAccountId() const { return m_accountId; }
94 template <typename AccountIdT = Aws::String>
95 void SetAccountId(AccountIdT&& value) {
96 m_accountIdHasBeenSet = true;
97 m_accountId = std::forward<AccountIdT>(value);
98 }
99 template <typename AccountIdT = Aws::String>
100 ListProblemsResult& WithAccountId(AccountIdT&& value) {
101 SetAccountId(std::forward<AccountIdT>(value));
102 return *this;
103 }
105
107
108 inline const Aws::String& GetRequestId() const { return m_requestId; }
109 template <typename RequestIdT = Aws::String>
110 void SetRequestId(RequestIdT&& value) {
111 m_requestIdHasBeenSet = true;
112 m_requestId = std::forward<RequestIdT>(value);
113 }
114 template <typename RequestIdT = Aws::String>
115 ListProblemsResult& WithRequestId(RequestIdT&& value) {
116 SetRequestId(std::forward<RequestIdT>(value));
117 return *this;
118 }
120 private:
121 Aws::Vector<Problem> m_problemList;
122
123 Aws::String m_nextToken;
124
125 Aws::String m_resourceGroupName;
126
127 Aws::String m_accountId;
128
129 Aws::String m_requestId;
130 bool m_problemListHasBeenSet = false;
131 bool m_nextTokenHasBeenSet = false;
132 bool m_resourceGroupNameHasBeenSet = false;
133 bool m_accountIdHasBeenSet = false;
134 bool m_requestIdHasBeenSet = false;
135};
136
137} // namespace Model
138} // namespace ApplicationInsights
139} // namespace Aws
AWS_APPLICATIONINSIGHTS_API ListProblemsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ListProblemsResult & WithRequestId(RequestIdT &&value)
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