AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
AutoRollbackConfig.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/sagemaker/SageMaker_EXPORTS.h>
9#include <aws/sagemaker/model/Alarm.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
30 public:
31 AWS_SAGEMAKER_API AutoRollbackConfig() = default;
32 AWS_SAGEMAKER_API AutoRollbackConfig(Aws::Utils::Json::JsonView jsonValue);
34 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
42 inline const Aws::Vector<Alarm>& GetAlarms() const { return m_alarms; }
43 inline bool AlarmsHasBeenSet() const { return m_alarmsHasBeenSet; }
44 template <typename AlarmsT = Aws::Vector<Alarm>>
45 void SetAlarms(AlarmsT&& value) {
46 m_alarmsHasBeenSet = true;
47 m_alarms = std::forward<AlarmsT>(value);
48 }
49 template <typename AlarmsT = Aws::Vector<Alarm>>
50 AutoRollbackConfig& WithAlarms(AlarmsT&& value) {
51 SetAlarms(std::forward<AlarmsT>(value));
52 return *this;
53 }
54 template <typename AlarmsT = Alarm>
55 AutoRollbackConfig& AddAlarms(AlarmsT&& value) {
56 m_alarmsHasBeenSet = true;
57 m_alarms.emplace_back(std::forward<AlarmsT>(value));
58 return *this;
59 }
61 private:
62 Aws::Vector<Alarm> m_alarms;
63 bool m_alarmsHasBeenSet = false;
64};
65
66} // namespace Model
67} // namespace SageMaker
68} // namespace Aws
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(AlarmsT &&value)
AutoRollbackConfig & WithAlarms(AlarmsT &&value)
AWS_SAGEMAKER_API AutoRollbackConfig()=default
AWS_SAGEMAKER_API AutoRollbackConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue