AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
AttemptTaskContainerDetails.h
1
6#pragma once
7#include <aws/batch/Batch_EXPORTS.h>
8#include <aws/batch/model/NetworkInterface.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Batch {
22namespace Model {
23
31 public:
32 AWS_BATCH_API AttemptTaskContainerDetails() = default;
35 AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline int GetExitCode() const { return m_exitCode; }
43 inline bool ExitCodeHasBeenSet() const { return m_exitCodeHasBeenSet; }
44 inline void SetExitCode(int value) {
45 m_exitCodeHasBeenSet = true;
46 m_exitCode = value;
47 }
49 SetExitCode(value);
50 return *this;
51 }
53
55
58 inline const Aws::String& GetName() const { return m_name; }
59 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
60 template <typename NameT = Aws::String>
61 void SetName(NameT&& value) {
62 m_nameHasBeenSet = true;
63 m_name = std::forward<NameT>(value);
64 }
65 template <typename NameT = Aws::String>
67 SetName(std::forward<NameT>(value));
68 return *this;
69 }
71
73
77 inline const Aws::String& GetReason() const { return m_reason; }
78 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
79 template <typename ReasonT = Aws::String>
80 void SetReason(ReasonT&& value) {
81 m_reasonHasBeenSet = true;
82 m_reason = std::forward<ReasonT>(value);
83 }
84 template <typename ReasonT = Aws::String>
86 SetReason(std::forward<ReasonT>(value));
87 return *this;
88 }
90
92
98 inline const Aws::String& GetLogStreamName() const { return m_logStreamName; }
99 inline bool LogStreamNameHasBeenSet() const { return m_logStreamNameHasBeenSet; }
100 template <typename LogStreamNameT = Aws::String>
101 void SetLogStreamName(LogStreamNameT&& value) {
102 m_logStreamNameHasBeenSet = true;
103 m_logStreamName = std::forward<LogStreamNameT>(value);
104 }
105 template <typename LogStreamNameT = Aws::String>
107 SetLogStreamName(std::forward<LogStreamNameT>(value));
108 return *this;
109 }
111
113
116 inline const Aws::Vector<NetworkInterface>& GetNetworkInterfaces() const { return m_networkInterfaces; }
117 inline bool NetworkInterfacesHasBeenSet() const { return m_networkInterfacesHasBeenSet; }
118 template <typename NetworkInterfacesT = Aws::Vector<NetworkInterface>>
119 void SetNetworkInterfaces(NetworkInterfacesT&& value) {
120 m_networkInterfacesHasBeenSet = true;
121 m_networkInterfaces = std::forward<NetworkInterfacesT>(value);
122 }
123 template <typename NetworkInterfacesT = Aws::Vector<NetworkInterface>>
125 SetNetworkInterfaces(std::forward<NetworkInterfacesT>(value));
126 return *this;
127 }
128 template <typename NetworkInterfacesT = NetworkInterface>
130 m_networkInterfacesHasBeenSet = true;
131 m_networkInterfaces.emplace_back(std::forward<NetworkInterfacesT>(value));
132 return *this;
133 }
135 private:
136 int m_exitCode{0};
137
138 Aws::String m_name;
139
140 Aws::String m_reason;
141
142 Aws::String m_logStreamName;
143
144 Aws::Vector<NetworkInterface> m_networkInterfaces;
145 bool m_exitCodeHasBeenSet = false;
146 bool m_nameHasBeenSet = false;
147 bool m_reasonHasBeenSet = false;
148 bool m_logStreamNameHasBeenSet = false;
149 bool m_networkInterfacesHasBeenSet = false;
150};
151
152} // namespace Model
153} // namespace Batch
154} // namespace Aws
AttemptTaskContainerDetails & WithLogStreamName(LogStreamNameT &&value)
AttemptTaskContainerDetails & WithReason(ReasonT &&value)
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
AttemptTaskContainerDetails & WithName(NameT &&value)
AttemptTaskContainerDetails & WithNetworkInterfaces(NetworkInterfacesT &&value)
AttemptTaskContainerDetails & WithExitCode(int value)
AWS_BATCH_API AttemptTaskContainerDetails(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< NetworkInterface > & GetNetworkInterfaces() const
AttemptTaskContainerDetails & AddNetworkInterfaces(NetworkInterfacesT &&value)
AWS_BATCH_API AttemptTaskContainerDetails()=default
AWS_BATCH_API AttemptTaskContainerDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue