AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
ModelPackageStatusItem.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/DetailedModelPackageStatus.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
34 {
35 public:
36 AWS_SAGEMAKER_API ModelPackageStatusItem() = default;
39 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const Aws::String& GetName() const { return m_name; }
48 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
49 template<typename NameT = Aws::String>
50 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
51 template<typename NameT = Aws::String>
52 ModelPackageStatusItem& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
54
56
59 inline DetailedModelPackageStatus GetStatus() const { return m_status; }
60 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
61 inline void SetStatus(DetailedModelPackageStatus value) { m_statusHasBeenSet = true; m_status = value; }
64
66
69 inline const Aws::String& GetFailureReason() const { return m_failureReason; }
70 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
71 template<typename FailureReasonT = Aws::String>
72 void SetFailureReason(FailureReasonT&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::forward<FailureReasonT>(value); }
73 template<typename FailureReasonT = Aws::String>
74 ModelPackageStatusItem& WithFailureReason(FailureReasonT&& value) { SetFailureReason(std::forward<FailureReasonT>(value)); return *this;}
76 private:
77
78 Aws::String m_name;
79 bool m_nameHasBeenSet = false;
80
82 bool m_statusHasBeenSet = false;
83
84 Aws::String m_failureReason;
85 bool m_failureReasonHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace SageMaker
90} // namespace Aws
AWS_SAGEMAKER_API ModelPackageStatusItem & operator=(Aws::Utils::Json::JsonView jsonValue)
ModelPackageStatusItem & WithStatus(DetailedModelPackageStatus value)
void SetStatus(DetailedModelPackageStatus value)
AWS_SAGEMAKER_API ModelPackageStatusItem()=default
ModelPackageStatusItem & WithFailureReason(FailureReasonT &&value)
ModelPackageStatusItem & WithName(NameT &&value)
AWS_SAGEMAKER_API ModelPackageStatusItem(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue