AWS SDK for C++  1.9.66
AWS SDK for C++
GetReservedInstancesExchangeQuoteRequest.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 "GetReservedInstancesExchangeQuote"; }
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 GetReservedInstancesExchangeQuoteRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
76 
77 
81  inline const Aws::Vector<Aws::String>& GetReservedInstanceIds() const{ return m_reservedInstanceIds; }
82 
86  inline bool ReservedInstanceIdsHasBeenSet() const { return m_reservedInstanceIdsHasBeenSet; }
87 
91  inline void SetReservedInstanceIds(const Aws::Vector<Aws::String>& value) { m_reservedInstanceIdsHasBeenSet = true; m_reservedInstanceIds = value; }
92 
96  inline void SetReservedInstanceIds(Aws::Vector<Aws::String>&& value) { m_reservedInstanceIdsHasBeenSet = true; m_reservedInstanceIds = std::move(value); }
97 
101  inline GetReservedInstancesExchangeQuoteRequest& WithReservedInstanceIds(const Aws::Vector<Aws::String>& value) { SetReservedInstanceIds(value); return *this;}
102 
106  inline GetReservedInstancesExchangeQuoteRequest& WithReservedInstanceIds(Aws::Vector<Aws::String>&& value) { SetReservedInstanceIds(std::move(value)); return *this;}
107 
111  inline GetReservedInstancesExchangeQuoteRequest& AddReservedInstanceIds(const Aws::String& value) { m_reservedInstanceIdsHasBeenSet = true; m_reservedInstanceIds.push_back(value); return *this; }
112 
116  inline GetReservedInstancesExchangeQuoteRequest& AddReservedInstanceIds(Aws::String&& value) { m_reservedInstanceIdsHasBeenSet = true; m_reservedInstanceIds.push_back(std::move(value)); return *this; }
117 
121  inline GetReservedInstancesExchangeQuoteRequest& AddReservedInstanceIds(const char* value) { m_reservedInstanceIdsHasBeenSet = true; m_reservedInstanceIds.push_back(value); return *this; }
122 
123 
128  inline const Aws::Vector<TargetConfigurationRequest>& GetTargetConfigurations() const{ return m_targetConfigurations; }
129 
134  inline bool TargetConfigurationsHasBeenSet() const { return m_targetConfigurationsHasBeenSet; }
135 
140  inline void SetTargetConfigurations(const Aws::Vector<TargetConfigurationRequest>& value) { m_targetConfigurationsHasBeenSet = true; m_targetConfigurations = value; }
141 
146  inline void SetTargetConfigurations(Aws::Vector<TargetConfigurationRequest>&& value) { m_targetConfigurationsHasBeenSet = true; m_targetConfigurations = std::move(value); }
147 
152  inline GetReservedInstancesExchangeQuoteRequest& WithTargetConfigurations(const Aws::Vector<TargetConfigurationRequest>& value) { SetTargetConfigurations(value); return *this;}
153 
158  inline GetReservedInstancesExchangeQuoteRequest& WithTargetConfigurations(Aws::Vector<TargetConfigurationRequest>&& value) { SetTargetConfigurations(std::move(value)); return *this;}
159 
164  inline GetReservedInstancesExchangeQuoteRequest& AddTargetConfigurations(const TargetConfigurationRequest& value) { m_targetConfigurationsHasBeenSet = true; m_targetConfigurations.push_back(value); return *this; }
165 
170  inline GetReservedInstancesExchangeQuoteRequest& AddTargetConfigurations(TargetConfigurationRequest&& value) { m_targetConfigurationsHasBeenSet = true; m_targetConfigurations.push_back(std::move(value)); return *this; }
171 
172  private:
173 
174  bool m_dryRun;
175  bool m_dryRunHasBeenSet;
176 
177  Aws::Vector<Aws::String> m_reservedInstanceIds;
178  bool m_reservedInstanceIdsHasBeenSet;
179 
180  Aws::Vector<TargetConfigurationRequest> m_targetConfigurations;
181  bool m_targetConfigurationsHasBeenSet;
182  };
183 
184 } // namespace Model
185 } // namespace EC2
186 } // namespace Aws
Aws::EC2::Model::GetReservedInstancesExchangeQuoteRequest
Definition: GetReservedInstancesExchangeQuoteRequest.h:28
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::GetReservedInstancesExchangeQuoteRequest::GetDryRun
bool GetDryRun() const
Definition: GetReservedInstancesExchangeQuoteRequest.h:51
Aws::EC2::Model::TargetConfigurationRequest
Definition: TargetConfigurationRequest.h:32
Aws::EC2::Model::GetReservedInstancesExchangeQuoteRequest::WithReservedInstanceIds
GetReservedInstancesExchangeQuoteRequest & WithReservedInstanceIds(Aws::Vector< Aws::String > &&value)
Definition: GetReservedInstancesExchangeQuoteRequest.h:106
Aws::EC2::Model::GetReservedInstancesExchangeQuoteRequest::SetReservedInstanceIds
void SetReservedInstanceIds(const Aws::Vector< Aws::String > &value)
Definition: GetReservedInstancesExchangeQuoteRequest.h:91
Aws::EC2::Model::GetReservedInstancesExchangeQuoteRequest::AddTargetConfigurations
GetReservedInstancesExchangeQuoteRequest & AddTargetConfigurations(TargetConfigurationRequest &&value)
Definition: GetReservedInstancesExchangeQuoteRequest.h:170
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::GetReservedInstancesExchangeQuoteRequest::ReservedInstanceIdsHasBeenSet
bool ReservedInstanceIdsHasBeenSet() const
Definition: GetReservedInstancesExchangeQuoteRequest.h:86
TargetConfigurationRequest.h
Aws::EC2::Model::GetReservedInstancesExchangeQuoteRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::GetReservedInstancesExchangeQuoteRequest::AddReservedInstanceIds
GetReservedInstancesExchangeQuoteRequest & AddReservedInstanceIds(const Aws::String &value)
Definition: GetReservedInstancesExchangeQuoteRequest.h:111
Aws::EC2::Model::GetReservedInstancesExchangeQuoteRequest::SetDryRun
void SetDryRun(bool value)
Definition: GetReservedInstancesExchangeQuoteRequest.h:67
AWSVector.h
Aws::EC2::Model::GetReservedInstancesExchangeQuoteRequest::WithReservedInstanceIds
GetReservedInstancesExchangeQuoteRequest & WithReservedInstanceIds(const Aws::Vector< Aws::String > &value)
Definition: GetReservedInstancesExchangeQuoteRequest.h:101
Aws::EC2::Model::GetReservedInstancesExchangeQuoteRequest::WithTargetConfigurations
GetReservedInstancesExchangeQuoteRequest & WithTargetConfigurations(Aws::Vector< TargetConfigurationRequest > &&value)
Definition: GetReservedInstancesExchangeQuoteRequest.h:158
Aws::EC2::Model::GetReservedInstancesExchangeQuoteRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetReservedInstancesExchangeQuoteRequest.h:36
EC2Request.h
Aws::EC2::Model::GetReservedInstancesExchangeQuoteRequest::AddReservedInstanceIds
GetReservedInstancesExchangeQuoteRequest & AddReservedInstanceIds(const char *value)
Definition: GetReservedInstancesExchangeQuoteRequest.h:121
Aws::EC2::Model::GetReservedInstancesExchangeQuoteRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: GetReservedInstancesExchangeQuoteRequest.h:59
Aws::EC2::Model::GetReservedInstancesExchangeQuoteRequest::SerializePayload
Aws::String SerializePayload() const override
AWSString.h
Aws::EC2::Model::GetReservedInstancesExchangeQuoteRequest::GetReservedInstancesExchangeQuoteRequest
GetReservedInstancesExchangeQuoteRequest()
Aws::EC2::Model::GetReservedInstancesExchangeQuoteRequest::SetReservedInstanceIds
void SetReservedInstanceIds(Aws::Vector< Aws::String > &&value)
Definition: GetReservedInstancesExchangeQuoteRequest.h:96
Aws::EC2::Model::GetReservedInstancesExchangeQuoteRequest::SetTargetConfigurations
void SetTargetConfigurations(const Aws::Vector< TargetConfigurationRequest > &value)
Definition: GetReservedInstancesExchangeQuoteRequest.h:140
Aws::EC2::Model::GetReservedInstancesExchangeQuoteRequest::AddTargetConfigurations
GetReservedInstancesExchangeQuoteRequest & AddTargetConfigurations(const TargetConfigurationRequest &value)
Definition: GetReservedInstancesExchangeQuoteRequest.h:164
Aws::EC2::Model::GetReservedInstancesExchangeQuoteRequest::AddReservedInstanceIds
GetReservedInstancesExchangeQuoteRequest & AddReservedInstanceIds(Aws::String &&value)
Definition: GetReservedInstancesExchangeQuoteRequest.h:116
Aws::EC2::Model::GetReservedInstancesExchangeQuoteRequest::TargetConfigurationsHasBeenSet
bool TargetConfigurationsHasBeenSet() const
Definition: GetReservedInstancesExchangeQuoteRequest.h:134
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::GetReservedInstancesExchangeQuoteRequest::WithTargetConfigurations
GetReservedInstancesExchangeQuoteRequest & WithTargetConfigurations(const Aws::Vector< TargetConfigurationRequest > &value)
Definition: GetReservedInstancesExchangeQuoteRequest.h:152
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::GetReservedInstancesExchangeQuoteRequest::GetTargetConfigurations
const Aws::Vector< TargetConfigurationRequest > & GetTargetConfigurations() const
Definition: GetReservedInstancesExchangeQuoteRequest.h:128
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::GetReservedInstancesExchangeQuoteRequest::SetTargetConfigurations
void SetTargetConfigurations(Aws::Vector< TargetConfigurationRequest > &&value)
Definition: GetReservedInstancesExchangeQuoteRequest.h:146
EC2_EXPORTS.h
Aws::EC2::Model::GetReservedInstancesExchangeQuoteRequest::WithDryRun
GetReservedInstancesExchangeQuoteRequest & WithDryRun(bool value)
Definition: GetReservedInstancesExchangeQuoteRequest.h:75
Aws::EC2::Model::GetReservedInstancesExchangeQuoteRequest::GetReservedInstanceIds
const Aws::Vector< Aws::String > & GetReservedInstanceIds() const
Definition: GetReservedInstancesExchangeQuoteRequest.h:81