AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ModelPackageStatusItem.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/sagemaker/SageMaker_EXPORTS.h>
9#include <aws/sagemaker/model/DetailedModelPackageStatus.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace SageMaker {
21namespace Model {
22
30 public:
31 AWS_SAGEMAKER_API ModelPackageStatusItem() = default;
34 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::String& GetName() const { return m_name; }
42 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
43 template <typename NameT = Aws::String>
44 void SetName(NameT&& value) {
45 m_nameHasBeenSet = true;
46 m_name = std::forward<NameT>(value);
47 }
48 template <typename NameT = Aws::String>
50 SetName(std::forward<NameT>(value));
51 return *this;
52 }
54
56
59 inline DetailedModelPackageStatus GetStatus() const { return m_status; }
60 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
62 m_statusHasBeenSet = true;
63 m_status = value;
64 }
66 SetStatus(value);
67 return *this;
68 }
70
72
75 inline const Aws::String& GetFailureReason() const { return m_failureReason; }
76 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
77 template <typename FailureReasonT = Aws::String>
78 void SetFailureReason(FailureReasonT&& value) {
79 m_failureReasonHasBeenSet = true;
80 m_failureReason = std::forward<FailureReasonT>(value);
81 }
82 template <typename FailureReasonT = Aws::String>
83 ModelPackageStatusItem& WithFailureReason(FailureReasonT&& value) {
84 SetFailureReason(std::forward<FailureReasonT>(value));
85 return *this;
86 }
88 private:
89 Aws::String m_name;
90
92
93 Aws::String m_failureReason;
94 bool m_nameHasBeenSet = false;
95 bool m_statusHasBeenSet = false;
96 bool m_failureReasonHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace SageMaker
101} // 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