AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
47 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
48
49
51
74 inline const SecondaryStatus& GetStatus() const{ return m_status; }
75 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
76 inline void SetStatus(const SecondaryStatus& value) { m_statusHasBeenSet = true; m_status = value; }
77 inline void SetStatus(SecondaryStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
78 inline SecondaryStatusTransition& WithStatus(const SecondaryStatus& value) { SetStatus(value); return *this;}
79 inline SecondaryStatusTransition& WithStatus(SecondaryStatus&& value) { SetStatus(std::move(value)); return *this;}
81
83
87 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
88 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
89 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
90 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
91 inline SecondaryStatusTransition& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
92 inline SecondaryStatusTransition& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
94
96
101 inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
102 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
103 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
104 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
105 inline SecondaryStatusTransition& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
106 inline SecondaryStatusTransition& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
108
110
131 inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; }
132 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
133 inline void SetStatusMessage(const Aws::String& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; }
134 inline void SetStatusMessage(Aws::String&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::move(value); }
135 inline void SetStatusMessage(const char* value) { m_statusMessageHasBeenSet = true; m_statusMessage.assign(value); }
136 inline SecondaryStatusTransition& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;}
137 inline SecondaryStatusTransition& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;}
138 inline SecondaryStatusTransition& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;}
140 private:
141
142 SecondaryStatus m_status;
143 bool m_statusHasBeenSet = false;
144
145 Aws::Utils::DateTime m_startTime;
146 bool m_startTimeHasBeenSet = false;
147
148 Aws::Utils::DateTime m_endTime;
149 bool m_endTimeHasBeenSet = false;
150
151 Aws::String m_statusMessage;
152 bool m_statusMessageHasBeenSet = false;
153 };
154
155} // namespace Model
156} // namespace SageMaker
157} // namespace Aws
SecondaryStatusTransition & WithStatusMessage(Aws::String &&value)
SecondaryStatusTransition & WithStartTime(Aws::Utils::DateTime &&value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetEndTime(const Aws::Utils::DateTime &value)
SecondaryStatusTransition & WithStatus(const SecondaryStatus &value)
void SetStartTime(const Aws::Utils::DateTime &value)
AWS_SAGEMAKER_API SecondaryStatusTransition & operator=(Aws::Utils::Json::JsonView jsonValue)
SecondaryStatusTransition & WithStartTime(const Aws::Utils::DateTime &value)
SecondaryStatusTransition & WithStatus(SecondaryStatus &&value)
SecondaryStatusTransition & WithStatusMessage(const char *value)
SecondaryStatusTransition & WithStatusMessage(const Aws::String &value)
SecondaryStatusTransition & WithEndTime(const Aws::Utils::DateTime &value)
SecondaryStatusTransition & WithEndTime(Aws::Utils::DateTime &&value)
AWS_SAGEMAKER_API SecondaryStatusTransition(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue