AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ListMonitorsResult.h
1
6#pragma once
7#include <aws/deadline/Deadline_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/deadline/model/MonitorSummary.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace deadline
26{
27namespace Model
28{
30 {
31 public:
32 AWS_DEADLINE_API ListMonitorsResult() = default;
35
36
38
47 inline const Aws::String& GetNextToken() const { return m_nextToken; }
48 template<typename NextTokenT = Aws::String>
49 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
50 template<typename NextTokenT = Aws::String>
51 ListMonitorsResult& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
53
55
59 inline const Aws::Vector<MonitorSummary>& GetMonitors() const { return m_monitors; }
60 template<typename MonitorsT = Aws::Vector<MonitorSummary>>
61 void SetMonitors(MonitorsT&& value) { m_monitorsHasBeenSet = true; m_monitors = std::forward<MonitorsT>(value); }
62 template<typename MonitorsT = Aws::Vector<MonitorSummary>>
63 ListMonitorsResult& WithMonitors(MonitorsT&& value) { SetMonitors(std::forward<MonitorsT>(value)); return *this;}
64 template<typename MonitorsT = MonitorSummary>
65 ListMonitorsResult& AddMonitors(MonitorsT&& value) { m_monitorsHasBeenSet = true; m_monitors.emplace_back(std::forward<MonitorsT>(value)); return *this; }
67
69
70 inline const Aws::String& GetRequestId() const { return m_requestId; }
71 template<typename RequestIdT = Aws::String>
72 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
73 template<typename RequestIdT = Aws::String>
74 ListMonitorsResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
76 private:
77
78 Aws::String m_nextToken;
79 bool m_nextTokenHasBeenSet = false;
80
82 bool m_monitorsHasBeenSet = false;
83
84 Aws::String m_requestId;
85 bool m_requestIdHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace deadline
90} // namespace Aws
ListMonitorsResult & AddMonitors(MonitorsT &&value)
AWS_DEADLINE_API ListMonitorsResult()=default
ListMonitorsResult & WithMonitors(MonitorsT &&value)
AWS_DEADLINE_API ListMonitorsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_DEADLINE_API ListMonitorsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ListMonitorsResult & WithRequestId(RequestIdT &&value)
ListMonitorsResult & WithNextToken(NextTokenT &&value)
const Aws::Vector< MonitorSummary > & GetMonitors() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue