AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
AttemptDetail.h
1
6#pragma once
7#include <aws/batch/Batch_EXPORTS.h>
8#include <aws/batch/model/AttemptContainerDetail.h>
9#include <aws/batch/model/AttemptEcsTaskDetails.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Batch {
23namespace Model {
24
31 public:
32 AWS_BATCH_API AttemptDetail() = default;
33 AWS_BATCH_API AttemptDetail(Aws::Utils::Json::JsonView jsonValue);
35 AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const AttemptContainerDetail& GetContainer() const { return m_container; }
42 inline bool ContainerHasBeenSet() const { return m_containerHasBeenSet; }
43 template <typename ContainerT = AttemptContainerDetail>
44 void SetContainer(ContainerT&& value) {
45 m_containerHasBeenSet = true;
46 m_container = std::forward<ContainerT>(value);
47 }
48 template <typename ContainerT = AttemptContainerDetail>
49 AttemptDetail& WithContainer(ContainerT&& value) {
50 SetContainer(std::forward<ContainerT>(value));
51 return *this;
52 }
54
56
61 inline long long GetStartedAt() const { return m_startedAt; }
62 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
63 inline void SetStartedAt(long long value) {
64 m_startedAtHasBeenSet = true;
65 m_startedAt = value;
66 }
67 inline AttemptDetail& WithStartedAt(long long value) {
68 SetStartedAt(value);
69 return *this;
70 }
72
74
79 inline long long GetStoppedAt() const { return m_stoppedAt; }
80 inline bool StoppedAtHasBeenSet() const { return m_stoppedAtHasBeenSet; }
81 inline void SetStoppedAt(long long value) {
82 m_stoppedAtHasBeenSet = true;
83 m_stoppedAt = value;
84 }
85 inline AttemptDetail& WithStoppedAt(long long value) {
86 SetStoppedAt(value);
87 return *this;
88 }
90
92
96 inline const Aws::String& GetStatusReason() const { return m_statusReason; }
97 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
98 template <typename StatusReasonT = Aws::String>
99 void SetStatusReason(StatusReasonT&& value) {
100 m_statusReasonHasBeenSet = true;
101 m_statusReason = std::forward<StatusReasonT>(value);
102 }
103 template <typename StatusReasonT = Aws::String>
104 AttemptDetail& WithStatusReason(StatusReasonT&& value) {
105 SetStatusReason(std::forward<StatusReasonT>(value));
106 return *this;
107 }
109
111
115 inline const Aws::Vector<AttemptEcsTaskDetails>& GetTaskProperties() const { return m_taskProperties; }
116 inline bool TaskPropertiesHasBeenSet() const { return m_taskPropertiesHasBeenSet; }
117 template <typename TaskPropertiesT = Aws::Vector<AttemptEcsTaskDetails>>
118 void SetTaskProperties(TaskPropertiesT&& value) {
119 m_taskPropertiesHasBeenSet = true;
120 m_taskProperties = std::forward<TaskPropertiesT>(value);
121 }
122 template <typename TaskPropertiesT = Aws::Vector<AttemptEcsTaskDetails>>
123 AttemptDetail& WithTaskProperties(TaskPropertiesT&& value) {
124 SetTaskProperties(std::forward<TaskPropertiesT>(value));
125 return *this;
126 }
127 template <typename TaskPropertiesT = AttemptEcsTaskDetails>
128 AttemptDetail& AddTaskProperties(TaskPropertiesT&& value) {
129 m_taskPropertiesHasBeenSet = true;
130 m_taskProperties.emplace_back(std::forward<TaskPropertiesT>(value));
131 return *this;
132 }
134 private:
135 AttemptContainerDetail m_container;
136
137 long long m_startedAt{0};
138
139 long long m_stoppedAt{0};
140
141 Aws::String m_statusReason;
142
143 Aws::Vector<AttemptEcsTaskDetails> m_taskProperties;
144 bool m_containerHasBeenSet = false;
145 bool m_startedAtHasBeenSet = false;
146 bool m_stoppedAtHasBeenSet = false;
147 bool m_statusReasonHasBeenSet = false;
148 bool m_taskPropertiesHasBeenSet = false;
149};
150
151} // namespace Model
152} // namespace Batch
153} // namespace Aws
AWS_BATCH_API AttemptDetail()=default
AttemptDetail & AddTaskProperties(TaskPropertiesT &&value)
AttemptDetail & WithTaskProperties(TaskPropertiesT &&value)
void SetStoppedAt(long long value)
void SetContainer(ContainerT &&value)
const Aws::String & GetStatusReason() const
void SetTaskProperties(TaskPropertiesT &&value)
AttemptDetail & WithStatusReason(StatusReasonT &&value)
AttemptDetail & WithContainer(ContainerT &&value)
void SetStartedAt(long long value)
AWS_BATCH_API AttemptDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BATCH_API AttemptDetail(Aws::Utils::Json::JsonView jsonValue)
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
const AttemptContainerDetail & GetContainer() const
void SetStatusReason(StatusReasonT &&value)
AttemptDetail & WithStartedAt(long long value)
const Aws::Vector< AttemptEcsTaskDetails > & GetTaskProperties() const
AttemptDetail & WithStoppedAt(long long value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue