AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/batch/model/AttemptEcsTaskDetails.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Batch
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_BATCH_API AttemptDetail() = default;
38 AWS_BATCH_API AttemptDetail(Aws::Utils::Json::JsonView jsonValue);
40 AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const AttemptContainerDetail& GetContainer() const { return m_container; }
48 inline bool ContainerHasBeenSet() const { return m_containerHasBeenSet; }
49 template<typename ContainerT = AttemptContainerDetail>
50 void SetContainer(ContainerT&& value) { m_containerHasBeenSet = true; m_container = std::forward<ContainerT>(value); }
51 template<typename ContainerT = AttemptContainerDetail>
52 AttemptDetail& WithContainer(ContainerT&& value) { SetContainer(std::forward<ContainerT>(value)); return *this;}
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) { m_startedAtHasBeenSet = true; m_startedAt = value; }
64 inline AttemptDetail& WithStartedAt(long long value) { SetStartedAt(value); return *this;}
66
68
73 inline long long GetStoppedAt() const { return m_stoppedAt; }
74 inline bool StoppedAtHasBeenSet() const { return m_stoppedAtHasBeenSet; }
75 inline void SetStoppedAt(long long value) { m_stoppedAtHasBeenSet = true; m_stoppedAt = value; }
76 inline AttemptDetail& WithStoppedAt(long long value) { SetStoppedAt(value); return *this;}
78
80
84 inline const Aws::String& GetStatusReason() const { return m_statusReason; }
85 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
86 template<typename StatusReasonT = Aws::String>
87 void SetStatusReason(StatusReasonT&& value) { m_statusReasonHasBeenSet = true; m_statusReason = std::forward<StatusReasonT>(value); }
88 template<typename StatusReasonT = Aws::String>
89 AttemptDetail& WithStatusReason(StatusReasonT&& value) { SetStatusReason(std::forward<StatusReasonT>(value)); return *this;}
91
93
97 inline const Aws::Vector<AttemptEcsTaskDetails>& GetTaskProperties() const { return m_taskProperties; }
98 inline bool TaskPropertiesHasBeenSet() const { return m_taskPropertiesHasBeenSet; }
99 template<typename TaskPropertiesT = Aws::Vector<AttemptEcsTaskDetails>>
100 void SetTaskProperties(TaskPropertiesT&& value) { m_taskPropertiesHasBeenSet = true; m_taskProperties = std::forward<TaskPropertiesT>(value); }
101 template<typename TaskPropertiesT = Aws::Vector<AttemptEcsTaskDetails>>
102 AttemptDetail& WithTaskProperties(TaskPropertiesT&& value) { SetTaskProperties(std::forward<TaskPropertiesT>(value)); return *this;}
103 template<typename TaskPropertiesT = AttemptEcsTaskDetails>
104 AttemptDetail& AddTaskProperties(TaskPropertiesT&& value) { m_taskPropertiesHasBeenSet = true; m_taskProperties.emplace_back(std::forward<TaskPropertiesT>(value)); return *this; }
106 private:
107
108 AttemptContainerDetail m_container;
109 bool m_containerHasBeenSet = false;
110
111 long long m_startedAt{0};
112 bool m_startedAtHasBeenSet = false;
113
114 long long m_stoppedAt{0};
115 bool m_stoppedAtHasBeenSet = false;
116
117 Aws::String m_statusReason;
118 bool m_statusReasonHasBeenSet = false;
119
120 Aws::Vector<AttemptEcsTaskDetails> m_taskProperties;
121 bool m_taskPropertiesHasBeenSet = false;
122 };
123
124} // namespace Model
125} // namespace Batch
126} // 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