AWS SDK for C++  0.14.3
AWS SDK for C++
CreateReservedInstancesListingRequest.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 
41  inline const Aws::String& GetReservedInstancesId() const{ return m_reservedInstancesId; }
42 
46  inline void SetReservedInstancesId(const Aws::String& value) { m_reservedInstancesIdHasBeenSet = true; m_reservedInstancesId = value; }
47 
51  inline void SetReservedInstancesId(Aws::String&& value) { m_reservedInstancesIdHasBeenSet = true; m_reservedInstancesId = value; }
52 
56  inline void SetReservedInstancesId(const char* value) { m_reservedInstancesIdHasBeenSet = true; m_reservedInstancesId.assign(value); }
57 
61  inline CreateReservedInstancesListingRequest& WithReservedInstancesId(const Aws::String& value) { SetReservedInstancesId(value); return *this;}
62 
66  inline CreateReservedInstancesListingRequest& WithReservedInstancesId(Aws::String&& value) { SetReservedInstancesId(value); return *this;}
67 
71  inline CreateReservedInstancesListingRequest& WithReservedInstancesId(const char* value) { SetReservedInstancesId(value); return *this;}
72 
79  inline int GetInstanceCount() const{ return m_instanceCount; }
80 
87  inline void SetInstanceCount(int value) { m_instanceCountHasBeenSet = true; m_instanceCount = value; }
88 
95  inline CreateReservedInstancesListingRequest& WithInstanceCount(int value) { SetInstanceCount(value); return *this;}
96 
101  inline const Aws::Vector<PriceScheduleSpecification>& GetPriceSchedules() const{ return m_priceSchedules; }
102 
107  inline void SetPriceSchedules(const Aws::Vector<PriceScheduleSpecification>& value) { m_priceSchedulesHasBeenSet = true; m_priceSchedules = value; }
108 
113  inline void SetPriceSchedules(Aws::Vector<PriceScheduleSpecification>&& value) { m_priceSchedulesHasBeenSet = true; m_priceSchedules = value; }
114 
119  inline CreateReservedInstancesListingRequest& WithPriceSchedules(const Aws::Vector<PriceScheduleSpecification>& value) { SetPriceSchedules(value); return *this;}
120 
126 
131  inline CreateReservedInstancesListingRequest& AddPriceSchedules(const PriceScheduleSpecification& value) { m_priceSchedulesHasBeenSet = true; m_priceSchedules.push_back(value); return *this; }
132 
137  inline CreateReservedInstancesListingRequest& AddPriceSchedules(PriceScheduleSpecification&& value) { m_priceSchedulesHasBeenSet = true; m_priceSchedules.push_back(value); return *this; }
138 
145  inline const Aws::String& GetClientToken() const{ return m_clientToken; }
146 
153  inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
154 
161  inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
162 
169  inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
170 
177  inline CreateReservedInstancesListingRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
178 
185  inline CreateReservedInstancesListingRequest& WithClientToken(Aws::String&& value) { SetClientToken(value); return *this;}
186 
193  inline CreateReservedInstancesListingRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
194 
195  private:
196  Aws::String m_reservedInstancesId;
197  bool m_reservedInstancesIdHasBeenSet;
198  int m_instanceCount;
199  bool m_instanceCountHasBeenSet;
201  bool m_priceSchedulesHasBeenSet;
202  Aws::String m_clientToken;
203  bool m_clientTokenHasBeenSet;
204  };
205 
206 } // namespace Model
207 } // namespace EC2
208 } // namespace Aws
CreateReservedInstancesListingRequest & WithReservedInstancesId(Aws::String &&value)
void SetPriceSchedules(const Aws::Vector< PriceScheduleSpecification > &value)
const Aws::Vector< PriceScheduleSpecification > & GetPriceSchedules() const
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
CreateReservedInstancesListingRequest & AddPriceSchedules(const PriceScheduleSpecification &value)
CreateReservedInstancesListingRequest & WithReservedInstancesId(const char *value)
CreateReservedInstancesListingRequest & WithInstanceCount(int value)
CreateReservedInstancesListingRequest & AddPriceSchedules(PriceScheduleSpecification &&value)
void SetPriceSchedules(Aws::Vector< PriceScheduleSpecification > &&value)
CreateReservedInstancesListingRequest & WithReservedInstancesId(const Aws::String &value)
CreateReservedInstancesListingRequest & WithPriceSchedules(Aws::Vector< PriceScheduleSpecification > &&value)
CreateReservedInstancesListingRequest & WithPriceSchedules(const Aws::Vector< PriceScheduleSpecification > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CreateReservedInstancesListingRequest & WithClientToken(Aws::String &&value)
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:37
CreateReservedInstancesListingRequest & WithClientToken(const Aws::String &value)
CreateReservedInstancesListingRequest & WithClientToken(const char *value)
JSON (JavaScript Object Notation).