AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ExecutorsSummary.h
1
6#pragma once
7#include <aws/athena/Athena_EXPORTS.h>
8#include <aws/athena/model/ExecutorState.h>
9#include <aws/athena/model/ExecutorType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Athena {
22namespace Model {
23
30 public:
31 AWS_ATHENA_API ExecutorsSummary() = default;
34 AWS_ATHENA_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetExecutorId() const { return m_executorId; }
41 inline bool ExecutorIdHasBeenSet() const { return m_executorIdHasBeenSet; }
42 template <typename ExecutorIdT = Aws::String>
43 void SetExecutorId(ExecutorIdT&& value) {
44 m_executorIdHasBeenSet = true;
45 m_executorId = std::forward<ExecutorIdT>(value);
46 }
47 template <typename ExecutorIdT = Aws::String>
48 ExecutorsSummary& WithExecutorId(ExecutorIdT&& value) {
49 SetExecutorId(std::forward<ExecutorIdT>(value));
50 return *this;
51 }
53
55
59 inline ExecutorType GetExecutorType() const { return m_executorType; }
60 inline bool ExecutorTypeHasBeenSet() const { return m_executorTypeHasBeenSet; }
61 inline void SetExecutorType(ExecutorType value) {
62 m_executorTypeHasBeenSet = true;
63 m_executorType = value;
64 }
66 SetExecutorType(value);
67 return *this;
68 }
70
72
75 inline long long GetStartDateTime() const { return m_startDateTime; }
76 inline bool StartDateTimeHasBeenSet() const { return m_startDateTimeHasBeenSet; }
77 inline void SetStartDateTime(long long value) {
78 m_startDateTimeHasBeenSet = true;
79 m_startDateTime = value;
80 }
81 inline ExecutorsSummary& WithStartDateTime(long long value) {
82 SetStartDateTime(value);
83 return *this;
84 }
86
88
91 inline long long GetTerminationDateTime() const { return m_terminationDateTime; }
92 inline bool TerminationDateTimeHasBeenSet() const { return m_terminationDateTimeHasBeenSet; }
93 inline void SetTerminationDateTime(long long value) {
94 m_terminationDateTimeHasBeenSet = true;
95 m_terminationDateTime = value;
96 }
97 inline ExecutorsSummary& WithTerminationDateTime(long long value) {
99 return *this;
100 }
102
104
114 inline ExecutorState GetExecutorState() const { return m_executorState; }
115 inline bool ExecutorStateHasBeenSet() const { return m_executorStateHasBeenSet; }
116 inline void SetExecutorState(ExecutorState value) {
117 m_executorStateHasBeenSet = true;
118 m_executorState = value;
119 }
121 SetExecutorState(value);
122 return *this;
123 }
125
127
132 inline long long GetExecutorSize() const { return m_executorSize; }
133 inline bool ExecutorSizeHasBeenSet() const { return m_executorSizeHasBeenSet; }
134 inline void SetExecutorSize(long long value) {
135 m_executorSizeHasBeenSet = true;
136 m_executorSize = value;
137 }
138 inline ExecutorsSummary& WithExecutorSize(long long value) {
139 SetExecutorSize(value);
140 return *this;
141 }
143 private:
144 Aws::String m_executorId;
145
146 ExecutorType m_executorType{ExecutorType::NOT_SET};
147
148 long long m_startDateTime{0};
149
150 long long m_terminationDateTime{0};
151
152 ExecutorState m_executorState{ExecutorState::NOT_SET};
153
154 long long m_executorSize{0};
155 bool m_executorIdHasBeenSet = false;
156 bool m_executorTypeHasBeenSet = false;
157 bool m_startDateTimeHasBeenSet = false;
158 bool m_terminationDateTimeHasBeenSet = false;
159 bool m_executorStateHasBeenSet = false;
160 bool m_executorSizeHasBeenSet = false;
161};
162
163} // namespace Model
164} // namespace Athena
165} // namespace Aws
ExecutorsSummary & WithExecutorSize(long long value)
AWS_ATHENA_API ExecutorsSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
ExecutorsSummary & WithStartDateTime(long long value)
AWS_ATHENA_API ExecutorsSummary()=default
ExecutorsSummary & WithTerminationDateTime(long long value)
ExecutorsSummary & WithExecutorState(ExecutorState value)
const Aws::String & GetExecutorId() const
ExecutorsSummary & WithExecutorType(ExecutorType value)
AWS_ATHENA_API Aws::Utils::Json::JsonValue Jsonize() const
void SetTerminationDateTime(long long value)
void SetExecutorState(ExecutorState value)
void SetExecutorType(ExecutorType value)
ExecutorsSummary & WithExecutorId(ExecutorIdT &&value)
void SetExecutorId(ExecutorIdT &&value)
AWS_ATHENA_API ExecutorsSummary(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue