AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
GetJobQueueSnapshotResult.h
1
6#pragma once
7#include <aws/batch/Batch_EXPORTS.h>
8#include <aws/batch/model/FrontOfQueueDetail.h>
9#include <aws/batch/model/FrontOfQuotaSharesDetail.h>
10#include <aws/batch/model/QueueSnapshotUtilizationDetail.h>
11#include <aws/core/http/HttpResponse.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace Batch {
26namespace Model {
28 public:
29 AWS_BATCH_API GetJobQueueSnapshotResult() = default;
32
34
40 inline const FrontOfQueueDetail& GetFrontOfQueue() const { return m_frontOfQueue; }
41 template <typename FrontOfQueueT = FrontOfQueueDetail>
42 void SetFrontOfQueue(FrontOfQueueT&& value) {
43 m_frontOfQueueHasBeenSet = true;
44 m_frontOfQueue = std::forward<FrontOfQueueT>(value);
45 }
46 template <typename FrontOfQueueT = FrontOfQueueDetail>
48 SetFrontOfQueue(std::forward<FrontOfQueueT>(value));
49 return *this;
50 }
52
54
58 inline const FrontOfQuotaSharesDetail& GetFrontOfQuotaShares() const { return m_frontOfQuotaShares; }
59 template <typename FrontOfQuotaSharesT = FrontOfQuotaSharesDetail>
60 void SetFrontOfQuotaShares(FrontOfQuotaSharesT&& value) {
61 m_frontOfQuotaSharesHasBeenSet = true;
62 m_frontOfQuotaShares = std::forward<FrontOfQuotaSharesT>(value);
63 }
64 template <typename FrontOfQuotaSharesT = FrontOfQuotaSharesDetail>
65 GetJobQueueSnapshotResult& WithFrontOfQuotaShares(FrontOfQuotaSharesT&& value) {
66 SetFrontOfQuotaShares(std::forward<FrontOfQuotaSharesT>(value));
67 return *this;
68 }
70
72
76 inline const QueueSnapshotUtilizationDetail& GetQueueUtilization() const { return m_queueUtilization; }
77 template <typename QueueUtilizationT = QueueSnapshotUtilizationDetail>
78 void SetQueueUtilization(QueueUtilizationT&& value) {
79 m_queueUtilizationHasBeenSet = true;
80 m_queueUtilization = std::forward<QueueUtilizationT>(value);
81 }
82 template <typename QueueUtilizationT = QueueSnapshotUtilizationDetail>
83 GetJobQueueSnapshotResult& WithQueueUtilization(QueueUtilizationT&& value) {
84 SetQueueUtilization(std::forward<QueueUtilizationT>(value));
85 return *this;
86 }
88
90
91 inline const Aws::String& GetRequestId() const { return m_requestId; }
92 template <typename RequestIdT = Aws::String>
93 void SetRequestId(RequestIdT&& value) {
94 m_requestIdHasBeenSet = true;
95 m_requestId = std::forward<RequestIdT>(value);
96 }
97 template <typename RequestIdT = Aws::String>
99 SetRequestId(std::forward<RequestIdT>(value));
100 return *this;
101 }
103 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
104
105 private:
106 FrontOfQueueDetail m_frontOfQueue;
107
108 FrontOfQuotaSharesDetail m_frontOfQuotaShares;
109
110 QueueSnapshotUtilizationDetail m_queueUtilization;
111
112 Aws::String m_requestId;
113 Aws::Http::HttpResponseCode m_HttpResponseCode;
114 bool m_frontOfQueueHasBeenSet = false;
115 bool m_frontOfQuotaSharesHasBeenSet = false;
116 bool m_queueUtilizationHasBeenSet = false;
117 bool m_requestIdHasBeenSet = false;
118};
119
120} // namespace Model
121} // namespace Batch
122} // namespace Aws
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetJobQueueSnapshotResult & WithRequestId(RequestIdT &&value)
AWS_BATCH_API GetJobQueueSnapshotResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetJobQueueSnapshotResult & WithFrontOfQueue(FrontOfQueueT &&value)
AWS_BATCH_API GetJobQueueSnapshotResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const FrontOfQueueDetail & GetFrontOfQueue() const
GetJobQueueSnapshotResult & WithQueueUtilization(QueueUtilizationT &&value)
const FrontOfQuotaSharesDetail & GetFrontOfQuotaShares() const
const QueueSnapshotUtilizationDetail & GetQueueUtilization() const
AWS_BATCH_API GetJobQueueSnapshotResult()=default
void SetFrontOfQuotaShares(FrontOfQuotaSharesT &&value)
GetJobQueueSnapshotResult & WithFrontOfQuotaShares(FrontOfQuotaSharesT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue