AWS SDK for C++  1.9.160
AWS SDK for C++
AutoRollbackConfig.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace SageMaker
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
47  inline const Aws::Vector<Alarm>& GetAlarms() const{ return m_alarms; }
48 
54  inline bool AlarmsHasBeenSet() const { return m_alarmsHasBeenSet; }
55 
61  inline void SetAlarms(const Aws::Vector<Alarm>& value) { m_alarmsHasBeenSet = true; m_alarms = value; }
62 
68  inline void SetAlarms(Aws::Vector<Alarm>&& value) { m_alarmsHasBeenSet = true; m_alarms = std::move(value); }
69 
75  inline AutoRollbackConfig& WithAlarms(const Aws::Vector<Alarm>& value) { SetAlarms(value); return *this;}
76 
82  inline AutoRollbackConfig& WithAlarms(Aws::Vector<Alarm>&& value) { SetAlarms(std::move(value)); return *this;}
83 
89  inline AutoRollbackConfig& AddAlarms(const Alarm& value) { m_alarmsHasBeenSet = true; m_alarms.push_back(value); return *this; }
90 
96  inline AutoRollbackConfig& AddAlarms(Alarm&& value) { m_alarmsHasBeenSet = true; m_alarms.push_back(std::move(value)); return *this; }
97 
98  private:
99 
100  Aws::Vector<Alarm> m_alarms;
101  bool m_alarmsHasBeenSet;
102  };
103 
104 } // namespace Model
105 } // namespace SageMaker
106 } // namespace Aws
Aws::SavingsPlans::Model::SavingsPlanProductType::NOT_SET
@ NOT_SET
Aws::SageMaker::Model::AutoRollbackConfig::GetAlarms
const Aws::Vector< Alarm > & GetAlarms() const
Definition: AutoRollbackConfig.h:47
SageMaker_EXPORTS.h
Aws::SageMaker::Model::AutoRollbackConfig::WithAlarms
AutoRollbackConfig & WithAlarms(Aws::Vector< Alarm > &&value)
Definition: AutoRollbackConfig.h:82
Aws::SageMaker::Model::AutoRollbackConfig::operator=
AutoRollbackConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::SageMaker::Model::AutoRollbackConfig::SetAlarms
void SetAlarms(const Aws::Vector< Alarm > &value)
Definition: AutoRollbackConfig.h:61
AWSVector.h
Aws::SageMaker::Model::AutoRollbackConfig::AutoRollbackConfig
AutoRollbackConfig()
AWS_SAGEMAKER_API
#define AWS_SAGEMAKER_API
Definition: SageMaker_EXPORTS.h:28
Aws::SageMaker::Model::AutoRollbackConfig::AddAlarms
AutoRollbackConfig & AddAlarms(const Alarm &value)
Definition: AutoRollbackConfig.h:89
Aws::SageMaker::Model::AutoRollbackConfig::AddAlarms
AutoRollbackConfig & AddAlarms(Alarm &&value)
Definition: AutoRollbackConfig.h:96
Aws::SageMaker::Model::Alarm
Definition: Alarm.h:33
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::SageMaker::Model::AutoRollbackConfig::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::SageMaker::Model::AutoRollbackConfig::SetAlarms
void SetAlarms(Aws::Vector< Alarm > &&value)
Definition: AutoRollbackConfig.h:68
Aws::SageMaker::Model::AutoRollbackConfig::AutoRollbackConfig
AutoRollbackConfig(Aws::Utils::Json::JsonView jsonValue)
Alarm.h
Aws::SageMaker::Model::AutoRollbackConfig::WithAlarms
AutoRollbackConfig & WithAlarms(const Aws::Vector< Alarm > &value)
Definition: AutoRollbackConfig.h:75
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::SageMaker::Model::AutoRollbackConfig
Definition: AutoRollbackConfig.h:34
Aws::SageMaker::Model::AutoRollbackConfig::AlarmsHasBeenSet
bool AlarmsHasBeenSet() const
Definition: AutoRollbackConfig.h:54