AWS SDK for C++  0.14.3
AWS SDK for C++
RunScheduledInstancesRequest.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
16 #include <aws/ec2/EC2_EXPORTS.h>
17 #include <aws/ec2/EC2Request.h>
20 
21 namespace Aws
22 {
23 namespace EC2
24 {
25 namespace Model
26 {
27 
32  {
33  public:
35  Aws::String SerializePayload() const override;
36 
43  inline bool GetDryRun() const{ return m_dryRun; }
44 
51  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
52 
59  inline RunScheduledInstancesRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
60 
67  inline const Aws::String& GetClientToken() const{ return m_clientToken; }
68 
75  inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
76 
83  inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
84 
91  inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
92 
99  inline RunScheduledInstancesRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
100 
107  inline RunScheduledInstancesRequest& WithClientToken(Aws::String&& value) { SetClientToken(value); return *this;}
108 
115  inline RunScheduledInstancesRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
116 
120  inline int GetInstanceCount() const{ return m_instanceCount; }
121 
125  inline void SetInstanceCount(int value) { m_instanceCountHasBeenSet = true; m_instanceCount = value; }
126 
130  inline RunScheduledInstancesRequest& WithInstanceCount(int value) { SetInstanceCount(value); return *this;}
131 
135  inline const Aws::String& GetScheduledInstanceId() const{ return m_scheduledInstanceId; }
136 
140  inline void SetScheduledInstanceId(const Aws::String& value) { m_scheduledInstanceIdHasBeenSet = true; m_scheduledInstanceId = value; }
141 
145  inline void SetScheduledInstanceId(Aws::String&& value) { m_scheduledInstanceIdHasBeenSet = true; m_scheduledInstanceId = value; }
146 
150  inline void SetScheduledInstanceId(const char* value) { m_scheduledInstanceIdHasBeenSet = true; m_scheduledInstanceId.assign(value); }
151 
155  inline RunScheduledInstancesRequest& WithScheduledInstanceId(const Aws::String& value) { SetScheduledInstanceId(value); return *this;}
156 
160  inline RunScheduledInstancesRequest& WithScheduledInstanceId(Aws::String&& value) { SetScheduledInstanceId(value); return *this;}
161 
165  inline RunScheduledInstancesRequest& WithScheduledInstanceId(const char* value) { SetScheduledInstanceId(value); return *this;}
166 
170  inline const ScheduledInstancesLaunchSpecification& GetLaunchSpecification() const{ return m_launchSpecification; }
171 
175  inline void SetLaunchSpecification(const ScheduledInstancesLaunchSpecification& value) { m_launchSpecificationHasBeenSet = true; m_launchSpecification = value; }
176 
180  inline void SetLaunchSpecification(ScheduledInstancesLaunchSpecification&& value) { m_launchSpecificationHasBeenSet = true; m_launchSpecification = value; }
181 
185  inline RunScheduledInstancesRequest& WithLaunchSpecification(const ScheduledInstancesLaunchSpecification& value) { SetLaunchSpecification(value); return *this;}
186 
190  inline RunScheduledInstancesRequest& WithLaunchSpecification(ScheduledInstancesLaunchSpecification&& value) { SetLaunchSpecification(value); return *this;}
191 
192  private:
193  bool m_dryRun;
194  bool m_dryRunHasBeenSet;
195  Aws::String m_clientToken;
196  bool m_clientTokenHasBeenSet;
197  int m_instanceCount;
198  bool m_instanceCountHasBeenSet;
199  Aws::String m_scheduledInstanceId;
200  bool m_scheduledInstanceIdHasBeenSet;
201  ScheduledInstancesLaunchSpecification m_launchSpecification;
202  bool m_launchSpecificationHasBeenSet;
203  };
204 
205 } // namespace Model
206 } // namespace EC2
207 } // namespace Aws
RunScheduledInstancesRequest & WithLaunchSpecification(const ScheduledInstancesLaunchSpecification &value)
RunScheduledInstancesRequest & WithDryRun(bool value)
void SetLaunchSpecification(ScheduledInstancesLaunchSpecification &&value)
RunScheduledInstancesRequest & WithScheduledInstanceId(Aws::String &&value)
RunScheduledInstancesRequest & WithScheduledInstanceId(const char *value)
RunScheduledInstancesRequest & WithInstanceCount(int value)
RunScheduledInstancesRequest & WithClientToken(const Aws::String &value)
const ScheduledInstancesLaunchSpecification & GetLaunchSpecification() const
void SetLaunchSpecification(const ScheduledInstancesLaunchSpecification &value)
RunScheduledInstancesRequest & WithClientToken(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
RunScheduledInstancesRequest & WithClientToken(Aws::String &&value)
RunScheduledInstancesRequest & WithLaunchSpecification(ScheduledInstancesLaunchSpecification &&value)
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:37
RunScheduledInstancesRequest & WithScheduledInstanceId(const Aws::String &value)
JSON (JavaScript Object Notation).