AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
50 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
51 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
52 inline ModelPackageStatusItem& WithName(const Aws::String& value) { SetName(value); return *this;}
53 inline ModelPackageStatusItem& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
54 inline ModelPackageStatusItem& WithName(const char* value) { SetName(value); return *this;}
56
58
61 inline const DetailedModelPackageStatus& GetStatus() const{ return m_status; }
62 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
63 inline void SetStatus(const DetailedModelPackageStatus& value) { m_statusHasBeenSet = true; m_status = value; }
64 inline void SetStatus(DetailedModelPackageStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
65 inline ModelPackageStatusItem& WithStatus(const DetailedModelPackageStatus& value) { SetStatus(value); return *this;}
66 inline ModelPackageStatusItem& WithStatus(DetailedModelPackageStatus&& value) { SetStatus(std::move(value)); return *this;}
68
70
73 inline const Aws::String& GetFailureReason() const{ return m_failureReason; }
74 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
75 inline void SetFailureReason(const Aws::String& value) { m_failureReasonHasBeenSet = true; m_failureReason = value; }
76 inline void SetFailureReason(Aws::String&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::move(value); }
77 inline void SetFailureReason(const char* value) { m_failureReasonHasBeenSet = true; m_failureReason.assign(value); }
78 inline ModelPackageStatusItem& WithFailureReason(const Aws::String& value) { SetFailureReason(value); return *this;}
79 inline ModelPackageStatusItem& WithFailureReason(Aws::String&& value) { SetFailureReason(std::move(value)); return *this;}
80 inline ModelPackageStatusItem& WithFailureReason(const char* value) { SetFailureReason(value); return *this;}
82 private:
83
84 Aws::String m_name;
85 bool m_nameHasBeenSet = false;
86
88 bool m_statusHasBeenSet = false;
89
90 Aws::String m_failureReason;
91 bool m_failureReasonHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace SageMaker
96} // namespace Aws
void SetStatus(DetailedModelPackageStatus &&value)
AWS_SAGEMAKER_API ModelPackageStatusItem & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetStatus(const DetailedModelPackageStatus &value)
const DetailedModelPackageStatus & GetStatus() const
ModelPackageStatusItem & WithName(const Aws::String &value)
ModelPackageStatusItem & WithFailureReason(const Aws::String &value)
ModelPackageStatusItem & WithStatus(const DetailedModelPackageStatus &value)
ModelPackageStatusItem & WithName(Aws::String &&value)
ModelPackageStatusItem & WithName(const char *value)
AWS_SAGEMAKER_API ModelPackageStatusItem(Aws::Utils::Json::JsonView jsonValue)
ModelPackageStatusItem & WithFailureReason(const char *value)
ModelPackageStatusItem & WithStatus(DetailedModelPackageStatus &&value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
ModelPackageStatusItem & WithFailureReason(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue