AWS SDK for C++

AWS SDK for C++ Version 1.11.634

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#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Batch
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_BATCH_API ServiceJobAttemptDetail() = default;
39 AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const ServiceResourceId& GetServiceResourceId() const { return m_serviceResourceId; }
47 inline bool ServiceResourceIdHasBeenSet() const { return m_serviceResourceIdHasBeenSet; }
48 template<typename ServiceResourceIdT = ServiceResourceId>
49 void SetServiceResourceId(ServiceResourceIdT&& value) { m_serviceResourceIdHasBeenSet = true; m_serviceResourceId = std::forward<ServiceResourceIdT>(value); }
50 template<typename ServiceResourceIdT = ServiceResourceId>
51 ServiceJobAttemptDetail& WithServiceResourceId(ServiceResourceIdT&& value) { SetServiceResourceId(std::forward<ServiceResourceIdT>(value)); return *this;}
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) { m_startedAtHasBeenSet = true; m_startedAt = value; }
62 inline ServiceJobAttemptDetail& WithStartedAt(long long value) { SetStartedAt(value); return *this;}
64
66
70 inline long long GetStoppedAt() const { return m_stoppedAt; }
71 inline bool StoppedAtHasBeenSet() const { return m_stoppedAtHasBeenSet; }
72 inline void SetStoppedAt(long long value) { m_stoppedAtHasBeenSet = true; m_stoppedAt = value; }
73 inline ServiceJobAttemptDetail& WithStoppedAt(long long value) { SetStoppedAt(value); return *this;}
75
77
81 inline const Aws::String& GetStatusReason() const { return m_statusReason; }
82 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
83 template<typename StatusReasonT = Aws::String>
84 void SetStatusReason(StatusReasonT&& value) { m_statusReasonHasBeenSet = true; m_statusReason = std::forward<StatusReasonT>(value); }
85 template<typename StatusReasonT = Aws::String>
86 ServiceJobAttemptDetail& WithStatusReason(StatusReasonT&& value) { SetStatusReason(std::forward<StatusReasonT>(value)); return *this;}
88 private:
89
90 ServiceResourceId m_serviceResourceId;
91 bool m_serviceResourceIdHasBeenSet = false;
92
93 long long m_startedAt{0};
94 bool m_startedAtHasBeenSet = false;
95
96 long long m_stoppedAt{0};
97 bool m_stoppedAtHasBeenSet = false;
98
99 Aws::String m_statusReason;
100 bool m_statusReasonHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace Batch
105} // 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