AWS SDK for C++  1.9.156
AWS SDK for C++
ModifyCapacityReservationRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
8 #include <aws/ec2/EC2Request.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace EC2
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "ModifyCapacityReservation"; }
33 
34  Aws::String SerializePayload() const override;
35 
36  protected:
37  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38 
39  public:
40 
44  inline const Aws::String& GetCapacityReservationId() const{ return m_capacityReservationId; }
45 
49  inline bool CapacityReservationIdHasBeenSet() const { return m_capacityReservationIdHasBeenSet; }
50 
54  inline void SetCapacityReservationId(const Aws::String& value) { m_capacityReservationIdHasBeenSet = true; m_capacityReservationId = value; }
55 
59  inline void SetCapacityReservationId(Aws::String&& value) { m_capacityReservationIdHasBeenSet = true; m_capacityReservationId = std::move(value); }
60 
64  inline void SetCapacityReservationId(const char* value) { m_capacityReservationIdHasBeenSet = true; m_capacityReservationId.assign(value); }
65 
69  inline ModifyCapacityReservationRequest& WithCapacityReservationId(const Aws::String& value) { SetCapacityReservationId(value); return *this;}
70 
74  inline ModifyCapacityReservationRequest& WithCapacityReservationId(Aws::String&& value) { SetCapacityReservationId(std::move(value)); return *this;}
75 
79  inline ModifyCapacityReservationRequest& WithCapacityReservationId(const char* value) { SetCapacityReservationId(value); return *this;}
80 
81 
87  inline int GetInstanceCount() const{ return m_instanceCount; }
88 
94  inline bool InstanceCountHasBeenSet() const { return m_instanceCountHasBeenSet; }
95 
101  inline void SetInstanceCount(int value) { m_instanceCountHasBeenSet = true; m_instanceCount = value; }
102 
108  inline ModifyCapacityReservationRequest& WithInstanceCount(int value) { SetInstanceCount(value); return *this;}
109 
110 
123  inline const Aws::Utils::DateTime& GetEndDate() const{ return m_endDate; }
124 
137  inline bool EndDateHasBeenSet() const { return m_endDateHasBeenSet; }
138 
151  inline void SetEndDate(const Aws::Utils::DateTime& value) { m_endDateHasBeenSet = true; m_endDate = value; }
152 
165  inline void SetEndDate(Aws::Utils::DateTime&& value) { m_endDateHasBeenSet = true; m_endDate = std::move(value); }
166 
179  inline ModifyCapacityReservationRequest& WithEndDate(const Aws::Utils::DateTime& value) { SetEndDate(value); return *this;}
180 
193  inline ModifyCapacityReservationRequest& WithEndDate(Aws::Utils::DateTime&& value) { SetEndDate(std::move(value)); return *this;}
194 
195 
206  inline const EndDateType& GetEndDateType() const{ return m_endDateType; }
207 
218  inline bool EndDateTypeHasBeenSet() const { return m_endDateTypeHasBeenSet; }
219 
230  inline void SetEndDateType(const EndDateType& value) { m_endDateTypeHasBeenSet = true; m_endDateType = value; }
231 
242  inline void SetEndDateType(EndDateType&& value) { m_endDateTypeHasBeenSet = true; m_endDateType = std::move(value); }
243 
254  inline ModifyCapacityReservationRequest& WithEndDateType(const EndDateType& value) { SetEndDateType(value); return *this;}
255 
266  inline ModifyCapacityReservationRequest& WithEndDateType(EndDateType&& value) { SetEndDateType(std::move(value)); return *this;}
267 
268 
272  inline bool GetAccept() const{ return m_accept; }
273 
277  inline bool AcceptHasBeenSet() const { return m_acceptHasBeenSet; }
278 
282  inline void SetAccept(bool value) { m_acceptHasBeenSet = true; m_accept = value; }
283 
287  inline ModifyCapacityReservationRequest& WithAccept(bool value) { SetAccept(value); return *this;}
288 
289 
296  inline bool GetDryRun() const{ return m_dryRun; }
297 
304  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
305 
312  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
313 
320  inline ModifyCapacityReservationRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
321 
322 
326  inline const Aws::String& GetAdditionalInfo() const{ return m_additionalInfo; }
327 
331  inline bool AdditionalInfoHasBeenSet() const { return m_additionalInfoHasBeenSet; }
332 
336  inline void SetAdditionalInfo(const Aws::String& value) { m_additionalInfoHasBeenSet = true; m_additionalInfo = value; }
337 
341  inline void SetAdditionalInfo(Aws::String&& value) { m_additionalInfoHasBeenSet = true; m_additionalInfo = std::move(value); }
342 
346  inline void SetAdditionalInfo(const char* value) { m_additionalInfoHasBeenSet = true; m_additionalInfo.assign(value); }
347 
351  inline ModifyCapacityReservationRequest& WithAdditionalInfo(const Aws::String& value) { SetAdditionalInfo(value); return *this;}
352 
356  inline ModifyCapacityReservationRequest& WithAdditionalInfo(Aws::String&& value) { SetAdditionalInfo(std::move(value)); return *this;}
357 
361  inline ModifyCapacityReservationRequest& WithAdditionalInfo(const char* value) { SetAdditionalInfo(value); return *this;}
362 
363  private:
364 
365  Aws::String m_capacityReservationId;
366  bool m_capacityReservationIdHasBeenSet;
367 
368  int m_instanceCount;
369  bool m_instanceCountHasBeenSet;
370 
371  Aws::Utils::DateTime m_endDate;
372  bool m_endDateHasBeenSet;
373 
374  EndDateType m_endDateType;
375  bool m_endDateTypeHasBeenSet;
376 
377  bool m_accept;
378  bool m_acceptHasBeenSet;
379 
380  bool m_dryRun;
381  bool m_dryRunHasBeenSet;
382 
383  Aws::String m_additionalInfo;
384  bool m_additionalInfoHasBeenSet;
385  };
386 
387 } // namespace Model
388 } // namespace EC2
389 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::EC2::Model::ModifyCapacityReservationRequest::SetEndDateType
void SetEndDateType(EndDateType &&value)
Definition: ModifyCapacityReservationRequest.h:242
Aws::EC2::Model::ModifyCapacityReservationRequest::GetInstanceCount
int GetInstanceCount() const
Definition: ModifyCapacityReservationRequest.h:87
Aws::EC2::Model::ModifyCapacityReservationRequest::GetDryRun
bool GetDryRun() const
Definition: ModifyCapacityReservationRequest.h:296
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::ModifyCapacityReservationRequest::SetEndDate
void SetEndDate(const Aws::Utils::DateTime &value)
Definition: ModifyCapacityReservationRequest.h:151
Aws::EC2::Model::ModifyCapacityReservationRequest::CapacityReservationIdHasBeenSet
bool CapacityReservationIdHasBeenSet() const
Definition: ModifyCapacityReservationRequest.h:49
Aws::EC2::Model::ModifyCapacityReservationRequest::GetEndDate
const Aws::Utils::DateTime & GetEndDate() const
Definition: ModifyCapacityReservationRequest.h:123
DateTime.h
Aws::EC2::Model::ModifyCapacityReservationRequest::AcceptHasBeenSet
bool AcceptHasBeenSet() const
Definition: ModifyCapacityReservationRequest.h:277
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::EndDateType
EndDateType
Definition: EndDateType.h:17
Aws::EC2::Model::ModifyCapacityReservationRequest::AdditionalInfoHasBeenSet
bool AdditionalInfoHasBeenSet() const
Definition: ModifyCapacityReservationRequest.h:331
EndDateType.h
Aws::EC2::Model::ModifyCapacityReservationRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::ModifyCapacityReservationRequest::SetAdditionalInfo
void SetAdditionalInfo(const Aws::String &value)
Definition: ModifyCapacityReservationRequest.h:336
Aws::EC2::Model::ModifyCapacityReservationRequest::WithAccept
ModifyCapacityReservationRequest & WithAccept(bool value)
Definition: ModifyCapacityReservationRequest.h:287
Aws::EC2::Model::ModifyCapacityReservationRequest::WithCapacityReservationId
ModifyCapacityReservationRequest & WithCapacityReservationId(Aws::String &&value)
Definition: ModifyCapacityReservationRequest.h:74
Aws::EC2::Model::ModifyCapacityReservationRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: ModifyCapacityReservationRequest.h:304
Aws::EC2::Model::ModifyCapacityReservationRequest::WithAdditionalInfo
ModifyCapacityReservationRequest & WithAdditionalInfo(Aws::String &&value)
Definition: ModifyCapacityReservationRequest.h:356
Aws::EC2::Model::ModifyCapacityReservationRequest::SetDryRun
void SetDryRun(bool value)
Definition: ModifyCapacityReservationRequest.h:312
Aws::EC2::Model::ModifyCapacityReservationRequest::SetEndDateType
void SetEndDateType(const EndDateType &value)
Definition: ModifyCapacityReservationRequest.h:230
Aws::EC2::Model::ModifyCapacityReservationRequest::WithAdditionalInfo
ModifyCapacityReservationRequest & WithAdditionalInfo(const char *value)
Definition: ModifyCapacityReservationRequest.h:361
Aws::EC2::Model::ModifyCapacityReservationRequest::GetEndDateType
const EndDateType & GetEndDateType() const
Definition: ModifyCapacityReservationRequest.h:206
Aws::EC2::Model::ModifyCapacityReservationRequest::SetInstanceCount
void SetInstanceCount(int value)
Definition: ModifyCapacityReservationRequest.h:101
Aws::EC2::Model::ModifyCapacityReservationRequest::GetAdditionalInfo
const Aws::String & GetAdditionalInfo() const
Definition: ModifyCapacityReservationRequest.h:326
Aws::EC2::Model::ModifyCapacityReservationRequest::WithCapacityReservationId
ModifyCapacityReservationRequest & WithCapacityReservationId(const char *value)
Definition: ModifyCapacityReservationRequest.h:79
Aws::EC2::Model::ModifyCapacityReservationRequest::WithEndDateType
ModifyCapacityReservationRequest & WithEndDateType(const EndDateType &value)
Definition: ModifyCapacityReservationRequest.h:254
Aws::EC2::Model::ModifyCapacityReservationRequest::SetEndDate
void SetEndDate(Aws::Utils::DateTime &&value)
Definition: ModifyCapacityReservationRequest.h:165
EC2Request.h
Aws::EC2::Model::ModifyCapacityReservationRequest::InstanceCountHasBeenSet
bool InstanceCountHasBeenSet() const
Definition: ModifyCapacityReservationRequest.h:94
Aws::EC2::Model::ModifyCapacityReservationRequest::SetCapacityReservationId
void SetCapacityReservationId(const Aws::String &value)
Definition: ModifyCapacityReservationRequest.h:54
AWSString.h
Aws::EC2::Model::ModifyCapacityReservationRequest::WithEndDate
ModifyCapacityReservationRequest & WithEndDate(Aws::Utils::DateTime &&value)
Definition: ModifyCapacityReservationRequest.h:193
Aws::EC2::Model::ModifyCapacityReservationRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ModifyCapacityReservationRequest.h:32
Aws::EC2::Model::ModifyCapacityReservationRequest::SetCapacityReservationId
void SetCapacityReservationId(Aws::String &&value)
Definition: ModifyCapacityReservationRequest.h:59
Aws::EC2::Model::ModifyCapacityReservationRequest::SetAdditionalInfo
void SetAdditionalInfo(const char *value)
Definition: ModifyCapacityReservationRequest.h:346
Aws::EC2::Model::ModifyCapacityReservationRequest::GetCapacityReservationId
const Aws::String & GetCapacityReservationId() const
Definition: ModifyCapacityReservationRequest.h:44
Aws::EC2::Model::ModifyCapacityReservationRequest::WithInstanceCount
ModifyCapacityReservationRequest & WithInstanceCount(int value)
Definition: ModifyCapacityReservationRequest.h:108
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::ModifyCapacityReservationRequest::WithEndDate
ModifyCapacityReservationRequest & WithEndDate(const Aws::Utils::DateTime &value)
Definition: ModifyCapacityReservationRequest.h:179
Aws::EC2::Model::ModifyCapacityReservationRequest::SetAccept
void SetAccept(bool value)
Definition: ModifyCapacityReservationRequest.h:282
Aws::EC2::Model::ModifyCapacityReservationRequest::EndDateTypeHasBeenSet
bool EndDateTypeHasBeenSet() const
Definition: ModifyCapacityReservationRequest.h:218
Aws::EC2::Model::ModifyCapacityReservationRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::ModifyCapacityReservationRequest::WithCapacityReservationId
ModifyCapacityReservationRequest & WithCapacityReservationId(const Aws::String &value)
Definition: ModifyCapacityReservationRequest.h:69
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::ModifyCapacityReservationRequest::GetAccept
bool GetAccept() const
Definition: ModifyCapacityReservationRequest.h:272
Aws::EC2::Model::ModifyCapacityReservationRequest::SetAdditionalInfo
void SetAdditionalInfo(Aws::String &&value)
Definition: ModifyCapacityReservationRequest.h:341
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::ModifyCapacityReservationRequest::WithDryRun
ModifyCapacityReservationRequest & WithDryRun(bool value)
Definition: ModifyCapacityReservationRequest.h:320
Aws::EC2::Model::ModifyCapacityReservationRequest::ModifyCapacityReservationRequest
ModifyCapacityReservationRequest()
Aws::EC2::Model::ModifyCapacityReservationRequest::WithAdditionalInfo
ModifyCapacityReservationRequest & WithAdditionalInfo(const Aws::String &value)
Definition: ModifyCapacityReservationRequest.h:351
Aws::EC2::Model::ModifyCapacityReservationRequest::EndDateHasBeenSet
bool EndDateHasBeenSet() const
Definition: ModifyCapacityReservationRequest.h:137
EC2_EXPORTS.h
Aws::EC2::Model::ModifyCapacityReservationRequest::SetCapacityReservationId
void SetCapacityReservationId(const char *value)
Definition: ModifyCapacityReservationRequest.h:64
Aws::EC2::Model::ModifyCapacityReservationRequest
Definition: ModifyCapacityReservationRequest.h:24
Aws::EC2::Model::ModifyCapacityReservationRequest::WithEndDateType
ModifyCapacityReservationRequest & WithEndDateType(EndDateType &&value)
Definition: ModifyCapacityReservationRequest.h:266