AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ServiceJobAttemptDetail.h
1
6#pragma once
7#include <aws/batch/Batch_EXPORTS.h>
8#include <aws/batch/model/ServiceResourceId.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Batch {
21namespace Model {
22
30 public:
31 AWS_BATCH_API ServiceJobAttemptDetail() = default;
34 AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const ServiceResourceId& GetServiceResourceId() const { return m_serviceResourceId; }
41 inline bool ServiceResourceIdHasBeenSet() const { return m_serviceResourceIdHasBeenSet; }
42 template <typename ServiceResourceIdT = ServiceResourceId>
43 void SetServiceResourceId(ServiceResourceIdT&& value) {
44 m_serviceResourceIdHasBeenSet = true;
45 m_serviceResourceId = std::forward<ServiceResourceIdT>(value);
46 }
47 template <typename ServiceResourceIdT = ServiceResourceId>
48 ServiceJobAttemptDetail& WithServiceResourceId(ServiceResourceIdT&& value) {
49 SetServiceResourceId(std::forward<ServiceResourceIdT>(value));
50 return *this;
51 }
53
55
59 inline long long GetStartedAt() const { return m_startedAt; }
60 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
61 inline void SetStartedAt(long long value) {
62 m_startedAtHasBeenSet = true;
63 m_startedAt = value;
64 }
65 inline ServiceJobAttemptDetail& WithStartedAt(long long value) {
66 SetStartedAt(value);
67 return *this;
68 }
70
72
76 inline long long GetStoppedAt() const { return m_stoppedAt; }
77 inline bool StoppedAtHasBeenSet() const { return m_stoppedAtHasBeenSet; }
78 inline void SetStoppedAt(long long value) {
79 m_stoppedAtHasBeenSet = true;
80 m_stoppedAt = value;
81 }
82 inline ServiceJobAttemptDetail& WithStoppedAt(long long value) {
83 SetStoppedAt(value);
84 return *this;
85 }
87
89
93 inline const Aws::String& GetStatusReason() const { return m_statusReason; }
94 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
95 template <typename StatusReasonT = Aws::String>
96 void SetStatusReason(StatusReasonT&& value) {
97 m_statusReasonHasBeenSet = true;
98 m_statusReason = std::forward<StatusReasonT>(value);
99 }
100 template <typename StatusReasonT = Aws::String>
102 SetStatusReason(std::forward<StatusReasonT>(value));
103 return *this;
104 }
106 private:
107 ServiceResourceId m_serviceResourceId;
108
109 long long m_startedAt{0};
110
111 long long m_stoppedAt{0};
112
113 Aws::String m_statusReason;
114 bool m_serviceResourceIdHasBeenSet = false;
115 bool m_startedAtHasBeenSet = false;
116 bool m_stoppedAtHasBeenSet = false;
117 bool m_statusReasonHasBeenSet = false;
118};
119
120} // namespace Model
121} // namespace Batch
122} // namespace Aws
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BATCH_API ServiceJobAttemptDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
ServiceJobAttemptDetail & WithStatusReason(StatusReasonT &&value)
AWS_BATCH_API ServiceJobAttemptDetail()=default
ServiceJobAttemptDetail & WithStoppedAt(long long value)
ServiceJobAttemptDetail & WithServiceResourceId(ServiceResourceIdT &&value)
const ServiceResourceId & GetServiceResourceId() const
AWS_BATCH_API ServiceJobAttemptDetail(Aws::Utils::Json::JsonView jsonValue)
ServiceJobAttemptDetail & WithStartedAt(long long value)
void SetServiceResourceId(ServiceResourceIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue