AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ModifyReservedInstancesRequest.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/ReservedInstancesConfiguration.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 "ModifyReservedInstances"; }
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
49 inline const Aws::Vector<Aws::String>& GetReservedInstancesIds() const{ return m_reservedInstancesIds; }
50 inline bool ReservedInstancesIdsHasBeenSet() const { return m_reservedInstancesIdsHasBeenSet; }
51 inline void SetReservedInstancesIds(const Aws::Vector<Aws::String>& value) { m_reservedInstancesIdsHasBeenSet = true; m_reservedInstancesIds = value; }
52 inline void SetReservedInstancesIds(Aws::Vector<Aws::String>&& value) { m_reservedInstancesIdsHasBeenSet = true; m_reservedInstancesIds = std::move(value); }
55 inline ModifyReservedInstancesRequest& AddReservedInstancesIds(const Aws::String& value) { m_reservedInstancesIdsHasBeenSet = true; m_reservedInstancesIds.push_back(value); return *this; }
56 inline ModifyReservedInstancesRequest& AddReservedInstancesIds(Aws::String&& value) { m_reservedInstancesIdsHasBeenSet = true; m_reservedInstancesIds.push_back(std::move(value)); return *this; }
57 inline ModifyReservedInstancesRequest& AddReservedInstancesIds(const char* value) { m_reservedInstancesIdsHasBeenSet = true; m_reservedInstancesIds.push_back(value); return *this; }
59
61
67 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
68 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
69 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
70 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
71 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
72 inline ModifyReservedInstancesRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
73 inline ModifyReservedInstancesRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
74 inline ModifyReservedInstancesRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
76
78
81 inline const Aws::Vector<ReservedInstancesConfiguration>& GetTargetConfigurations() const{ return m_targetConfigurations; }
82 inline bool TargetConfigurationsHasBeenSet() const { return m_targetConfigurationsHasBeenSet; }
83 inline void SetTargetConfigurations(const Aws::Vector<ReservedInstancesConfiguration>& value) { m_targetConfigurationsHasBeenSet = true; m_targetConfigurations = value; }
84 inline void SetTargetConfigurations(Aws::Vector<ReservedInstancesConfiguration>&& value) { m_targetConfigurationsHasBeenSet = true; m_targetConfigurations = std::move(value); }
87 inline ModifyReservedInstancesRequest& AddTargetConfigurations(const ReservedInstancesConfiguration& value) { m_targetConfigurationsHasBeenSet = true; m_targetConfigurations.push_back(value); return *this; }
88 inline ModifyReservedInstancesRequest& AddTargetConfigurations(ReservedInstancesConfiguration&& value) { m_targetConfigurationsHasBeenSet = true; m_targetConfigurations.push_back(std::move(value)); return *this; }
90 private:
91
92 Aws::Vector<Aws::String> m_reservedInstancesIds;
93 bool m_reservedInstancesIdsHasBeenSet = false;
94
95 Aws::String m_clientToken;
96 bool m_clientTokenHasBeenSet = false;
97
99 bool m_targetConfigurationsHasBeenSet = false;
100 };
101
102} // namespace Model
103} // namespace EC2
104} // namespace Aws
void SetTargetConfigurations(Aws::Vector< ReservedInstancesConfiguration > &&value)
ModifyReservedInstancesRequest & AddTargetConfigurations(const ReservedInstancesConfiguration &value)
virtual const char * GetServiceRequestName() const override
ModifyReservedInstancesRequest & WithReservedInstancesIds(const Aws::Vector< Aws::String > &value)
ModifyReservedInstancesRequest & WithClientToken(const Aws::String &value)
void SetReservedInstancesIds(Aws::Vector< Aws::String > &&value)
ModifyReservedInstancesRequest & WithTargetConfigurations(const Aws::Vector< ReservedInstancesConfiguration > &value)
ModifyReservedInstancesRequest & WithTargetConfigurations(Aws::Vector< ReservedInstancesConfiguration > &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
void SetTargetConfigurations(const Aws::Vector< ReservedInstancesConfiguration > &value)
ModifyReservedInstancesRequest & AddReservedInstancesIds(Aws::String &&value)
ModifyReservedInstancesRequest & WithClientToken(Aws::String &&value)
const Aws::Vector< ReservedInstancesConfiguration > & GetTargetConfigurations() const
AWS_EC2_API Aws::String SerializePayload() const override
ModifyReservedInstancesRequest & WithClientToken(const char *value)
ModifyReservedInstancesRequest & AddTargetConfigurations(ReservedInstancesConfiguration &&value)
void SetReservedInstancesIds(const Aws::Vector< Aws::String > &value)
ModifyReservedInstancesRequest & AddReservedInstancesIds(const char *value)
ModifyReservedInstancesRequest & AddReservedInstancesIds(const Aws::String &value)
const Aws::Vector< Aws::String > & GetReservedInstancesIds() const
ModifyReservedInstancesRequest & WithReservedInstancesIds(Aws::Vector< Aws::String > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector