AWS SDK for C++

AWS SDK for C++ Version 1.11.936

Loading...
Searching...
No Matches
AutoStopConfig.h
1
6#pragma once
7#include <aws/emr-serverless/EMRServerless_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace EMRServerless {
17namespace Model {
18
26 public:
27 AWS_EMRSERVERLESS_API AutoStopConfig() = default;
28 AWS_EMRSERVERLESS_API AutoStopConfig(Aws::Utils::Json::JsonView jsonValue);
29 AWS_EMRSERVERLESS_API AutoStopConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
30 AWS_EMRSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const;
31
33
37 inline bool GetEnabled() const { return m_enabled; }
38 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
39 inline void SetEnabled(bool value) {
40 m_enabledHasBeenSet = true;
41 m_enabled = value;
42 }
43 inline AutoStopConfig& WithEnabled(bool value) {
44 SetEnabled(value);
45 return *this;
46 }
48
50
54 inline int GetIdleTimeoutMinutes() const { return m_idleTimeoutMinutes; }
55 inline bool IdleTimeoutMinutesHasBeenSet() const { return m_idleTimeoutMinutesHasBeenSet; }
56 inline void SetIdleTimeoutMinutes(int value) {
57 m_idleTimeoutMinutesHasBeenSet = true;
58 m_idleTimeoutMinutes = value;
59 }
62 return *this;
63 }
65 private:
66 bool m_enabled{false};
67
68 int m_idleTimeoutMinutes{0};
69 bool m_enabledHasBeenSet = false;
70 bool m_idleTimeoutMinutesHasBeenSet = false;
71};
72
73} // namespace Model
74} // namespace EMRServerless
75} // namespace Aws
AWS_EMRSERVERLESS_API AutoStopConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AutoStopConfig & WithIdleTimeoutMinutes(int value)
AWS_EMRSERVERLESS_API AutoStopConfig(Aws::Utils::Json::JsonView jsonValue)
AWS_EMRSERVERLESS_API AutoStopConfig()=default
AWS_EMRSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const
AutoStopConfig & WithEnabled(bool value)
Aws::Utils::Json::JsonValue JsonValue