AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
IdleSettings.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/sagemaker/model/LifecycleManagement.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SageMaker
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_SAGEMAKER_API IdleSettings();
36 AWS_SAGEMAKER_API IdleSettings(Aws::Utils::Json::JsonView jsonValue);
37 AWS_SAGEMAKER_API IdleSettings& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const LifecycleManagement& GetLifecycleManagement() const{ return m_lifecycleManagement; }
46 inline bool LifecycleManagementHasBeenSet() const { return m_lifecycleManagementHasBeenSet; }
47 inline void SetLifecycleManagement(const LifecycleManagement& value) { m_lifecycleManagementHasBeenSet = true; m_lifecycleManagement = value; }
48 inline void SetLifecycleManagement(LifecycleManagement&& value) { m_lifecycleManagementHasBeenSet = true; m_lifecycleManagement = std::move(value); }
50 inline IdleSettings& WithLifecycleManagement(LifecycleManagement&& value) { SetLifecycleManagement(std::move(value)); return *this;}
52
54
58 inline int GetIdleTimeoutInMinutes() const{ return m_idleTimeoutInMinutes; }
59 inline bool IdleTimeoutInMinutesHasBeenSet() const { return m_idleTimeoutInMinutesHasBeenSet; }
60 inline void SetIdleTimeoutInMinutes(int value) { m_idleTimeoutInMinutesHasBeenSet = true; m_idleTimeoutInMinutes = value; }
61 inline IdleSettings& WithIdleTimeoutInMinutes(int value) { SetIdleTimeoutInMinutes(value); return *this;}
63
65
69 inline int GetMinIdleTimeoutInMinutes() const{ return m_minIdleTimeoutInMinutes; }
70 inline bool MinIdleTimeoutInMinutesHasBeenSet() const { return m_minIdleTimeoutInMinutesHasBeenSet; }
71 inline void SetMinIdleTimeoutInMinutes(int value) { m_minIdleTimeoutInMinutesHasBeenSet = true; m_minIdleTimeoutInMinutes = value; }
72 inline IdleSettings& WithMinIdleTimeoutInMinutes(int value) { SetMinIdleTimeoutInMinutes(value); return *this;}
74
76
80 inline int GetMaxIdleTimeoutInMinutes() const{ return m_maxIdleTimeoutInMinutes; }
81 inline bool MaxIdleTimeoutInMinutesHasBeenSet() const { return m_maxIdleTimeoutInMinutesHasBeenSet; }
82 inline void SetMaxIdleTimeoutInMinutes(int value) { m_maxIdleTimeoutInMinutesHasBeenSet = true; m_maxIdleTimeoutInMinutes = value; }
83 inline IdleSettings& WithMaxIdleTimeoutInMinutes(int value) { SetMaxIdleTimeoutInMinutes(value); return *this;}
85 private:
86
87 LifecycleManagement m_lifecycleManagement;
88 bool m_lifecycleManagementHasBeenSet = false;
89
90 int m_idleTimeoutInMinutes;
91 bool m_idleTimeoutInMinutesHasBeenSet = false;
92
93 int m_minIdleTimeoutInMinutes;
94 bool m_minIdleTimeoutInMinutesHasBeenSet = false;
95
96 int m_maxIdleTimeoutInMinutes;
97 bool m_maxIdleTimeoutInMinutesHasBeenSet = false;
98 };
99
100} // namespace Model
101} // namespace SageMaker
102} // namespace Aws
AWS_SAGEMAKER_API IdleSettings & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetLifecycleManagement(const LifecycleManagement &value)
void SetLifecycleManagement(LifecycleManagement &&value)
AWS_SAGEMAKER_API IdleSettings(Aws::Utils::Json::JsonView jsonValue)
const LifecycleManagement & GetLifecycleManagement() const
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
IdleSettings & WithLifecycleManagement(const LifecycleManagement &value)
IdleSettings & WithLifecycleManagement(LifecycleManagement &&value)
IdleSettings & WithIdleTimeoutInMinutes(int value)
IdleSettings & WithMaxIdleTimeoutInMinutes(int value)
IdleSettings & WithMinIdleTimeoutInMinutes(int value)
Aws::Utils::Json::JsonValue JsonValue