AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
TrialComponentStatus.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/TrialComponentPrimaryStatus.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
29 public:
30 AWS_SAGEMAKER_API TrialComponentStatus() = default;
33 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline TrialComponentPrimaryStatus GetPrimaryStatus() const { return m_primaryStatus; }
40 inline bool PrimaryStatusHasBeenSet() const { return m_primaryStatusHasBeenSet; }
42 m_primaryStatusHasBeenSet = true;
43 m_primaryStatus = value;
44 }
46 SetPrimaryStatus(value);
47 return *this;
48 }
50
52
55 inline const Aws::String& GetMessage() const { return m_message; }
56 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
57 template <typename MessageT = Aws::String>
58 void SetMessage(MessageT&& value) {
59 m_messageHasBeenSet = true;
60 m_message = std::forward<MessageT>(value);
61 }
62 template <typename MessageT = Aws::String>
63 TrialComponentStatus& WithMessage(MessageT&& value) {
64 SetMessage(std::forward<MessageT>(value));
65 return *this;
66 }
68 private:
70
71 Aws::String m_message;
72 bool m_primaryStatusHasBeenSet = false;
73 bool m_messageHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace SageMaker
78} // namespace Aws
TrialComponentStatus & WithPrimaryStatus(TrialComponentPrimaryStatus value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
TrialComponentStatus & WithMessage(MessageT &&value)
AWS_SAGEMAKER_API TrialComponentStatus()=default
AWS_SAGEMAKER_API TrialComponentStatus(Aws::Utils::Json::JsonView jsonValue)
TrialComponentPrimaryStatus GetPrimaryStatus() const
void SetPrimaryStatus(TrialComponentPrimaryStatus value)
AWS_SAGEMAKER_API TrialComponentStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue