AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AttemptTaskContainerDetails.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:
40 AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline int GetExitCode() const{ return m_exitCode; }
49 inline bool ExitCodeHasBeenSet() const { return m_exitCodeHasBeenSet; }
50 inline void SetExitCode(int value) { m_exitCodeHasBeenSet = true; m_exitCode = value; }
51 inline AttemptTaskContainerDetails& WithExitCode(int value) { SetExitCode(value); return *this;}
53
55
58 inline const Aws::String& GetName() const{ return m_name; }
59 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
60 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
61 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
62 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
63 inline AttemptTaskContainerDetails& WithName(const Aws::String& value) { SetName(value); return *this;}
64 inline AttemptTaskContainerDetails& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
65 inline AttemptTaskContainerDetails& WithName(const char* value) { SetName(value); return *this;}
67
69
73 inline const Aws::String& GetReason() const{ return m_reason; }
74 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
75 inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; }
76 inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
77 inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); }
78 inline AttemptTaskContainerDetails& WithReason(const Aws::String& value) { SetReason(value); return *this;}
79 inline AttemptTaskContainerDetails& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;}
80 inline AttemptTaskContainerDetails& WithReason(const char* value) { SetReason(value); return *this;}
82
84
90 inline const Aws::String& GetLogStreamName() const{ return m_logStreamName; }
91 inline bool LogStreamNameHasBeenSet() const { return m_logStreamNameHasBeenSet; }
92 inline void SetLogStreamName(const Aws::String& value) { m_logStreamNameHasBeenSet = true; m_logStreamName = value; }
93 inline void SetLogStreamName(Aws::String&& value) { m_logStreamNameHasBeenSet = true; m_logStreamName = std::move(value); }
94 inline void SetLogStreamName(const char* value) { m_logStreamNameHasBeenSet = true; m_logStreamName.assign(value); }
95 inline AttemptTaskContainerDetails& WithLogStreamName(const Aws::String& value) { SetLogStreamName(value); return *this;}
96 inline AttemptTaskContainerDetails& WithLogStreamName(Aws::String&& value) { SetLogStreamName(std::move(value)); return *this;}
97 inline AttemptTaskContainerDetails& WithLogStreamName(const char* value) { SetLogStreamName(value); return *this;}
99
101
104 inline const Aws::Vector<NetworkInterface>& GetNetworkInterfaces() const{ return m_networkInterfaces; }
105 inline bool NetworkInterfacesHasBeenSet() const { return m_networkInterfacesHasBeenSet; }
106 inline void SetNetworkInterfaces(const Aws::Vector<NetworkInterface>& value) { m_networkInterfacesHasBeenSet = true; m_networkInterfaces = value; }
107 inline void SetNetworkInterfaces(Aws::Vector<NetworkInterface>&& value) { m_networkInterfacesHasBeenSet = true; m_networkInterfaces = std::move(value); }
110 inline AttemptTaskContainerDetails& AddNetworkInterfaces(const NetworkInterface& value) { m_networkInterfacesHasBeenSet = true; m_networkInterfaces.push_back(value); return *this; }
111 inline AttemptTaskContainerDetails& AddNetworkInterfaces(NetworkInterface&& value) { m_networkInterfacesHasBeenSet = true; m_networkInterfaces.push_back(std::move(value)); return *this; }
113 private:
114
115 int m_exitCode;
116 bool m_exitCodeHasBeenSet = false;
117
118 Aws::String m_name;
119 bool m_nameHasBeenSet = false;
120
121 Aws::String m_reason;
122 bool m_reasonHasBeenSet = false;
123
124 Aws::String m_logStreamName;
125 bool m_logStreamNameHasBeenSet = false;
126
127 Aws::Vector<NetworkInterface> m_networkInterfaces;
128 bool m_networkInterfacesHasBeenSet = false;
129 };
130
131} // namespace Model
132} // namespace Batch
133} // namespace Aws
void SetNetworkInterfaces(Aws::Vector< NetworkInterface > &&value)
AttemptTaskContainerDetails & WithName(const Aws::String &value)
AttemptTaskContainerDetails & AddNetworkInterfaces(NetworkInterface &&value)
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
AttemptTaskContainerDetails & WithReason(Aws::String &&value)
AttemptTaskContainerDetails & WithNetworkInterfaces(const Aws::Vector< NetworkInterface > &value)
AttemptTaskContainerDetails & WithLogStreamName(Aws::String &&value)
AttemptTaskContainerDetails & WithExitCode(int value)
void SetNetworkInterfaces(const Aws::Vector< NetworkInterface > &value)
AWS_BATCH_API AttemptTaskContainerDetails(Aws::Utils::Json::JsonView jsonValue)
AttemptTaskContainerDetails & WithLogStreamName(const char *value)
AttemptTaskContainerDetails & WithLogStreamName(const Aws::String &value)
const Aws::Vector< NetworkInterface > & GetNetworkInterfaces() const
AttemptTaskContainerDetails & AddNetworkInterfaces(const NetworkInterface &value)
AttemptTaskContainerDetails & WithName(const char *value)
AttemptTaskContainerDetails & WithReason(const Aws::String &value)
AttemptTaskContainerDetails & WithName(Aws::String &&value)
AttemptTaskContainerDetails & WithReason(const char *value)
AttemptTaskContainerDetails & WithNetworkInterfaces(Aws::Vector< NetworkInterface > &&value)
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