AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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:
35 AWS_BATCH_API EksAttemptContainerDetail() = default;
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 template<typename NameT = Aws::String>
48 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
49 template<typename NameT = Aws::String>
50 EksAttemptContainerDetail& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_containerIDHasBeenSet = true; m_containerID = std::forward<ContainerIDT>(value); }
61 template<typename ContainerIDT = Aws::String>
62 EksAttemptContainerDetail& WithContainerID(ContainerIDT&& value) { SetContainerID(std::forward<ContainerIDT>(value)); return *this;}
64
66
70 inline int GetExitCode() const { return m_exitCode; }
71 inline bool ExitCodeHasBeenSet() const { return m_exitCodeHasBeenSet; }
72 inline void SetExitCode(int value) { m_exitCodeHasBeenSet = true; m_exitCode = value; }
73 inline EksAttemptContainerDetail& WithExitCode(int value) { SetExitCode(value); return *this;}
75
77
81 inline const Aws::String& GetReason() const { return m_reason; }
82 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
83 template<typename ReasonT = Aws::String>
84 void SetReason(ReasonT&& value) { m_reasonHasBeenSet = true; m_reason = std::forward<ReasonT>(value); }
85 template<typename ReasonT = Aws::String>
86 EksAttemptContainerDetail& WithReason(ReasonT&& value) { SetReason(std::forward<ReasonT>(value)); return *this;}
88 private:
89
90 Aws::String m_name;
91 bool m_nameHasBeenSet = false;
92
93 Aws::String m_containerID;
94 bool m_containerIDHasBeenSet = false;
95
96 int m_exitCode{0};
97 bool m_exitCodeHasBeenSet = false;
98
99 Aws::String m_reason;
100 bool m_reasonHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace Batch
105} // 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