AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Batch
22{
23namespace Model
24{
25
33 {
34 public:
38 AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetName() const{ return m_name; }
46 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
47 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
48 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
49 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
50 inline EksAttemptContainerDetail& WithName(const Aws::String& value) { SetName(value); return *this;}
51 inline EksAttemptContainerDetail& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
52 inline EksAttemptContainerDetail& WithName(const char* value) { SetName(value); return *this;}
54
56
59 inline const Aws::String& GetContainerID() const{ return m_containerID; }
60 inline bool ContainerIDHasBeenSet() const { return m_containerIDHasBeenSet; }
61 inline void SetContainerID(const Aws::String& value) { m_containerIDHasBeenSet = true; m_containerID = value; }
62 inline void SetContainerID(Aws::String&& value) { m_containerIDHasBeenSet = true; m_containerID = std::move(value); }
63 inline void SetContainerID(const char* value) { m_containerIDHasBeenSet = true; m_containerID.assign(value); }
64 inline EksAttemptContainerDetail& WithContainerID(const Aws::String& value) { SetContainerID(value); return *this;}
65 inline EksAttemptContainerDetail& WithContainerID(Aws::String&& value) { SetContainerID(std::move(value)); return *this;}
66 inline EksAttemptContainerDetail& WithContainerID(const char* value) { SetContainerID(value); return *this;}
68
70
74 inline int GetExitCode() const{ return m_exitCode; }
75 inline bool ExitCodeHasBeenSet() const { return m_exitCodeHasBeenSet; }
76 inline void SetExitCode(int value) { m_exitCodeHasBeenSet = true; m_exitCode = value; }
77 inline EksAttemptContainerDetail& WithExitCode(int value) { SetExitCode(value); return *this;}
79
81
85 inline const Aws::String& GetReason() const{ return m_reason; }
86 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
87 inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; }
88 inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
89 inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); }
90 inline EksAttemptContainerDetail& WithReason(const Aws::String& value) { SetReason(value); return *this;}
91 inline EksAttemptContainerDetail& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;}
92 inline EksAttemptContainerDetail& WithReason(const char* value) { SetReason(value); return *this;}
94 private:
95
96 Aws::String m_name;
97 bool m_nameHasBeenSet = false;
98
99 Aws::String m_containerID;
100 bool m_containerIDHasBeenSet = false;
101
102 int m_exitCode;
103 bool m_exitCodeHasBeenSet = false;
104
105 Aws::String m_reason;
106 bool m_reasonHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace Batch
111} // namespace Aws
EksAttemptContainerDetail & WithContainerID(const char *value)
AWS_BATCH_API EksAttemptContainerDetail(Aws::Utils::Json::JsonView jsonValue)
EksAttemptContainerDetail & WithReason(const char *value)
AWS_BATCH_API EksAttemptContainerDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
EksAttemptContainerDetail & WithContainerID(const Aws::String &value)
EksAttemptContainerDetail & WithReason(const Aws::String &value)
EksAttemptContainerDetail & WithExitCode(int value)
EksAttemptContainerDetail & WithName(const Aws::String &value)
EksAttemptContainerDetail & WithReason(Aws::String &&value)
EksAttemptContainerDetail & WithContainerID(Aws::String &&value)
EksAttemptContainerDetail & WithName(const char *value)
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
EksAttemptContainerDetail & WithName(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue