AWS SDK for C++  0.14.3
AWS SDK for C++
TimeBasedAutoScalingConfiguration.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
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Json
25 {
26  class JsonValue;
27 } // namespace Json
28 } // namespace Utils
29 namespace OpsWorks
30 {
31 namespace Model
32 {
33 
38  {
39  public:
43  Aws::Utils::Json::JsonValue Jsonize() const;
44 
48  inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
49 
53  inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
54 
58  inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
59 
63  inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
64 
68  inline TimeBasedAutoScalingConfiguration& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
69 
73  inline TimeBasedAutoScalingConfiguration& WithInstanceId(Aws::String&& value) { SetInstanceId(value); return *this;}
74 
78  inline TimeBasedAutoScalingConfiguration& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
79 
84  inline const WeeklyAutoScalingSchedule& GetAutoScalingSchedule() const{ return m_autoScalingSchedule; }
85 
90  inline void SetAutoScalingSchedule(const WeeklyAutoScalingSchedule& value) { m_autoScalingScheduleHasBeenSet = true; m_autoScalingSchedule = value; }
91 
96  inline void SetAutoScalingSchedule(WeeklyAutoScalingSchedule&& value) { m_autoScalingScheduleHasBeenSet = true; m_autoScalingSchedule = value; }
97 
102  inline TimeBasedAutoScalingConfiguration& WithAutoScalingSchedule(const WeeklyAutoScalingSchedule& value) { SetAutoScalingSchedule(value); return *this;}
103 
108  inline TimeBasedAutoScalingConfiguration& WithAutoScalingSchedule(WeeklyAutoScalingSchedule&& value) { SetAutoScalingSchedule(value); return *this;}
109 
110  private:
111  Aws::String m_instanceId;
112  bool m_instanceIdHasBeenSet;
113  WeeklyAutoScalingSchedule m_autoScalingSchedule;
114  bool m_autoScalingScheduleHasBeenSet;
115  };
116 
117 } // namespace Model
118 } // namespace OpsWorks
119 } // namespace Aws
TimeBasedAutoScalingConfiguration & WithInstanceId(const Aws::String &value)
TimeBasedAutoScalingConfiguration & WithAutoScalingSchedule(const WeeklyAutoScalingSchedule &value)
void SetAutoScalingSchedule(const WeeklyAutoScalingSchedule &value)
TimeBasedAutoScalingConfiguration & WithInstanceId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_OPSWORKS_API
TimeBasedAutoScalingConfiguration & WithAutoScalingSchedule(WeeklyAutoScalingSchedule &&value)
TimeBasedAutoScalingConfiguration & WithInstanceId(const char *value)
JSON (JavaScript Object Notation).