AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetReservedInstancesExchangeQuoteRequest.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/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/ec2/model/TargetConfigurationRequest.h>
12#include <utility>
13
14namespace Aws
15{
16namespace EC2
17{
18namespace 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_EC2_API Aws::String SerializePayload() const override;
39
40 protected:
41 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
42
43 public:
44
46
52 inline bool GetDryRun() const{ return m_dryRun; }
53 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
54 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
55 inline GetReservedInstancesExchangeQuoteRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
57
59
62 inline const Aws::Vector<Aws::String>& GetReservedInstanceIds() const{ return m_reservedInstanceIds; }
63 inline bool ReservedInstanceIdsHasBeenSet() const { return m_reservedInstanceIdsHasBeenSet; }
64 inline void SetReservedInstanceIds(const Aws::Vector<Aws::String>& value) { m_reservedInstanceIdsHasBeenSet = true; m_reservedInstanceIds = value; }
65 inline void SetReservedInstanceIds(Aws::Vector<Aws::String>&& value) { m_reservedInstanceIdsHasBeenSet = true; m_reservedInstanceIds = std::move(value); }
68 inline GetReservedInstancesExchangeQuoteRequest& AddReservedInstanceIds(const Aws::String& value) { m_reservedInstanceIdsHasBeenSet = true; m_reservedInstanceIds.push_back(value); return *this; }
69 inline GetReservedInstancesExchangeQuoteRequest& AddReservedInstanceIds(Aws::String&& value) { m_reservedInstanceIdsHasBeenSet = true; m_reservedInstanceIds.push_back(std::move(value)); return *this; }
70 inline GetReservedInstancesExchangeQuoteRequest& AddReservedInstanceIds(const char* value) { m_reservedInstanceIdsHasBeenSet = true; m_reservedInstanceIds.push_back(value); return *this; }
72
74
78 inline const Aws::Vector<TargetConfigurationRequest>& GetTargetConfigurations() const{ return m_targetConfigurations; }
79 inline bool TargetConfigurationsHasBeenSet() const { return m_targetConfigurationsHasBeenSet; }
80 inline void SetTargetConfigurations(const Aws::Vector<TargetConfigurationRequest>& value) { m_targetConfigurationsHasBeenSet = true; m_targetConfigurations = value; }
81 inline void SetTargetConfigurations(Aws::Vector<TargetConfigurationRequest>&& value) { m_targetConfigurationsHasBeenSet = true; m_targetConfigurations = std::move(value); }
84 inline GetReservedInstancesExchangeQuoteRequest& AddTargetConfigurations(const TargetConfigurationRequest& value) { m_targetConfigurationsHasBeenSet = true; m_targetConfigurations.push_back(value); return *this; }
85 inline GetReservedInstancesExchangeQuoteRequest& AddTargetConfigurations(TargetConfigurationRequest&& value) { m_targetConfigurationsHasBeenSet = true; m_targetConfigurations.push_back(std::move(value)); return *this; }
87 private:
88
89 bool m_dryRun;
90 bool m_dryRunHasBeenSet = false;
91
92 Aws::Vector<Aws::String> m_reservedInstanceIds;
93 bool m_reservedInstanceIdsHasBeenSet = false;
94
95 Aws::Vector<TargetConfigurationRequest> m_targetConfigurations;
96 bool m_targetConfigurationsHasBeenSet = false;
97 };
98
99} // namespace Model
100} // namespace EC2
101} // namespace Aws
GetReservedInstancesExchangeQuoteRequest & WithDryRun(bool value)
GetReservedInstancesExchangeQuoteRequest & AddReservedInstanceIds(Aws::String &&value)
void SetTargetConfigurations(const Aws::Vector< TargetConfigurationRequest > &value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
GetReservedInstancesExchangeQuoteRequest & WithReservedInstanceIds(const Aws::Vector< Aws::String > &value)
GetReservedInstancesExchangeQuoteRequest & AddReservedInstanceIds(const Aws::String &value)
GetReservedInstancesExchangeQuoteRequest & WithTargetConfigurations(Aws::Vector< TargetConfigurationRequest > &&value)
void SetTargetConfigurations(Aws::Vector< TargetConfigurationRequest > &&value)
AWS_EC2_API Aws::String SerializePayload() const override
GetReservedInstancesExchangeQuoteRequest & AddTargetConfigurations(const TargetConfigurationRequest &value)
GetReservedInstancesExchangeQuoteRequest & WithTargetConfigurations(const Aws::Vector< TargetConfigurationRequest > &value)
const Aws::Vector< TargetConfigurationRequest > & GetTargetConfigurations() const
GetReservedInstancesExchangeQuoteRequest & AddTargetConfigurations(TargetConfigurationRequest &&value)
GetReservedInstancesExchangeQuoteRequest & AddReservedInstanceIds(const char *value)
GetReservedInstancesExchangeQuoteRequest & WithReservedInstanceIds(Aws::Vector< Aws::String > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector