AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ModifyCapacityReservationRequest.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/ec2/model/EndDateType.h>
12#include <aws/ec2/model/InstanceMatchCriteria.h>
13#include <utility>
14
15namespace Aws
16{
17namespace EC2
18{
19namespace Model
20{
21
25 {
26 public:
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "ModifyCapacityReservation"; }
34
35 AWS_EC2_API Aws::String SerializePayload() const override;
36
37 protected:
38 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
39
40 public:
41
43
46 inline const Aws::String& GetCapacityReservationId() const{ return m_capacityReservationId; }
47 inline bool CapacityReservationIdHasBeenSet() const { return m_capacityReservationIdHasBeenSet; }
48 inline void SetCapacityReservationId(const Aws::String& value) { m_capacityReservationIdHasBeenSet = true; m_capacityReservationId = value; }
49 inline void SetCapacityReservationId(Aws::String&& value) { m_capacityReservationIdHasBeenSet = true; m_capacityReservationId = std::move(value); }
50 inline void SetCapacityReservationId(const char* value) { m_capacityReservationIdHasBeenSet = true; m_capacityReservationId.assign(value); }
55
57
62 inline int GetInstanceCount() const{ return m_instanceCount; }
63 inline bool InstanceCountHasBeenSet() const { return m_instanceCountHasBeenSet; }
64 inline void SetInstanceCount(int value) { m_instanceCountHasBeenSet = true; m_instanceCount = value; }
65 inline ModifyCapacityReservationRequest& WithInstanceCount(int value) { SetInstanceCount(value); return *this;}
67
69
81 inline const Aws::Utils::DateTime& GetEndDate() const{ return m_endDate; }
82 inline bool EndDateHasBeenSet() const { return m_endDateHasBeenSet; }
83 inline void SetEndDate(const Aws::Utils::DateTime& value) { m_endDateHasBeenSet = true; m_endDate = value; }
84 inline void SetEndDate(Aws::Utils::DateTime&& value) { m_endDateHasBeenSet = true; m_endDate = std::move(value); }
85 inline ModifyCapacityReservationRequest& WithEndDate(const Aws::Utils::DateTime& value) { SetEndDate(value); return *this;}
86 inline ModifyCapacityReservationRequest& WithEndDate(Aws::Utils::DateTime&& value) { SetEndDate(std::move(value)); return *this;}
88
90
100 inline const EndDateType& GetEndDateType() const{ return m_endDateType; }
101 inline bool EndDateTypeHasBeenSet() const { return m_endDateTypeHasBeenSet; }
102 inline void SetEndDateType(const EndDateType& value) { m_endDateTypeHasBeenSet = true; m_endDateType = value; }
103 inline void SetEndDateType(EndDateType&& value) { m_endDateTypeHasBeenSet = true; m_endDateType = std::move(value); }
104 inline ModifyCapacityReservationRequest& WithEndDateType(const EndDateType& value) { SetEndDateType(value); return *this;}
105 inline ModifyCapacityReservationRequest& WithEndDateType(EndDateType&& value) { SetEndDateType(std::move(value)); return *this;}
107
109
112 inline bool GetAccept() const{ return m_accept; }
113 inline bool AcceptHasBeenSet() const { return m_acceptHasBeenSet; }
114 inline void SetAccept(bool value) { m_acceptHasBeenSet = true; m_accept = value; }
115 inline ModifyCapacityReservationRequest& WithAccept(bool value) { SetAccept(value); return *this;}
117
119
125 inline bool GetDryRun() const{ return m_dryRun; }
126 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
127 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
128 inline ModifyCapacityReservationRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
130
132
135 inline const Aws::String& GetAdditionalInfo() const{ return m_additionalInfo; }
136 inline bool AdditionalInfoHasBeenSet() const { return m_additionalInfoHasBeenSet; }
137 inline void SetAdditionalInfo(const Aws::String& value) { m_additionalInfoHasBeenSet = true; m_additionalInfo = value; }
138 inline void SetAdditionalInfo(Aws::String&& value) { m_additionalInfoHasBeenSet = true; m_additionalInfo = std::move(value); }
139 inline void SetAdditionalInfo(const char* value) { m_additionalInfoHasBeenSet = true; m_additionalInfo.assign(value); }
141 inline ModifyCapacityReservationRequest& WithAdditionalInfo(Aws::String&& value) { SetAdditionalInfo(std::move(value)); return *this;}
142 inline ModifyCapacityReservationRequest& WithAdditionalInfo(const char* value) { SetAdditionalInfo(value); return *this;}
144
146
156 inline const InstanceMatchCriteria& GetInstanceMatchCriteria() const{ return m_instanceMatchCriteria; }
157 inline bool InstanceMatchCriteriaHasBeenSet() const { return m_instanceMatchCriteriaHasBeenSet; }
158 inline void SetInstanceMatchCriteria(const InstanceMatchCriteria& value) { m_instanceMatchCriteriaHasBeenSet = true; m_instanceMatchCriteria = value; }
159 inline void SetInstanceMatchCriteria(InstanceMatchCriteria&& value) { m_instanceMatchCriteriaHasBeenSet = true; m_instanceMatchCriteria = std::move(value); }
163 private:
164
165 Aws::String m_capacityReservationId;
166 bool m_capacityReservationIdHasBeenSet = false;
167
168 int m_instanceCount;
169 bool m_instanceCountHasBeenSet = false;
170
171 Aws::Utils::DateTime m_endDate;
172 bool m_endDateHasBeenSet = false;
173
174 EndDateType m_endDateType;
175 bool m_endDateTypeHasBeenSet = false;
176
177 bool m_accept;
178 bool m_acceptHasBeenSet = false;
179
180 bool m_dryRun;
181 bool m_dryRunHasBeenSet = false;
182
183 Aws::String m_additionalInfo;
184 bool m_additionalInfoHasBeenSet = false;
185
186 InstanceMatchCriteria m_instanceMatchCriteria;
187 bool m_instanceMatchCriteriaHasBeenSet = false;
188 };
189
190} // namespace Model
191} // namespace EC2
192} // namespace Aws
ModifyCapacityReservationRequest & WithCapacityReservationId(const Aws::String &value)
ModifyCapacityReservationRequest & WithAdditionalInfo(Aws::String &&value)
ModifyCapacityReservationRequest & WithCapacityReservationId(const char *value)
ModifyCapacityReservationRequest & WithInstanceMatchCriteria(const InstanceMatchCriteria &value)
ModifyCapacityReservationRequest & WithEndDate(const Aws::Utils::DateTime &value)
ModifyCapacityReservationRequest & WithAdditionalInfo(const Aws::String &value)
ModifyCapacityReservationRequest & WithAdditionalInfo(const char *value)
ModifyCapacityReservationRequest & WithInstanceCount(int value)
ModifyCapacityReservationRequest & WithCapacityReservationId(Aws::String &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
ModifyCapacityReservationRequest & WithEndDateType(const EndDateType &value)
AWS_EC2_API Aws::String SerializePayload() const override
ModifyCapacityReservationRequest & WithDryRun(bool value)
ModifyCapacityReservationRequest & WithInstanceMatchCriteria(InstanceMatchCriteria &&value)
ModifyCapacityReservationRequest & WithEndDate(Aws::Utils::DateTime &&value)
void SetInstanceMatchCriteria(const InstanceMatchCriteria &value)
ModifyCapacityReservationRequest & WithAccept(bool value)
ModifyCapacityReservationRequest & WithEndDateType(EndDateType &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String