AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetContainer(const AttemptContainerDetail& value) { m_containerHasBeenSet = true; m_container = value; }
50 inline void SetContainer(AttemptContainerDetail&& value) { m_containerHasBeenSet = true; m_container = std::move(value); }
51 inline AttemptDetail& WithContainer(const AttemptContainerDetail& value) { SetContainer(value); return *this;}
52 inline AttemptDetail& WithContainer(AttemptContainerDetail&& value) { SetContainer(std::move(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 inline void SetStatusReason(const Aws::String& value) { m_statusReasonHasBeenSet = true; m_statusReason = value; }
87 inline void SetStatusReason(Aws::String&& value) { m_statusReasonHasBeenSet = true; m_statusReason = std::move(value); }
88 inline void SetStatusReason(const char* value) { m_statusReasonHasBeenSet = true; m_statusReason.assign(value); }
89 inline AttemptDetail& WithStatusReason(const Aws::String& value) { SetStatusReason(value); return *this;}
90 inline AttemptDetail& WithStatusReason(Aws::String&& value) { SetStatusReason(std::move(value)); return *this;}
91 inline AttemptDetail& WithStatusReason(const char* value) { SetStatusReason(value); return *this;}
93
95
99 inline const Aws::Vector<AttemptEcsTaskDetails>& GetTaskProperties() const{ return m_taskProperties; }
100 inline bool TaskPropertiesHasBeenSet() const { return m_taskPropertiesHasBeenSet; }
101 inline void SetTaskProperties(const Aws::Vector<AttemptEcsTaskDetails>& value) { m_taskPropertiesHasBeenSet = true; m_taskProperties = value; }
102 inline void SetTaskProperties(Aws::Vector<AttemptEcsTaskDetails>&& value) { m_taskPropertiesHasBeenSet = true; m_taskProperties = std::move(value); }
105 inline AttemptDetail& AddTaskProperties(const AttemptEcsTaskDetails& value) { m_taskPropertiesHasBeenSet = true; m_taskProperties.push_back(value); return *this; }
106 inline AttemptDetail& AddTaskProperties(AttemptEcsTaskDetails&& value) { m_taskPropertiesHasBeenSet = true; m_taskProperties.push_back(std::move(value)); return *this; }
108 private:
109
110 AttemptContainerDetail m_container;
111 bool m_containerHasBeenSet = false;
112
113 long long m_startedAt;
114 bool m_startedAtHasBeenSet = false;
115
116 long long m_stoppedAt;
117 bool m_stoppedAtHasBeenSet = false;
118
119 Aws::String m_statusReason;
120 bool m_statusReasonHasBeenSet = false;
121
122 Aws::Vector<AttemptEcsTaskDetails> m_taskProperties;
123 bool m_taskPropertiesHasBeenSet = false;
124 };
125
126} // namespace Model
127} // namespace Batch
128} // namespace Aws
void SetStoppedAt(long long value)
AttemptDetail & WithStatusReason(const char *value)
const Aws::String & GetStatusReason() const
void SetTaskProperties(const Aws::Vector< AttemptEcsTaskDetails > &value)
AttemptDetail & AddTaskProperties(const AttemptEcsTaskDetails &value)
AttemptDetail & WithContainer(const AttemptContainerDetail &value)
void SetStatusReason(Aws::String &&value)
void SetTaskProperties(Aws::Vector< AttemptEcsTaskDetails > &&value)
AttemptDetail & AddTaskProperties(AttemptEcsTaskDetails &&value)
void SetStartedAt(long long value)
AttemptDetail & WithContainer(AttemptContainerDetail &&value)
AttemptDetail & WithStatusReason(const Aws::String &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
AttemptDetail & WithStatusReason(Aws::String &&value)
void SetContainer(AttemptContainerDetail &&value)
void SetStatusReason(const Aws::String &value)
AttemptDetail & WithTaskProperties(const Aws::Vector< AttemptEcsTaskDetails > &value)
AttemptDetail & WithStartedAt(long long value)
const Aws::Vector< AttemptEcsTaskDetails > & GetTaskProperties() const
void SetContainer(const AttemptContainerDetail &value)
AttemptDetail & WithStoppedAt(long long value)
void SetStatusReason(const char *value)
AttemptDetail & WithTaskProperties(Aws::Vector< AttemptEcsTaskDetails > &&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