AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
TimeBasedAutoScalingConfiguration.h
1
6#pragma once
7#include <aws/opsworks/OpsWorks_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/opsworks/model/WeeklyAutoScalingSchedule.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 OpsWorks
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_OPSWORKS_API TimeBasedAutoScalingConfiguration() = default;
39 AWS_OPSWORKS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
47 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
48 template<typename InstanceIdT = Aws::String>
49 void SetInstanceId(InstanceIdT&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::forward<InstanceIdT>(value); }
50 template<typename InstanceIdT = Aws::String>
51 TimeBasedAutoScalingConfiguration& WithInstanceId(InstanceIdT&& value) { SetInstanceId(std::forward<InstanceIdT>(value)); return *this;}
53
55
59 inline const WeeklyAutoScalingSchedule& GetAutoScalingSchedule() const { return m_autoScalingSchedule; }
60 inline bool AutoScalingScheduleHasBeenSet() const { return m_autoScalingScheduleHasBeenSet; }
61 template<typename AutoScalingScheduleT = WeeklyAutoScalingSchedule>
62 void SetAutoScalingSchedule(AutoScalingScheduleT&& value) { m_autoScalingScheduleHasBeenSet = true; m_autoScalingSchedule = std::forward<AutoScalingScheduleT>(value); }
63 template<typename AutoScalingScheduleT = WeeklyAutoScalingSchedule>
64 TimeBasedAutoScalingConfiguration& WithAutoScalingSchedule(AutoScalingScheduleT&& value) { SetAutoScalingSchedule(std::forward<AutoScalingScheduleT>(value)); return *this;}
66 private:
67
68 Aws::String m_instanceId;
69 bool m_instanceIdHasBeenSet = false;
70
71 WeeklyAutoScalingSchedule m_autoScalingSchedule;
72 bool m_autoScalingScheduleHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace OpsWorks
77} // namespace Aws
AWS_OPSWORKS_API Aws::Utils::Json::JsonValue Jsonize() const
TimeBasedAutoScalingConfiguration & WithAutoScalingSchedule(AutoScalingScheduleT &&value)
AWS_OPSWORKS_API TimeBasedAutoScalingConfiguration()=default
AWS_OPSWORKS_API TimeBasedAutoScalingConfiguration(Aws::Utils::Json::JsonView jsonValue)
TimeBasedAutoScalingConfiguration & WithInstanceId(InstanceIdT &&value)
AWS_OPSWORKS_API TimeBasedAutoScalingConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue