AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
SecondaryStatusTransition.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/sagemaker/model/SecondaryStatus.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SageMaker
24{
25namespace Model
26{
27
42 {
43 public:
44 AWS_SAGEMAKER_API SecondaryStatusTransition() = default;
47 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
48
49
51
74 inline SecondaryStatus GetStatus() const { return m_status; }
75 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
76 inline void SetStatus(SecondaryStatus value) { m_statusHasBeenSet = true; m_status = value; }
77 inline SecondaryStatusTransition& WithStatus(SecondaryStatus value) { SetStatus(value); return *this;}
79
81
85 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
86 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
87 template<typename StartTimeT = Aws::Utils::DateTime>
88 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
89 template<typename StartTimeT = Aws::Utils::DateTime>
90 SecondaryStatusTransition& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
92
94
99 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
100 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
101 template<typename EndTimeT = Aws::Utils::DateTime>
102 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
103 template<typename EndTimeT = Aws::Utils::DateTime>
104 SecondaryStatusTransition& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
106
108
129 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
130 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
131 template<typename StatusMessageT = Aws::String>
132 void SetStatusMessage(StatusMessageT&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::forward<StatusMessageT>(value); }
133 template<typename StatusMessageT = Aws::String>
134 SecondaryStatusTransition& WithStatusMessage(StatusMessageT&& value) { SetStatusMessage(std::forward<StatusMessageT>(value)); return *this;}
136 private:
137
139 bool m_statusHasBeenSet = false;
140
141 Aws::Utils::DateTime m_startTime{};
142 bool m_startTimeHasBeenSet = false;
143
144 Aws::Utils::DateTime m_endTime{};
145 bool m_endTimeHasBeenSet = false;
146
147 Aws::String m_statusMessage;
148 bool m_statusMessageHasBeenSet = false;
149 };
150
151} // namespace Model
152} // namespace SageMaker
153} // namespace Aws
SecondaryStatusTransition & WithStartTime(StartTimeT &&value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
SecondaryStatusTransition & WithEndTime(EndTimeT &&value)
AWS_SAGEMAKER_API SecondaryStatusTransition & operator=(Aws::Utils::Json::JsonView jsonValue)
SecondaryStatusTransition & WithStatus(SecondaryStatus value)
SecondaryStatusTransition & WithStatusMessage(StatusMessageT &&value)
AWS_SAGEMAKER_API SecondaryStatusTransition(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API SecondaryStatusTransition()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue