AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AlgorithmStatusItem.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/sagemaker/model/DetailedAlgorithmStatus.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SageMaker
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_SAGEMAKER_API AlgorithmStatusItem();
36 AWS_SAGEMAKER_API AlgorithmStatusItem(Aws::Utils::Json::JsonView jsonValue);
38 AWS_SAGEMAKER_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 AlgorithmStatusItem& WithName(const Aws::String& value) { SetName(value); return *this;}
51 inline AlgorithmStatusItem& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
52 inline AlgorithmStatusItem& WithName(const char* value) { SetName(value); return *this;}
54
56
59 inline const DetailedAlgorithmStatus& GetStatus() const{ return m_status; }
60 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
61 inline void SetStatus(const DetailedAlgorithmStatus& value) { m_statusHasBeenSet = true; m_status = value; }
62 inline void SetStatus(DetailedAlgorithmStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
63 inline AlgorithmStatusItem& WithStatus(const DetailedAlgorithmStatus& value) { SetStatus(value); return *this;}
64 inline AlgorithmStatusItem& WithStatus(DetailedAlgorithmStatus&& value) { SetStatus(std::move(value)); return *this;}
66
68
71 inline const Aws::String& GetFailureReason() const{ return m_failureReason; }
72 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
73 inline void SetFailureReason(const Aws::String& value) { m_failureReasonHasBeenSet = true; m_failureReason = value; }
74 inline void SetFailureReason(Aws::String&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::move(value); }
75 inline void SetFailureReason(const char* value) { m_failureReasonHasBeenSet = true; m_failureReason.assign(value); }
76 inline AlgorithmStatusItem& WithFailureReason(const Aws::String& value) { SetFailureReason(value); return *this;}
77 inline AlgorithmStatusItem& WithFailureReason(Aws::String&& value) { SetFailureReason(std::move(value)); return *this;}
78 inline AlgorithmStatusItem& WithFailureReason(const char* value) { SetFailureReason(value); return *this;}
80 private:
81
82 Aws::String m_name;
83 bool m_nameHasBeenSet = false;
84
86 bool m_statusHasBeenSet = false;
87
88 Aws::String m_failureReason;
89 bool m_failureReasonHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace SageMaker
94} // namespace Aws
AlgorithmStatusItem & WithFailureReason(Aws::String &&value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetFailureReason(const Aws::String &value)
void SetStatus(const DetailedAlgorithmStatus &value)
AlgorithmStatusItem & WithName(const char *value)
AlgorithmStatusItem & WithFailureReason(const Aws::String &value)
AlgorithmStatusItem & WithFailureReason(const char *value)
AlgorithmStatusItem & WithName(Aws::String &&value)
void SetStatus(DetailedAlgorithmStatus &&value)
AWS_SAGEMAKER_API AlgorithmStatusItem(Aws::Utils::Json::JsonView jsonValue)
AlgorithmStatusItem & WithName(const Aws::String &value)
AlgorithmStatusItem & WithStatus(DetailedAlgorithmStatus &&value)
AlgorithmStatusItem & WithStatus(const DetailedAlgorithmStatus &value)
const DetailedAlgorithmStatus & GetStatus() const
AWS_SAGEMAKER_API AlgorithmStatusItem & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue