AWS SDK for C++  1.9.105
AWS SDK for C++
TimeBasedAutoScalingConfiguration.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 OpsWorks
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
45  inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
46 
50  inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
51 
55  inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
56 
60  inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
61 
65  inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
66 
70  inline TimeBasedAutoScalingConfiguration& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
71 
75  inline TimeBasedAutoScalingConfiguration& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
76 
80  inline TimeBasedAutoScalingConfiguration& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
81 
82 
87  inline const WeeklyAutoScalingSchedule& GetAutoScalingSchedule() const{ return m_autoScalingSchedule; }
88 
93  inline bool AutoScalingScheduleHasBeenSet() const { return m_autoScalingScheduleHasBeenSet; }
94 
99  inline void SetAutoScalingSchedule(const WeeklyAutoScalingSchedule& value) { m_autoScalingScheduleHasBeenSet = true; m_autoScalingSchedule = value; }
100 
105  inline void SetAutoScalingSchedule(WeeklyAutoScalingSchedule&& value) { m_autoScalingScheduleHasBeenSet = true; m_autoScalingSchedule = std::move(value); }
106 
111  inline TimeBasedAutoScalingConfiguration& WithAutoScalingSchedule(const WeeklyAutoScalingSchedule& value) { SetAutoScalingSchedule(value); return *this;}
112 
117  inline TimeBasedAutoScalingConfiguration& WithAutoScalingSchedule(WeeklyAutoScalingSchedule&& value) { SetAutoScalingSchedule(std::move(value)); return *this;}
118 
119  private:
120 
121  Aws::String m_instanceId;
122  bool m_instanceIdHasBeenSet;
123 
124  WeeklyAutoScalingSchedule m_autoScalingSchedule;
125  bool m_autoScalingScheduleHasBeenSet;
126  };
127 
128 } // namespace Model
129 } // namespace OpsWorks
130 } // namespace Aws
WeeklyAutoScalingSchedule.h
Aws::OpsWorks::Model::TimeBasedAutoScalingConfiguration::operator=
TimeBasedAutoScalingConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::OpsWorks::Model::TimeBasedAutoScalingConfiguration::SetAutoScalingSchedule
void SetAutoScalingSchedule(WeeklyAutoScalingSchedule &&value)
Definition: TimeBasedAutoScalingConfiguration.h:105
Aws::OpsWorks::Model::TimeBasedAutoScalingConfiguration::WithAutoScalingSchedule
TimeBasedAutoScalingConfiguration & WithAutoScalingSchedule(const WeeklyAutoScalingSchedule &value)
Definition: TimeBasedAutoScalingConfiguration.h:111
OpsWorks_EXPORTS.h
Aws::OpsWorks::Model::TimeBasedAutoScalingConfiguration::WithInstanceId
TimeBasedAutoScalingConfiguration & WithInstanceId(const Aws::String &value)
Definition: TimeBasedAutoScalingConfiguration.h:70
Aws::OpsWorks::Model::TimeBasedAutoScalingConfiguration::AutoScalingScheduleHasBeenSet
bool AutoScalingScheduleHasBeenSet() const
Definition: TimeBasedAutoScalingConfiguration.h:93
Aws::OpsWorks::Model::TimeBasedAutoScalingConfiguration::TimeBasedAutoScalingConfiguration
TimeBasedAutoScalingConfiguration()
AWS_OPSWORKS_API
#define AWS_OPSWORKS_API
Definition: OpsWorks_EXPORTS.h:28
Aws::OpsWorks::Model::TimeBasedAutoScalingConfiguration::InstanceIdHasBeenSet
bool InstanceIdHasBeenSet() const
Definition: TimeBasedAutoScalingConfiguration.h:50
Aws::OpsWorks::Model::TimeBasedAutoScalingConfiguration::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::OpsWorks::Model::TimeBasedAutoScalingConfiguration::SetAutoScalingSchedule
void SetAutoScalingSchedule(const WeeklyAutoScalingSchedule &value)
Definition: TimeBasedAutoScalingConfiguration.h:99
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::OpsWorks::Model::TimeBasedAutoScalingConfiguration::GetInstanceId
const Aws::String & GetInstanceId() const
Definition: TimeBasedAutoScalingConfiguration.h:45
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::OpsWorks::Model::WeeklyAutoScalingSchedule
Definition: WeeklyAutoScalingSchedule.h:44
Aws::OpsWorks::Model::TimeBasedAutoScalingConfiguration::WithInstanceId
TimeBasedAutoScalingConfiguration & WithInstanceId(Aws::String &&value)
Definition: TimeBasedAutoScalingConfiguration.h:75
Aws::OpsWorks::Model::TimeBasedAutoScalingConfiguration::GetAutoScalingSchedule
const WeeklyAutoScalingSchedule & GetAutoScalingSchedule() const
Definition: TimeBasedAutoScalingConfiguration.h:87
Aws::OpsWorks::Model::TimeBasedAutoScalingConfiguration
Definition: TimeBasedAutoScalingConfiguration.h:34
Aws::OpsWorks::Model::TimeBasedAutoScalingConfiguration::SetInstanceId
void SetInstanceId(const char *value)
Definition: TimeBasedAutoScalingConfiguration.h:65
Aws::OpsWorks::Model::TimeBasedAutoScalingConfiguration::SetInstanceId
void SetInstanceId(Aws::String &&value)
Definition: TimeBasedAutoScalingConfiguration.h:60
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::OpsWorks::Model::TimeBasedAutoScalingConfiguration::TimeBasedAutoScalingConfiguration
TimeBasedAutoScalingConfiguration(Aws::Utils::Json::JsonView jsonValue)
Aws::OpsWorks::Model::TimeBasedAutoScalingConfiguration::WithInstanceId
TimeBasedAutoScalingConfiguration & WithInstanceId(const char *value)
Definition: TimeBasedAutoScalingConfiguration.h:80
Aws::OpsWorks::Model::TimeBasedAutoScalingConfiguration::WithAutoScalingSchedule
TimeBasedAutoScalingConfiguration & WithAutoScalingSchedule(WeeklyAutoScalingSchedule &&value)
Definition: TimeBasedAutoScalingConfiguration.h:117
Aws::OpsWorks::Model::TimeBasedAutoScalingConfiguration::SetInstanceId
void SetInstanceId(const Aws::String &value)
Definition: TimeBasedAutoScalingConfiguration.h:55