AWS SDK for C++  0.14.3
AWS SDK for C++
SetTimeBasedAutoScalingRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
20 
21 namespace Aws
22 {
23 namespace OpsWorks
24 {
25 namespace Model
26 {
27 
31  {
32  public:
34  Aws::String SerializePayload() const override;
35 
36  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37 
41  inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
42 
46  inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
47 
51  inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
52 
56  inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
57 
61  inline SetTimeBasedAutoScalingRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
62 
66  inline SetTimeBasedAutoScalingRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(value); return *this;}
67 
71  inline SetTimeBasedAutoScalingRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
72 
76  inline const WeeklyAutoScalingSchedule& GetAutoScalingSchedule() const{ return m_autoScalingSchedule; }
77 
81  inline void SetAutoScalingSchedule(const WeeklyAutoScalingSchedule& value) { m_autoScalingScheduleHasBeenSet = true; m_autoScalingSchedule = value; }
82 
86  inline void SetAutoScalingSchedule(WeeklyAutoScalingSchedule&& value) { m_autoScalingScheduleHasBeenSet = true; m_autoScalingSchedule = value; }
87 
91  inline SetTimeBasedAutoScalingRequest& WithAutoScalingSchedule(const WeeklyAutoScalingSchedule& value) { SetAutoScalingSchedule(value); return *this;}
92 
96  inline SetTimeBasedAutoScalingRequest& WithAutoScalingSchedule(WeeklyAutoScalingSchedule&& value) { SetAutoScalingSchedule(value); return *this;}
97 
98  private:
99  Aws::String m_instanceId;
100  bool m_instanceIdHasBeenSet;
101  WeeklyAutoScalingSchedule m_autoScalingSchedule;
102  bool m_autoScalingScheduleHasBeenSet;
103  };
104 
105 } // namespace Model
106 } // namespace OpsWorks
107 } // namespace Aws
SetTimeBasedAutoScalingRequest & WithInstanceId(Aws::String &&value)
SetTimeBasedAutoScalingRequest & WithAutoScalingSchedule(const WeeklyAutoScalingSchedule &value)
SetTimeBasedAutoScalingRequest & WithInstanceId(const char *value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
void SetAutoScalingSchedule(const WeeklyAutoScalingSchedule &value)
void SetAutoScalingSchedule(WeeklyAutoScalingSchedule &&value)
SetTimeBasedAutoScalingRequest & WithInstanceId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_OPSWORKS_API
SetTimeBasedAutoScalingRequest & WithAutoScalingSchedule(WeeklyAutoScalingSchedule &&value)
const WeeklyAutoScalingSchedule & GetAutoScalingSchedule() const
JSON (JavaScript Object Notation).