AWS SDK for C++  1.9.75
AWS SDK for C++
AcceptReservedInstancesExchangeQuoteRequest.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 
28  {
29  public:
31 
32  // Service request name is the Operation name which will send this request out,
33  // each operation should has unique request name, so that we can get operation's name from this request.
34  // Note: this is not true for response, multiple operations may have the same response name,
35  // so we can not get operation's name from response.
36  inline virtual const char* GetServiceRequestName() const override { return "AcceptReservedInstancesExchangeQuote"; }
37 
38  Aws::String SerializePayload() const override;
39 
40  protected:
41  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
42 
43  public:
44 
51  inline bool GetDryRun() const{ return m_dryRun; }
52 
59  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
60 
67  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
68 
75  inline AcceptReservedInstancesExchangeQuoteRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
76 
77 
82  inline const Aws::Vector<Aws::String>& GetReservedInstanceIds() const{ return m_reservedInstanceIds; }
83 
88  inline bool ReservedInstanceIdsHasBeenSet() const { return m_reservedInstanceIdsHasBeenSet; }
89 
94  inline void SetReservedInstanceIds(const Aws::Vector<Aws::String>& value) { m_reservedInstanceIdsHasBeenSet = true; m_reservedInstanceIds = value; }
95 
100  inline void SetReservedInstanceIds(Aws::Vector<Aws::String>&& value) { m_reservedInstanceIdsHasBeenSet = true; m_reservedInstanceIds = std::move(value); }
101 
106  inline AcceptReservedInstancesExchangeQuoteRequest& WithReservedInstanceIds(const Aws::Vector<Aws::String>& value) { SetReservedInstanceIds(value); return *this;}
107 
112  inline AcceptReservedInstancesExchangeQuoteRequest& WithReservedInstanceIds(Aws::Vector<Aws::String>&& value) { SetReservedInstanceIds(std::move(value)); return *this;}
113 
118  inline AcceptReservedInstancesExchangeQuoteRequest& AddReservedInstanceIds(const Aws::String& value) { m_reservedInstanceIdsHasBeenSet = true; m_reservedInstanceIds.push_back(value); return *this; }
119 
124  inline AcceptReservedInstancesExchangeQuoteRequest& AddReservedInstanceIds(Aws::String&& value) { m_reservedInstanceIdsHasBeenSet = true; m_reservedInstanceIds.push_back(std::move(value)); return *this; }
125 
130  inline AcceptReservedInstancesExchangeQuoteRequest& AddReservedInstanceIds(const char* value) { m_reservedInstanceIdsHasBeenSet = true; m_reservedInstanceIds.push_back(value); return *this; }
131 
132 
137  inline const Aws::Vector<TargetConfigurationRequest>& GetTargetConfigurations() const{ return m_targetConfigurations; }
138 
143  inline bool TargetConfigurationsHasBeenSet() const { return m_targetConfigurationsHasBeenSet; }
144 
149  inline void SetTargetConfigurations(const Aws::Vector<TargetConfigurationRequest>& value) { m_targetConfigurationsHasBeenSet = true; m_targetConfigurations = value; }
150 
155  inline void SetTargetConfigurations(Aws::Vector<TargetConfigurationRequest>&& value) { m_targetConfigurationsHasBeenSet = true; m_targetConfigurations = std::move(value); }
156 
161  inline AcceptReservedInstancesExchangeQuoteRequest& WithTargetConfigurations(const Aws::Vector<TargetConfigurationRequest>& value) { SetTargetConfigurations(value); return *this;}
162 
167  inline AcceptReservedInstancesExchangeQuoteRequest& WithTargetConfigurations(Aws::Vector<TargetConfigurationRequest>&& value) { SetTargetConfigurations(std::move(value)); return *this;}
168 
173  inline AcceptReservedInstancesExchangeQuoteRequest& AddTargetConfigurations(const TargetConfigurationRequest& value) { m_targetConfigurationsHasBeenSet = true; m_targetConfigurations.push_back(value); return *this; }
174 
179  inline AcceptReservedInstancesExchangeQuoteRequest& AddTargetConfigurations(TargetConfigurationRequest&& value) { m_targetConfigurationsHasBeenSet = true; m_targetConfigurations.push_back(std::move(value)); return *this; }
180 
181  private:
182 
183  bool m_dryRun;
184  bool m_dryRunHasBeenSet;
185 
186  Aws::Vector<Aws::String> m_reservedInstanceIds;
187  bool m_reservedInstanceIdsHasBeenSet;
188 
189  Aws::Vector<TargetConfigurationRequest> m_targetConfigurations;
190  bool m_targetConfigurationsHasBeenSet;
191  };
192 
193 } // namespace Model
194 } // namespace EC2
195 } // namespace Aws
Aws::EC2::Model::AcceptReservedInstancesExchangeQuoteRequest::WithReservedInstanceIds
AcceptReservedInstancesExchangeQuoteRequest & WithReservedInstanceIds(Aws::Vector< Aws::String > &&value)
Definition: AcceptReservedInstancesExchangeQuoteRequest.h:112
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::TargetConfigurationRequest
Definition: TargetConfigurationRequest.h:32
Aws::EC2::Model::AcceptReservedInstancesExchangeQuoteRequest::AcceptReservedInstancesExchangeQuoteRequest
AcceptReservedInstancesExchangeQuoteRequest()
Aws::EC2::Model::AcceptReservedInstancesExchangeQuoteRequest::SetReservedInstanceIds
void SetReservedInstanceIds(const Aws::Vector< Aws::String > &value)
Definition: AcceptReservedInstancesExchangeQuoteRequest.h:94
Aws::EC2::Model::AcceptReservedInstancesExchangeQuoteRequest::WithTargetConfigurations
AcceptReservedInstancesExchangeQuoteRequest & WithTargetConfigurations(Aws::Vector< TargetConfigurationRequest > &&value)
Definition: AcceptReservedInstancesExchangeQuoteRequest.h:167
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
TargetConfigurationRequest.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::AcceptReservedInstancesExchangeQuoteRequest::WithTargetConfigurations
AcceptReservedInstancesExchangeQuoteRequest & WithTargetConfigurations(const Aws::Vector< TargetConfigurationRequest > &value)
Definition: AcceptReservedInstancesExchangeQuoteRequest.h:161
Aws::EC2::Model::AcceptReservedInstancesExchangeQuoteRequest::WithReservedInstanceIds
AcceptReservedInstancesExchangeQuoteRequest & WithReservedInstanceIds(const Aws::Vector< Aws::String > &value)
Definition: AcceptReservedInstancesExchangeQuoteRequest.h:106
AWSVector.h
Aws::EC2::Model::AcceptReservedInstancesExchangeQuoteRequest::WithDryRun
AcceptReservedInstancesExchangeQuoteRequest & WithDryRun(bool value)
Definition: AcceptReservedInstancesExchangeQuoteRequest.h:75
Aws::EC2::Model::AcceptReservedInstancesExchangeQuoteRequest::AddReservedInstanceIds
AcceptReservedInstancesExchangeQuoteRequest & AddReservedInstanceIds(const char *value)
Definition: AcceptReservedInstancesExchangeQuoteRequest.h:130
Aws::EC2::Model::AcceptReservedInstancesExchangeQuoteRequest::AddTargetConfigurations
AcceptReservedInstancesExchangeQuoteRequest & AddTargetConfigurations(TargetConfigurationRequest &&value)
Definition: AcceptReservedInstancesExchangeQuoteRequest.h:179
Aws::EC2::Model::AcceptReservedInstancesExchangeQuoteRequest::SetReservedInstanceIds
void SetReservedInstanceIds(Aws::Vector< Aws::String > &&value)
Definition: AcceptReservedInstancesExchangeQuoteRequest.h:100
Aws::EC2::Model::AcceptReservedInstancesExchangeQuoteRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: AcceptReservedInstancesExchangeQuoteRequest.h:36
EC2Request.h
Aws::EC2::Model::AcceptReservedInstancesExchangeQuoteRequest::SetTargetConfigurations
void SetTargetConfigurations(const Aws::Vector< TargetConfigurationRequest > &value)
Definition: AcceptReservedInstancesExchangeQuoteRequest.h:149
Aws::EC2::Model::AcceptReservedInstancesExchangeQuoteRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::AcceptReservedInstancesExchangeQuoteRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: AcceptReservedInstancesExchangeQuoteRequest.h:59
AWSString.h
Aws::EC2::Model::AcceptReservedInstancesExchangeQuoteRequest::TargetConfigurationsHasBeenSet
bool TargetConfigurationsHasBeenSet() const
Definition: AcceptReservedInstancesExchangeQuoteRequest.h:143
Aws::EC2::Model::AcceptReservedInstancesExchangeQuoteRequest::SetDryRun
void SetDryRun(bool value)
Definition: AcceptReservedInstancesExchangeQuoteRequest.h:67
Aws::EC2::Model::AcceptReservedInstancesExchangeQuoteRequest::AddTargetConfigurations
AcceptReservedInstancesExchangeQuoteRequest & AddTargetConfigurations(const TargetConfigurationRequest &value)
Definition: AcceptReservedInstancesExchangeQuoteRequest.h:173
Aws::EC2::Model::AcceptReservedInstancesExchangeQuoteRequest::AddReservedInstanceIds
AcceptReservedInstancesExchangeQuoteRequest & AddReservedInstanceIds(const Aws::String &value)
Definition: AcceptReservedInstancesExchangeQuoteRequest.h:118
Aws::EC2::Model::AcceptReservedInstancesExchangeQuoteRequest::SetTargetConfigurations
void SetTargetConfigurations(Aws::Vector< TargetConfigurationRequest > &&value)
Definition: AcceptReservedInstancesExchangeQuoteRequest.h:155
Aws::EC2::Model::AcceptReservedInstancesExchangeQuoteRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::AcceptReservedInstancesExchangeQuoteRequest::GetReservedInstanceIds
const Aws::Vector< Aws::String > & GetReservedInstanceIds() const
Definition: AcceptReservedInstancesExchangeQuoteRequest.h:82
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::AcceptReservedInstancesExchangeQuoteRequest::AddReservedInstanceIds
AcceptReservedInstancesExchangeQuoteRequest & AddReservedInstanceIds(Aws::String &&value)
Definition: AcceptReservedInstancesExchangeQuoteRequest.h:124
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::AcceptReservedInstancesExchangeQuoteRequest::ReservedInstanceIdsHasBeenSet
bool ReservedInstanceIdsHasBeenSet() const
Definition: AcceptReservedInstancesExchangeQuoteRequest.h:88
EC2_EXPORTS.h
Aws::EC2::Model::AcceptReservedInstancesExchangeQuoteRequest::GetTargetConfigurations
const Aws::Vector< TargetConfigurationRequest > & GetTargetConfigurations() const
Definition: AcceptReservedInstancesExchangeQuoteRequest.h:137
Aws::EC2::Model::AcceptReservedInstancesExchangeQuoteRequest::GetDryRun
bool GetDryRun() const
Definition: AcceptReservedInstancesExchangeQuoteRequest.h:51
Aws::EC2::Model::AcceptReservedInstancesExchangeQuoteRequest
Definition: AcceptReservedInstancesExchangeQuoteRequest.h:28