AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AttemptContainerDetail.h
1
6#pragma once
7#include <aws/batch/Batch_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/batch/model/NetworkInterface.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Batch
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_BATCH_API AttemptContainerDetail();
40 AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const Aws::String& GetContainerInstanceArn() const{ return m_containerInstanceArn; }
49 inline bool ContainerInstanceArnHasBeenSet() const { return m_containerInstanceArnHasBeenSet; }
50 inline void SetContainerInstanceArn(const Aws::String& value) { m_containerInstanceArnHasBeenSet = true; m_containerInstanceArn = value; }
51 inline void SetContainerInstanceArn(Aws::String&& value) { m_containerInstanceArnHasBeenSet = true; m_containerInstanceArn = std::move(value); }
52 inline void SetContainerInstanceArn(const char* value) { m_containerInstanceArnHasBeenSet = true; m_containerInstanceArn.assign(value); }
54 inline AttemptContainerDetail& WithContainerInstanceArn(Aws::String&& value) { SetContainerInstanceArn(std::move(value)); return *this;}
55 inline AttemptContainerDetail& WithContainerInstanceArn(const char* value) { SetContainerInstanceArn(value); return *this;}
57
59
64 inline const Aws::String& GetTaskArn() const{ return m_taskArn; }
65 inline bool TaskArnHasBeenSet() const { return m_taskArnHasBeenSet; }
66 inline void SetTaskArn(const Aws::String& value) { m_taskArnHasBeenSet = true; m_taskArn = value; }
67 inline void SetTaskArn(Aws::String&& value) { m_taskArnHasBeenSet = true; m_taskArn = std::move(value); }
68 inline void SetTaskArn(const char* value) { m_taskArnHasBeenSet = true; m_taskArn.assign(value); }
69 inline AttemptContainerDetail& WithTaskArn(const Aws::String& value) { SetTaskArn(value); return *this;}
70 inline AttemptContainerDetail& WithTaskArn(Aws::String&& value) { SetTaskArn(std::move(value)); return *this;}
71 inline AttemptContainerDetail& WithTaskArn(const char* value) { SetTaskArn(value); return *this;}
73
75
79 inline int GetExitCode() const{ return m_exitCode; }
80 inline bool ExitCodeHasBeenSet() const { return m_exitCodeHasBeenSet; }
81 inline void SetExitCode(int value) { m_exitCodeHasBeenSet = true; m_exitCode = value; }
82 inline AttemptContainerDetail& WithExitCode(int value) { SetExitCode(value); return *this;}
84
86
90 inline const Aws::String& GetReason() const{ return m_reason; }
91 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
92 inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; }
93 inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
94 inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); }
95 inline AttemptContainerDetail& WithReason(const Aws::String& value) { SetReason(value); return *this;}
96 inline AttemptContainerDetail& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;}
97 inline AttemptContainerDetail& WithReason(const char* value) { SetReason(value); return *this;}
99
101
107 inline const Aws::String& GetLogStreamName() const{ return m_logStreamName; }
108 inline bool LogStreamNameHasBeenSet() const { return m_logStreamNameHasBeenSet; }
109 inline void SetLogStreamName(const Aws::String& value) { m_logStreamNameHasBeenSet = true; m_logStreamName = value; }
110 inline void SetLogStreamName(Aws::String&& value) { m_logStreamNameHasBeenSet = true; m_logStreamName = std::move(value); }
111 inline void SetLogStreamName(const char* value) { m_logStreamNameHasBeenSet = true; m_logStreamName.assign(value); }
112 inline AttemptContainerDetail& WithLogStreamName(const Aws::String& value) { SetLogStreamName(value); return *this;}
113 inline AttemptContainerDetail& WithLogStreamName(Aws::String&& value) { SetLogStreamName(std::move(value)); return *this;}
114 inline AttemptContainerDetail& WithLogStreamName(const char* value) { SetLogStreamName(value); return *this;}
116
118
121 inline const Aws::Vector<NetworkInterface>& GetNetworkInterfaces() const{ return m_networkInterfaces; }
122 inline bool NetworkInterfacesHasBeenSet() const { return m_networkInterfacesHasBeenSet; }
123 inline void SetNetworkInterfaces(const Aws::Vector<NetworkInterface>& value) { m_networkInterfacesHasBeenSet = true; m_networkInterfaces = value; }
124 inline void SetNetworkInterfaces(Aws::Vector<NetworkInterface>&& value) { m_networkInterfacesHasBeenSet = true; m_networkInterfaces = std::move(value); }
127 inline AttemptContainerDetail& AddNetworkInterfaces(const NetworkInterface& value) { m_networkInterfacesHasBeenSet = true; m_networkInterfaces.push_back(value); return *this; }
128 inline AttemptContainerDetail& AddNetworkInterfaces(NetworkInterface&& value) { m_networkInterfacesHasBeenSet = true; m_networkInterfaces.push_back(std::move(value)); return *this; }
130 private:
131
132 Aws::String m_containerInstanceArn;
133 bool m_containerInstanceArnHasBeenSet = false;
134
135 Aws::String m_taskArn;
136 bool m_taskArnHasBeenSet = false;
137
138 int m_exitCode;
139 bool m_exitCodeHasBeenSet = false;
140
141 Aws::String m_reason;
142 bool m_reasonHasBeenSet = false;
143
144 Aws::String m_logStreamName;
145 bool m_logStreamNameHasBeenSet = false;
146
147 Aws::Vector<NetworkInterface> m_networkInterfaces;
148 bool m_networkInterfacesHasBeenSet = false;
149 };
150
151} // namespace Model
152} // namespace Batch
153} // namespace Aws
AttemptContainerDetail & AddNetworkInterfaces(NetworkInterface &&value)
AttemptContainerDetail & WithContainerInstanceArn(const Aws::String &value)
AttemptContainerDetail & WithNetworkInterfaces(Aws::Vector< NetworkInterface > &&value)
AttemptContainerDetail & WithTaskArn(const char *value)
void SetNetworkInterfaces(const Aws::Vector< NetworkInterface > &value)
const Aws::Vector< NetworkInterface > & GetNetworkInterfaces() const
AttemptContainerDetail & WithContainerInstanceArn(const char *value)
AWS_BATCH_API AttemptContainerDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BATCH_API AttemptContainerDetail(Aws::Utils::Json::JsonView jsonValue)
AttemptContainerDetail & WithTaskArn(Aws::String &&value)
AttemptContainerDetail & WithReason(Aws::String &&value)
AttemptContainerDetail & WithNetworkInterfaces(const Aws::Vector< NetworkInterface > &value)
AttemptContainerDetail & WithReason(const char *value)
AttemptContainerDetail & WithLogStreamName(Aws::String &&value)
AttemptContainerDetail & WithExitCode(int value)
void SetContainerInstanceArn(const Aws::String &value)
AttemptContainerDetail & WithContainerInstanceArn(Aws::String &&value)
AttemptContainerDetail & WithReason(const Aws::String &value)
AttemptContainerDetail & AddNetworkInterfaces(const NetworkInterface &value)
void SetNetworkInterfaces(Aws::Vector< NetworkInterface > &&value)
void SetLogStreamName(const Aws::String &value)
AttemptContainerDetail & WithTaskArn(const Aws::String &value)
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetContainerInstanceArn() const
AttemptContainerDetail & WithLogStreamName(const Aws::String &value)
AttemptContainerDetail & WithLogStreamName(const char *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