AWS SDK for C++  1.9.106
AWS SDK for C++
SetTimeBasedAutoScalingRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace OpsWorks
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "SetTimeBasedAutoScaling"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
41  inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
42 
46  inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
47 
51  inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
52 
56  inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
57 
61  inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
62 
66  inline SetTimeBasedAutoScalingRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
67 
71  inline SetTimeBasedAutoScalingRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
72 
76  inline SetTimeBasedAutoScalingRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
77 
78 
82  inline const WeeklyAutoScalingSchedule& GetAutoScalingSchedule() const{ return m_autoScalingSchedule; }
83 
87  inline bool AutoScalingScheduleHasBeenSet() const { return m_autoScalingScheduleHasBeenSet; }
88 
92  inline void SetAutoScalingSchedule(const WeeklyAutoScalingSchedule& value) { m_autoScalingScheduleHasBeenSet = true; m_autoScalingSchedule = value; }
93 
97  inline void SetAutoScalingSchedule(WeeklyAutoScalingSchedule&& value) { m_autoScalingScheduleHasBeenSet = true; m_autoScalingSchedule = std::move(value); }
98 
102  inline SetTimeBasedAutoScalingRequest& WithAutoScalingSchedule(const WeeklyAutoScalingSchedule& value) { SetAutoScalingSchedule(value); return *this;}
103 
107  inline SetTimeBasedAutoScalingRequest& WithAutoScalingSchedule(WeeklyAutoScalingSchedule&& value) { SetAutoScalingSchedule(std::move(value)); return *this;}
108 
109  private:
110 
111  Aws::String m_instanceId;
112  bool m_instanceIdHasBeenSet;
113 
114  WeeklyAutoScalingSchedule m_autoScalingSchedule;
115  bool m_autoScalingScheduleHasBeenSet;
116  };
117 
118 } // namespace Model
119 } // namespace OpsWorks
120 } // namespace Aws
Aws::OpsWorks::Model::SetTimeBasedAutoScalingRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::OpsWorks::Model::SetTimeBasedAutoScalingRequest::WithInstanceId
SetTimeBasedAutoScalingRequest & WithInstanceId(Aws::String &&value)
Definition: SetTimeBasedAutoScalingRequest.h:71
WeeklyAutoScalingSchedule.h
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
OpsWorks_EXPORTS.h
Aws::OpsWorks::Model::SetTimeBasedAutoScalingRequest::SetAutoScalingSchedule
void SetAutoScalingSchedule(const WeeklyAutoScalingSchedule &value)
Definition: SetTimeBasedAutoScalingRequest.h:92
Aws::OpsWorks::Model::SetTimeBasedAutoScalingRequest::SetInstanceId
void SetInstanceId(Aws::String &&value)
Definition: SetTimeBasedAutoScalingRequest.h:56
Aws::OpsWorks::Model::SetTimeBasedAutoScalingRequest::WithInstanceId
SetTimeBasedAutoScalingRequest & WithInstanceId(const char *value)
Definition: SetTimeBasedAutoScalingRequest.h:76
Aws::OpsWorks::Model::SetTimeBasedAutoScalingRequest::WithAutoScalingSchedule
SetTimeBasedAutoScalingRequest & WithAutoScalingSchedule(const WeeklyAutoScalingSchedule &value)
Definition: SetTimeBasedAutoScalingRequest.h:102
Aws::OpsWorks::Model::SetTimeBasedAutoScalingRequest::SetTimeBasedAutoScalingRequest
SetTimeBasedAutoScalingRequest()
AWS_OPSWORKS_API
#define AWS_OPSWORKS_API
Definition: OpsWorks_EXPORTS.h:28
Aws::OpsWorks::OpsWorksRequest
Definition: OpsWorksRequest.h:17
Aws::OpsWorks::Model::SetTimeBasedAutoScalingRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
OpsWorksRequest.h
Aws::OpsWorks::Model::SetTimeBasedAutoScalingRequest::SetAutoScalingSchedule
void SetAutoScalingSchedule(WeeklyAutoScalingSchedule &&value)
Definition: SetTimeBasedAutoScalingRequest.h:97
Aws::OpsWorks::Model::SetTimeBasedAutoScalingRequest::GetInstanceId
const Aws::String & GetInstanceId() const
Definition: SetTimeBasedAutoScalingRequest.h:41
Aws::OpsWorks::Model::SetTimeBasedAutoScalingRequest::WithInstanceId
SetTimeBasedAutoScalingRequest & WithInstanceId(const Aws::String &value)
Definition: SetTimeBasedAutoScalingRequest.h:66
AWSString.h
Aws::OpsWorks::Model::SetTimeBasedAutoScalingRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: SetTimeBasedAutoScalingRequest.h:31
Aws::OpsWorks::Model::WeeklyAutoScalingSchedule
Definition: WeeklyAutoScalingSchedule.h:44
Aws::OpsWorks::Model::SetTimeBasedAutoScalingRequest::InstanceIdHasBeenSet
bool InstanceIdHasBeenSet() const
Definition: SetTimeBasedAutoScalingRequest.h:46
Aws
Definition: AccessManagementClient.h:15
Aws::OpsWorks::Model::SetTimeBasedAutoScalingRequest::SetInstanceId
void SetInstanceId(const Aws::String &value)
Definition: SetTimeBasedAutoScalingRequest.h:51
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::OpsWorks::Model::SetTimeBasedAutoScalingRequest
Definition: SetTimeBasedAutoScalingRequest.h:23
Aws::OpsWorks::Model::SetTimeBasedAutoScalingRequest::GetAutoScalingSchedule
const WeeklyAutoScalingSchedule & GetAutoScalingSchedule() const
Definition: SetTimeBasedAutoScalingRequest.h:82
Aws::OpsWorks::Model::SetTimeBasedAutoScalingRequest::AutoScalingScheduleHasBeenSet
bool AutoScalingScheduleHasBeenSet() const
Definition: SetTimeBasedAutoScalingRequest.h:87
Aws::OpsWorks::Model::SetTimeBasedAutoScalingRequest::SetInstanceId
void SetInstanceId(const char *value)
Definition: SetTimeBasedAutoScalingRequest.h:61
Aws::OpsWorks::Model::SetTimeBasedAutoScalingRequest::WithAutoScalingSchedule
SetTimeBasedAutoScalingRequest & WithAutoScalingSchedule(WeeklyAutoScalingSchedule &&value)
Definition: SetTimeBasedAutoScalingRequest.h:107