AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ModifyReservedInstancesRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ec2/EC2Request.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11#include <aws/ec2/model/ReservedInstancesConfiguration.h>
12
13#include <utility>
14
15namespace Aws {
16namespace EC2 {
17namespace Model {
18
26 public:
27 AWS_EC2_API ModifyReservedInstancesRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "ModifyReservedInstances"; }
34
35 AWS_EC2_API Aws::String SerializePayload() const override;
36
37 protected:
38 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
39
40 public:
42
45 inline const Aws::Vector<Aws::String>& GetReservedInstancesIds() const { return m_reservedInstancesIds; }
46 inline bool ReservedInstancesIdsHasBeenSet() const { return m_reservedInstancesIdsHasBeenSet; }
47 template <typename ReservedInstancesIdsT = Aws::Vector<Aws::String>>
48 void SetReservedInstancesIds(ReservedInstancesIdsT&& value) {
49 m_reservedInstancesIdsHasBeenSet = true;
50 m_reservedInstancesIds = std::forward<ReservedInstancesIdsT>(value);
51 }
52 template <typename ReservedInstancesIdsT = Aws::Vector<Aws::String>>
54 SetReservedInstancesIds(std::forward<ReservedInstancesIdsT>(value));
55 return *this;
56 }
57 template <typename ReservedInstancesIdsT = Aws::String>
59 m_reservedInstancesIdsHasBeenSet = true;
60 m_reservedInstancesIds.emplace_back(std::forward<ReservedInstancesIdsT>(value));
61 return *this;
62 }
64
66
72 inline const Aws::String& GetClientToken() const { return m_clientToken; }
73 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
74 template <typename ClientTokenT = Aws::String>
75 void SetClientToken(ClientTokenT&& value) {
76 m_clientTokenHasBeenSet = true;
77 m_clientToken = std::forward<ClientTokenT>(value);
78 }
79 template <typename ClientTokenT = Aws::String>
81 SetClientToken(std::forward<ClientTokenT>(value));
82 return *this;
83 }
85
87
90 inline const Aws::Vector<ReservedInstancesConfiguration>& GetTargetConfigurations() const { return m_targetConfigurations; }
91 inline bool TargetConfigurationsHasBeenSet() const { return m_targetConfigurationsHasBeenSet; }
92 template <typename TargetConfigurationsT = Aws::Vector<ReservedInstancesConfiguration>>
93 void SetTargetConfigurations(TargetConfigurationsT&& value) {
94 m_targetConfigurationsHasBeenSet = true;
95 m_targetConfigurations = std::forward<TargetConfigurationsT>(value);
96 }
97 template <typename TargetConfigurationsT = Aws::Vector<ReservedInstancesConfiguration>>
99 SetTargetConfigurations(std::forward<TargetConfigurationsT>(value));
100 return *this;
101 }
102 template <typename TargetConfigurationsT = ReservedInstancesConfiguration>
104 m_targetConfigurationsHasBeenSet = true;
105 m_targetConfigurations.emplace_back(std::forward<TargetConfigurationsT>(value));
106 return *this;
107 }
109 private:
110 Aws::Vector<Aws::String> m_reservedInstancesIds;
111
112 Aws::String m_clientToken;
113
114 Aws::Vector<ReservedInstancesConfiguration> m_targetConfigurations;
115 bool m_reservedInstancesIdsHasBeenSet = false;
116 bool m_clientTokenHasBeenSet = false;
117 bool m_targetConfigurationsHasBeenSet = false;
118};
119
120} // namespace Model
121} // namespace EC2
122} // namespace Aws
virtual const char * GetServiceRequestName() const override
ModifyReservedInstancesRequest & AddReservedInstancesIds(ReservedInstancesIdsT &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
ModifyReservedInstancesRequest & WithTargetConfigurations(TargetConfigurationsT &&value)
const Aws::Vector< ReservedInstancesConfiguration > & GetTargetConfigurations() const
ModifyReservedInstancesRequest & WithReservedInstancesIds(ReservedInstancesIdsT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
ModifyReservedInstancesRequest & AddTargetConfigurations(TargetConfigurationsT &&value)
ModifyReservedInstancesRequest & WithClientToken(ClientTokenT &&value)
const Aws::Vector< Aws::String > & GetReservedInstancesIds() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector