AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AcceptReservedInstancesExchangeQuoteRequest.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 "AcceptReservedInstancesExchangeQuote"; }
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 AcceptReservedInstancesExchangeQuoteRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
57
59
63 inline const Aws::Vector<Aws::String>& GetReservedInstanceIds() const{ return m_reservedInstanceIds; }
64 inline bool ReservedInstanceIdsHasBeenSet() const { return m_reservedInstanceIdsHasBeenSet; }
65 inline void SetReservedInstanceIds(const Aws::Vector<Aws::String>& value) { m_reservedInstanceIdsHasBeenSet = true; m_reservedInstanceIds = value; }
66 inline void SetReservedInstanceIds(Aws::Vector<Aws::String>&& value) { m_reservedInstanceIdsHasBeenSet = true; m_reservedInstanceIds = std::move(value); }
69 inline AcceptReservedInstancesExchangeQuoteRequest& AddReservedInstanceIds(const Aws::String& value) { m_reservedInstanceIdsHasBeenSet = true; m_reservedInstanceIds.push_back(value); return *this; }
70 inline AcceptReservedInstancesExchangeQuoteRequest& AddReservedInstanceIds(Aws::String&& value) { m_reservedInstanceIdsHasBeenSet = true; m_reservedInstanceIds.push_back(std::move(value)); return *this; }
71 inline AcceptReservedInstancesExchangeQuoteRequest& AddReservedInstanceIds(const char* value) { m_reservedInstanceIdsHasBeenSet = true; m_reservedInstanceIds.push_back(value); return *this; }
73
75
79 inline const Aws::Vector<TargetConfigurationRequest>& GetTargetConfigurations() const{ return m_targetConfigurations; }
80 inline bool TargetConfigurationsHasBeenSet() const { return m_targetConfigurationsHasBeenSet; }
81 inline void SetTargetConfigurations(const Aws::Vector<TargetConfigurationRequest>& value) { m_targetConfigurationsHasBeenSet = true; m_targetConfigurations = value; }
82 inline void SetTargetConfigurations(Aws::Vector<TargetConfigurationRequest>&& value) { m_targetConfigurationsHasBeenSet = true; m_targetConfigurations = std::move(value); }
85 inline AcceptReservedInstancesExchangeQuoteRequest& AddTargetConfigurations(const TargetConfigurationRequest& value) { m_targetConfigurationsHasBeenSet = true; m_targetConfigurations.push_back(value); return *this; }
86 inline AcceptReservedInstancesExchangeQuoteRequest& AddTargetConfigurations(TargetConfigurationRequest&& value) { m_targetConfigurationsHasBeenSet = true; m_targetConfigurations.push_back(std::move(value)); return *this; }
88 private:
89
90 bool m_dryRun;
91 bool m_dryRunHasBeenSet = false;
92
93 Aws::Vector<Aws::String> m_reservedInstanceIds;
94 bool m_reservedInstanceIdsHasBeenSet = false;
95
96 Aws::Vector<TargetConfigurationRequest> m_targetConfigurations;
97 bool m_targetConfigurationsHasBeenSet = false;
98 };
99
100} // namespace Model
101} // namespace EC2
102} // namespace Aws
AcceptReservedInstancesExchangeQuoteRequest & WithReservedInstanceIds(Aws::Vector< Aws::String > &&value)
AcceptReservedInstancesExchangeQuoteRequest & AddReservedInstanceIds(const char *value)
void SetTargetConfigurations(Aws::Vector< TargetConfigurationRequest > &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AcceptReservedInstancesExchangeQuoteRequest & WithTargetConfigurations(Aws::Vector< TargetConfigurationRequest > &&value)
AcceptReservedInstancesExchangeQuoteRequest & AddTargetConfigurations(const TargetConfigurationRequest &value)
AcceptReservedInstancesExchangeQuoteRequest & WithReservedInstanceIds(const Aws::Vector< Aws::String > &value)
AcceptReservedInstancesExchangeQuoteRequest & AddTargetConfigurations(TargetConfigurationRequest &&value)
AcceptReservedInstancesExchangeQuoteRequest & AddReservedInstanceIds(const Aws::String &value)
const Aws::Vector< TargetConfigurationRequest > & GetTargetConfigurations() const
AcceptReservedInstancesExchangeQuoteRequest & WithTargetConfigurations(const Aws::Vector< TargetConfigurationRequest > &value)
AcceptReservedInstancesExchangeQuoteRequest & AddReservedInstanceIds(Aws::String &&value)
void SetTargetConfigurations(const Aws::Vector< TargetConfigurationRequest > &value)
AWS_EC2_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector