AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ContainerSummary.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 ContainerSummary();
38 AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline int GetExitCode() const{ return m_exitCode; }
46 inline bool ExitCodeHasBeenSet() const { return m_exitCodeHasBeenSet; }
47 inline void SetExitCode(int value) { m_exitCodeHasBeenSet = true; m_exitCode = value; }
48 inline ContainerSummary& WithExitCode(int value) { SetExitCode(value); return *this;}
50
52
56 inline const Aws::String& GetReason() const{ return m_reason; }
57 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
58 inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; }
59 inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
60 inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); }
61 inline ContainerSummary& WithReason(const Aws::String& value) { SetReason(value); return *this;}
62 inline ContainerSummary& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;}
63 inline ContainerSummary& WithReason(const char* value) { SetReason(value); return *this;}
65 private:
66
67 int m_exitCode;
68 bool m_exitCodeHasBeenSet = false;
69
70 Aws::String m_reason;
71 bool m_reasonHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace Batch
76} // namespace Aws
const Aws::String & GetReason() const
void SetReason(const Aws::String &value)
AWS_BATCH_API ContainerSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BATCH_API ContainerSummary(Aws::Utils::Json::JsonView jsonValue)
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
ContainerSummary & WithExitCode(int value)
ContainerSummary & WithReason(const char *value)
ContainerSummary & WithReason(Aws::String &&value)
void SetReason(Aws::String &&value)
ContainerSummary & WithReason(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue