AWS SDK for C++  1.9.153
AWS SDK for C++
ModelPackageStatusItem.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace SageMaker
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
46  inline const Aws::String& GetName() const{ return m_name; }
47 
52  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
53 
58  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
59 
64  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
65 
70  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
71 
76  inline ModelPackageStatusItem& WithName(const Aws::String& value) { SetName(value); return *this;}
77 
82  inline ModelPackageStatusItem& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
83 
88  inline ModelPackageStatusItem& WithName(const char* value) { SetName(value); return *this;}
89 
90 
94  inline const DetailedModelPackageStatus& GetStatus() const{ return m_status; }
95 
99  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
100 
104  inline void SetStatus(const DetailedModelPackageStatus& value) { m_statusHasBeenSet = true; m_status = value; }
105 
109  inline void SetStatus(DetailedModelPackageStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
110 
114  inline ModelPackageStatusItem& WithStatus(const DetailedModelPackageStatus& value) { SetStatus(value); return *this;}
115 
119  inline ModelPackageStatusItem& WithStatus(DetailedModelPackageStatus&& value) { SetStatus(std::move(value)); return *this;}
120 
121 
125  inline const Aws::String& GetFailureReason() const{ return m_failureReason; }
126 
130  inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
131 
135  inline void SetFailureReason(const Aws::String& value) { m_failureReasonHasBeenSet = true; m_failureReason = value; }
136 
140  inline void SetFailureReason(Aws::String&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::move(value); }
141 
145  inline void SetFailureReason(const char* value) { m_failureReasonHasBeenSet = true; m_failureReason.assign(value); }
146 
150  inline ModelPackageStatusItem& WithFailureReason(const Aws::String& value) { SetFailureReason(value); return *this;}
151 
155  inline ModelPackageStatusItem& WithFailureReason(Aws::String&& value) { SetFailureReason(std::move(value)); return *this;}
156 
160  inline ModelPackageStatusItem& WithFailureReason(const char* value) { SetFailureReason(value); return *this;}
161 
162  private:
163 
164  Aws::String m_name;
165  bool m_nameHasBeenSet;
166 
168  bool m_statusHasBeenSet;
169 
170  Aws::String m_failureReason;
171  bool m_failureReasonHasBeenSet;
172  };
173 
174 } // namespace Model
175 } // namespace SageMaker
176 } // namespace Aws
Aws::SageMaker::Model::ModelPackageStatusItem::ModelPackageStatusItem
ModelPackageStatusItem(Aws::Utils::Json::JsonView jsonValue)
Aws::SavingsPlans::Model::SavingsPlanProductType::NOT_SET
@ NOT_SET
Aws::SageMaker::Model::ModelPackageStatusItem::NameHasBeenSet
bool NameHasBeenSet() const
Definition: ModelPackageStatusItem.h:52
Aws::SageMaker::Model::ModelPackageStatusItem::WithStatus
ModelPackageStatusItem & WithStatus(DetailedModelPackageStatus &&value)
Definition: ModelPackageStatusItem.h:119
DetailedModelPackageStatus.h
SageMaker_EXPORTS.h
Aws::SageMaker::Model::ModelPackageStatusItem::WithFailureReason
ModelPackageStatusItem & WithFailureReason(const Aws::String &value)
Definition: ModelPackageStatusItem.h:150
Aws::SageMaker::Model::ModelPackageStatusItem::SetName
void SetName(const Aws::String &value)
Definition: ModelPackageStatusItem.h:58
Aws::SageMaker::Model::ModelPackageStatusItem::GetFailureReason
const Aws::String & GetFailureReason() const
Definition: ModelPackageStatusItem.h:125
Aws::SageMaker::Model::ModelPackageStatusItem
Definition: ModelPackageStatusItem.h:34
Aws::SageMaker::Model::ModelPackageStatusItem::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::SageMaker::Model::ModelPackageStatusItem::WithName
ModelPackageStatusItem & WithName(const char *value)
Definition: ModelPackageStatusItem.h:88
AWS_SAGEMAKER_API
#define AWS_SAGEMAKER_API
Definition: SageMaker_EXPORTS.h:28
Aws::SageMaker::Model::ModelPackageStatusItem::WithName
ModelPackageStatusItem & WithName(const Aws::String &value)
Definition: ModelPackageStatusItem.h:76
Aws::SageMaker::Model::ModelPackageStatusItem::WithName
ModelPackageStatusItem & WithName(Aws::String &&value)
Definition: ModelPackageStatusItem.h:82
Aws::SageMaker::Model::ModelPackageStatusItem::WithFailureReason
ModelPackageStatusItem & WithFailureReason(Aws::String &&value)
Definition: ModelPackageStatusItem.h:155
Aws::SageMaker::Model::ModelPackageStatusItem::FailureReasonHasBeenSet
bool FailureReasonHasBeenSet() const
Definition: ModelPackageStatusItem.h:130
Aws::SageMaker::Model::ModelPackageStatusItem::SetName
void SetName(const char *value)
Definition: ModelPackageStatusItem.h:70
Aws::SageMaker::Model::ModelPackageStatusItem::WithStatus
ModelPackageStatusItem & WithStatus(const DetailedModelPackageStatus &value)
Definition: ModelPackageStatusItem.h:114
Aws::SageMaker::Model::ModelPackageStatusItem::operator=
ModelPackageStatusItem & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::SageMaker::Model::ModelPackageStatusItem::SetStatus
void SetStatus(DetailedModelPackageStatus &&value)
Definition: ModelPackageStatusItem.h:109
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::SageMaker::Model::ModelPackageStatusItem::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: ModelPackageStatusItem.h:99
Aws::SageMaker::Model::ModelPackageStatusItem::SetFailureReason
void SetFailureReason(const Aws::String &value)
Definition: ModelPackageStatusItem.h:135
Aws::SageMaker::Model::ModelPackageStatusItem::SetFailureReason
void SetFailureReason(const char *value)
Definition: ModelPackageStatusItem.h:145
Aws::SageMaker::Model::DetailedModelPackageStatus
DetailedModelPackageStatus
Definition: DetailedModelPackageStatus.h:17
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::SageMaker::Model::ModelPackageStatusItem::ModelPackageStatusItem
ModelPackageStatusItem()
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SageMaker::Model::ModelPackageStatusItem::GetName
const Aws::String & GetName() const
Definition: ModelPackageStatusItem.h:46
Aws::SageMaker::Model::ModelPackageStatusItem::GetStatus
const DetailedModelPackageStatus & GetStatus() const
Definition: ModelPackageStatusItem.h:94
Aws::SageMaker::Model::ModelPackageStatusItem::SetName
void SetName(Aws::String &&value)
Definition: ModelPackageStatusItem.h:64
Aws::SageMaker::Model::ModelPackageStatusItem::WithFailureReason
ModelPackageStatusItem & WithFailureReason(const char *value)
Definition: ModelPackageStatusItem.h:160
Aws::SageMaker::Model::ModelPackageStatusItem::SetFailureReason
void SetFailureReason(Aws::String &&value)
Definition: ModelPackageStatusItem.h:140
Aws::SageMaker::Model::ModelPackageStatusItem::SetStatus
void SetStatus(const DetailedModelPackageStatus &value)
Definition: ModelPackageStatusItem.h:104