AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
49 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
50 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
51 inline TimeBasedAutoScalingConfiguration& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
52 inline TimeBasedAutoScalingConfiguration& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
53 inline TimeBasedAutoScalingConfiguration& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
55
57
61 inline const WeeklyAutoScalingSchedule& GetAutoScalingSchedule() const{ return m_autoScalingSchedule; }
62 inline bool AutoScalingScheduleHasBeenSet() const { return m_autoScalingScheduleHasBeenSet; }
63 inline void SetAutoScalingSchedule(const WeeklyAutoScalingSchedule& value) { m_autoScalingScheduleHasBeenSet = true; m_autoScalingSchedule = value; }
64 inline void SetAutoScalingSchedule(WeeklyAutoScalingSchedule&& value) { m_autoScalingScheduleHasBeenSet = true; m_autoScalingSchedule = std::move(value); }
68 private:
69
70 Aws::String m_instanceId;
71 bool m_instanceIdHasBeenSet = false;
72
73 WeeklyAutoScalingSchedule m_autoScalingSchedule;
74 bool m_autoScalingScheduleHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace OpsWorks
79} // namespace Aws
TimeBasedAutoScalingConfiguration & WithAutoScalingSchedule(WeeklyAutoScalingSchedule &&value)
AWS_OPSWORKS_API Aws::Utils::Json::JsonValue Jsonize() const
TimeBasedAutoScalingConfiguration & WithInstanceId(const char *value)
AWS_OPSWORKS_API TimeBasedAutoScalingConfiguration(Aws::Utils::Json::JsonView jsonValue)
TimeBasedAutoScalingConfiguration & WithInstanceId(const Aws::String &value)
void SetAutoScalingSchedule(const WeeklyAutoScalingSchedule &value)
TimeBasedAutoScalingConfiguration & WithAutoScalingSchedule(const WeeklyAutoScalingSchedule &value)
TimeBasedAutoScalingConfiguration & WithInstanceId(Aws::String &&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