AWS SDK for C++  1.9.123
AWS SDK for C++
DeleteQueuedReservedInstancesRequest.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>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace EC2
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "DeleteQueuedReservedInstances"; }
32 
33  Aws::String SerializePayload() const override;
34 
35  protected:
36  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
37 
38  public:
39 
46  inline bool GetDryRun() const{ return m_dryRun; }
47 
54  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
55 
62  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
63 
70  inline DeleteQueuedReservedInstancesRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
71 
72 
76  inline const Aws::Vector<Aws::String>& GetReservedInstancesIds() const{ return m_reservedInstancesIds; }
77 
81  inline bool ReservedInstancesIdsHasBeenSet() const { return m_reservedInstancesIdsHasBeenSet; }
82 
86  inline void SetReservedInstancesIds(const Aws::Vector<Aws::String>& value) { m_reservedInstancesIdsHasBeenSet = true; m_reservedInstancesIds = value; }
87 
91  inline void SetReservedInstancesIds(Aws::Vector<Aws::String>&& value) { m_reservedInstancesIdsHasBeenSet = true; m_reservedInstancesIds = std::move(value); }
92 
96  inline DeleteQueuedReservedInstancesRequest& WithReservedInstancesIds(const Aws::Vector<Aws::String>& value) { SetReservedInstancesIds(value); return *this;}
97 
101  inline DeleteQueuedReservedInstancesRequest& WithReservedInstancesIds(Aws::Vector<Aws::String>&& value) { SetReservedInstancesIds(std::move(value)); return *this;}
102 
106  inline DeleteQueuedReservedInstancesRequest& AddReservedInstancesIds(const Aws::String& value) { m_reservedInstancesIdsHasBeenSet = true; m_reservedInstancesIds.push_back(value); return *this; }
107 
111  inline DeleteQueuedReservedInstancesRequest& AddReservedInstancesIds(Aws::String&& value) { m_reservedInstancesIdsHasBeenSet = true; m_reservedInstancesIds.push_back(std::move(value)); return *this; }
112 
116  inline DeleteQueuedReservedInstancesRequest& AddReservedInstancesIds(const char* value) { m_reservedInstancesIdsHasBeenSet = true; m_reservedInstancesIds.push_back(value); return *this; }
117 
118  private:
119 
120  bool m_dryRun;
121  bool m_dryRunHasBeenSet;
122 
123  Aws::Vector<Aws::String> m_reservedInstancesIds;
124  bool m_reservedInstancesIdsHasBeenSet;
125  };
126 
127 } // namespace Model
128 } // namespace EC2
129 } // namespace Aws
Aws::EC2::Model::DeleteQueuedReservedInstancesRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: DeleteQueuedReservedInstancesRequest.h:54
Aws::EC2::Model::DeleteQueuedReservedInstancesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::DeleteQueuedReservedInstancesRequest::GetReservedInstancesIds
const Aws::Vector< Aws::String > & GetReservedInstancesIds() const
Definition: DeleteQueuedReservedInstancesRequest.h:76
Aws::EC2::Model::DeleteQueuedReservedInstancesRequest::SetReservedInstancesIds
void SetReservedInstancesIds(Aws::Vector< Aws::String > &&value)
Definition: DeleteQueuedReservedInstancesRequest.h:91
Aws::EC2::Model::DeleteQueuedReservedInstancesRequest::AddReservedInstancesIds
DeleteQueuedReservedInstancesRequest & AddReservedInstancesIds(const Aws::String &value)
Definition: DeleteQueuedReservedInstancesRequest.h:106
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::DeleteQueuedReservedInstancesRequest::WithReservedInstancesIds
DeleteQueuedReservedInstancesRequest & WithReservedInstancesIds(const Aws::Vector< Aws::String > &value)
Definition: DeleteQueuedReservedInstancesRequest.h:96
Aws::EC2::Model::DeleteQueuedReservedInstancesRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::EC2::Model::DeleteQueuedReservedInstancesRequest::WithDryRun
DeleteQueuedReservedInstancesRequest & WithDryRun(bool value)
Definition: DeleteQueuedReservedInstancesRequest.h:70
Aws::EC2::Model::DeleteQueuedReservedInstancesRequest::AddReservedInstancesIds
DeleteQueuedReservedInstancesRequest & AddReservedInstancesIds(const char *value)
Definition: DeleteQueuedReservedInstancesRequest.h:116
Aws::EC2::Model::DeleteQueuedReservedInstancesRequest::SetReservedInstancesIds
void SetReservedInstancesIds(const Aws::Vector< Aws::String > &value)
Definition: DeleteQueuedReservedInstancesRequest.h:86
EC2Request.h
AWSString.h
Aws::EC2::Model::DeleteQueuedReservedInstancesRequest::GetDryRun
bool GetDryRun() const
Definition: DeleteQueuedReservedInstancesRequest.h:46
Aws::EC2::Model::DeleteQueuedReservedInstancesRequest::WithReservedInstancesIds
DeleteQueuedReservedInstancesRequest & WithReservedInstancesIds(Aws::Vector< Aws::String > &&value)
Definition: DeleteQueuedReservedInstancesRequest.h:101
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DeleteQueuedReservedInstancesRequest::SetDryRun
void SetDryRun(bool value)
Definition: DeleteQueuedReservedInstancesRequest.h:62
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::DeleteQueuedReservedInstancesRequest::AddReservedInstancesIds
DeleteQueuedReservedInstancesRequest & AddReservedInstancesIds(Aws::String &&value)
Definition: DeleteQueuedReservedInstancesRequest.h:111
Aws::EC2::Model::DeleteQueuedReservedInstancesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DeleteQueuedReservedInstancesRequest.h:31
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::DeleteQueuedReservedInstancesRequest
Definition: DeleteQueuedReservedInstancesRequest.h:23
Aws::EC2::Model::DeleteQueuedReservedInstancesRequest::DeleteQueuedReservedInstancesRequest
DeleteQueuedReservedInstancesRequest()
EC2_EXPORTS.h
Aws::EC2::Model::DeleteQueuedReservedInstancesRequest::ReservedInstancesIdsHasBeenSet
bool ReservedInstancesIdsHasBeenSet() const
Definition: DeleteQueuedReservedInstancesRequest.h:81