AWS SDK for C++  0.12.9
AWS SDK for C++
PurchaseScheduledInstancesRequest.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>
21 
22 namespace Aws
23 {
24 namespace EC2
25 {
26 namespace Model
27 {
28 
33  {
34  public:
36  Aws::String SerializePayload() const override;
37 
44  inline bool GetDryRun() const{ return m_dryRun; }
45 
52  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
53 
60  inline PurchaseScheduledInstancesRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
61 
68  inline const Aws::String& GetClientToken() const{ return m_clientToken; }
69 
76  inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
77 
84  inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
85 
92  inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
93 
100  inline PurchaseScheduledInstancesRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
101 
108  inline PurchaseScheduledInstancesRequest& WithClientToken(Aws::String&& value) { SetClientToken(value); return *this;}
109 
116  inline PurchaseScheduledInstancesRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
117 
121  inline const Aws::Vector<PurchaseRequest>& GetPurchaseRequests() const{ return m_purchaseRequests; }
122 
126  inline void SetPurchaseRequests(const Aws::Vector<PurchaseRequest>& value) { m_purchaseRequestsHasBeenSet = true; m_purchaseRequests = value; }
127 
131  inline void SetPurchaseRequests(Aws::Vector<PurchaseRequest>&& value) { m_purchaseRequestsHasBeenSet = true; m_purchaseRequests = value; }
132 
136  inline PurchaseScheduledInstancesRequest& WithPurchaseRequests(const Aws::Vector<PurchaseRequest>& value) { SetPurchaseRequests(value); return *this;}
137 
141  inline PurchaseScheduledInstancesRequest& WithPurchaseRequests(Aws::Vector<PurchaseRequest>&& value) { SetPurchaseRequests(value); return *this;}
142 
146  inline PurchaseScheduledInstancesRequest& AddPurchaseRequests(const PurchaseRequest& value) { m_purchaseRequestsHasBeenSet = true; m_purchaseRequests.push_back(value); return *this; }
147 
151  inline PurchaseScheduledInstancesRequest& AddPurchaseRequests(PurchaseRequest&& value) { m_purchaseRequestsHasBeenSet = true; m_purchaseRequests.push_back(value); return *this; }
152 
153  private:
154  bool m_dryRun;
155  bool m_dryRunHasBeenSet;
156  Aws::String m_clientToken;
157  bool m_clientTokenHasBeenSet;
158  Aws::Vector<PurchaseRequest> m_purchaseRequests;
159  bool m_purchaseRequestsHasBeenSet;
160  };
161 
162 } // namespace Model
163 } // namespace EC2
164 } // namespace Aws
PurchaseScheduledInstancesRequest & WithDryRun(bool value)
PurchaseScheduledInstancesRequest & AddPurchaseRequests(PurchaseRequest &&value)
const Aws::Vector< PurchaseRequest > & GetPurchaseRequests() const
void SetPurchaseRequests(Aws::Vector< PurchaseRequest > &&value)
PurchaseScheduledInstancesRequest & WithClientToken(const char *value)
void SetPurchaseRequests(const Aws::Vector< PurchaseRequest > &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
PurchaseScheduledInstancesRequest & WithClientToken(Aws::String &&value)
PurchaseScheduledInstancesRequest & WithPurchaseRequests(Aws::Vector< PurchaseRequest > &&value)
PurchaseScheduledInstancesRequest & AddPurchaseRequests(const PurchaseRequest &value)
PurchaseScheduledInstancesRequest & WithPurchaseRequests(const Aws::Vector< PurchaseRequest > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
PurchaseScheduledInstancesRequest & WithClientToken(const Aws::String &value)
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:34
JSON (JavaScript Object Notation).