AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
EksAttemptContainerDetail.h
1
6#pragma once
7#include <aws/batch/Batch_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Batch {
20namespace Model {
21
29 public:
30 AWS_BATCH_API EksAttemptContainerDetail() = default;
33 AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetName() const { return m_name; }
40 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
41 template <typename NameT = Aws::String>
42 void SetName(NameT&& value) {
43 m_nameHasBeenSet = true;
44 m_name = std::forward<NameT>(value);
45 }
46 template <typename NameT = Aws::String>
48 SetName(std::forward<NameT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetContainerID() const { return m_containerID; }
58 inline bool ContainerIDHasBeenSet() const { return m_containerIDHasBeenSet; }
59 template <typename ContainerIDT = Aws::String>
60 void SetContainerID(ContainerIDT&& value) {
61 m_containerIDHasBeenSet = true;
62 m_containerID = std::forward<ContainerIDT>(value);
63 }
64 template <typename ContainerIDT = Aws::String>
66 SetContainerID(std::forward<ContainerIDT>(value));
67 return *this;
68 }
70
72
76 inline int GetExitCode() const { return m_exitCode; }
77 inline bool ExitCodeHasBeenSet() const { return m_exitCodeHasBeenSet; }
78 inline void SetExitCode(int value) {
79 m_exitCodeHasBeenSet = true;
80 m_exitCode = value;
81 }
83 SetExitCode(value);
84 return *this;
85 }
87
89
93 inline const Aws::String& GetReason() const { return m_reason; }
94 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
95 template <typename ReasonT = Aws::String>
96 void SetReason(ReasonT&& value) {
97 m_reasonHasBeenSet = true;
98 m_reason = std::forward<ReasonT>(value);
99 }
100 template <typename ReasonT = Aws::String>
102 SetReason(std::forward<ReasonT>(value));
103 return *this;
104 }
106 private:
107 Aws::String m_name;
108
109 Aws::String m_containerID;
110
111 int m_exitCode{0};
112
113 Aws::String m_reason;
114 bool m_nameHasBeenSet = false;
115 bool m_containerIDHasBeenSet = false;
116 bool m_exitCodeHasBeenSet = false;
117 bool m_reasonHasBeenSet = false;
118};
119
120} // namespace Model
121} // namespace Batch
122} // namespace Aws
EksAttemptContainerDetail & WithReason(ReasonT &&value)
EksAttemptContainerDetail & WithContainerID(ContainerIDT &&value)
AWS_BATCH_API EksAttemptContainerDetail(Aws::Utils::Json::JsonView jsonValue)
AWS_BATCH_API EksAttemptContainerDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
EksAttemptContainerDetail & WithExitCode(int value)
AWS_BATCH_API EksAttemptContainerDetail()=default
EksAttemptContainerDetail & WithName(NameT &&value)
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue