AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AutoRollbackConfig.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/sagemaker/model/Alarm.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SageMaker
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_SAGEMAKER_API AutoRollbackConfig();
37 AWS_SAGEMAKER_API AutoRollbackConfig(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
48 inline const Aws::Vector<Alarm>& GetAlarms() const{ return m_alarms; }
49 inline bool AlarmsHasBeenSet() const { return m_alarmsHasBeenSet; }
50 inline void SetAlarms(const Aws::Vector<Alarm>& value) { m_alarmsHasBeenSet = true; m_alarms = value; }
51 inline void SetAlarms(Aws::Vector<Alarm>&& value) { m_alarmsHasBeenSet = true; m_alarms = std::move(value); }
52 inline AutoRollbackConfig& WithAlarms(const Aws::Vector<Alarm>& value) { SetAlarms(value); return *this;}
53 inline AutoRollbackConfig& WithAlarms(Aws::Vector<Alarm>&& value) { SetAlarms(std::move(value)); return *this;}
54 inline AutoRollbackConfig& AddAlarms(const Alarm& value) { m_alarmsHasBeenSet = true; m_alarms.push_back(value); return *this; }
55 inline AutoRollbackConfig& AddAlarms(Alarm&& value) { m_alarmsHasBeenSet = true; m_alarms.push_back(std::move(value)); return *this; }
57 private:
58
59 Aws::Vector<Alarm> m_alarms;
60 bool m_alarmsHasBeenSet = false;
61 };
62
63} // namespace Model
64} // namespace SageMaker
65} // namespace Aws
AutoRollbackConfig & WithAlarms(const Aws::Vector< Alarm > &value)
AWS_SAGEMAKER_API AutoRollbackConfig(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Alarm > & GetAlarms() const
AutoRollbackConfig & AddAlarms(Alarm &&value)
AutoRollbackConfig & AddAlarms(const Alarm &value)
void SetAlarms(const Aws::Vector< Alarm > &value)
AutoRollbackConfig & WithAlarms(Aws::Vector< Alarm > &&value)
void SetAlarms(Aws::Vector< Alarm > &&value)
AWS_SAGEMAKER_API AutoRollbackConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue