AWS SDK for C++  1.9.123
AWS SDK for C++
CancelSpotInstanceRequestsRequest.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 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "CancelSpotInstanceRequests"; }
36 
37  Aws::String SerializePayload() const override;
38 
39  protected:
40  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
41 
42  public:
43 
50  inline bool GetDryRun() const{ return m_dryRun; }
51 
58  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
59 
66  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
67 
74  inline CancelSpotInstanceRequestsRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
75 
76 
80  inline const Aws::Vector<Aws::String>& GetSpotInstanceRequestIds() const{ return m_spotInstanceRequestIds; }
81 
85  inline bool SpotInstanceRequestIdsHasBeenSet() const { return m_spotInstanceRequestIdsHasBeenSet; }
86 
90  inline void SetSpotInstanceRequestIds(const Aws::Vector<Aws::String>& value) { m_spotInstanceRequestIdsHasBeenSet = true; m_spotInstanceRequestIds = value; }
91 
95  inline void SetSpotInstanceRequestIds(Aws::Vector<Aws::String>&& value) { m_spotInstanceRequestIdsHasBeenSet = true; m_spotInstanceRequestIds = std::move(value); }
96 
100  inline CancelSpotInstanceRequestsRequest& WithSpotInstanceRequestIds(const Aws::Vector<Aws::String>& value) { SetSpotInstanceRequestIds(value); return *this;}
101 
105  inline CancelSpotInstanceRequestsRequest& WithSpotInstanceRequestIds(Aws::Vector<Aws::String>&& value) { SetSpotInstanceRequestIds(std::move(value)); return *this;}
106 
110  inline CancelSpotInstanceRequestsRequest& AddSpotInstanceRequestIds(const Aws::String& value) { m_spotInstanceRequestIdsHasBeenSet = true; m_spotInstanceRequestIds.push_back(value); return *this; }
111 
115  inline CancelSpotInstanceRequestsRequest& AddSpotInstanceRequestIds(Aws::String&& value) { m_spotInstanceRequestIdsHasBeenSet = true; m_spotInstanceRequestIds.push_back(std::move(value)); return *this; }
116 
120  inline CancelSpotInstanceRequestsRequest& AddSpotInstanceRequestIds(const char* value) { m_spotInstanceRequestIdsHasBeenSet = true; m_spotInstanceRequestIds.push_back(value); return *this; }
121 
122  private:
123 
124  bool m_dryRun;
125  bool m_dryRunHasBeenSet;
126 
127  Aws::Vector<Aws::String> m_spotInstanceRequestIds;
128  bool m_spotInstanceRequestIdsHasBeenSet;
129  };
130 
131 } // namespace Model
132 } // namespace EC2
133 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::CancelSpotInstanceRequestsRequest::WithSpotInstanceRequestIds
CancelSpotInstanceRequestsRequest & WithSpotInstanceRequestIds(const Aws::Vector< Aws::String > &value)
Definition: CancelSpotInstanceRequestsRequest.h:100
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::CancelSpotInstanceRequestsRequest
Definition: CancelSpotInstanceRequestsRequest.h:27
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::CancelSpotInstanceRequestsRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWSVector.h
Aws::EC2::Model::CancelSpotInstanceRequestsRequest::SpotInstanceRequestIdsHasBeenSet
bool SpotInstanceRequestIdsHasBeenSet() const
Definition: CancelSpotInstanceRequestsRequest.h:85
Aws::EC2::Model::CancelSpotInstanceRequestsRequest::WithDryRun
CancelSpotInstanceRequestsRequest & WithDryRun(bool value)
Definition: CancelSpotInstanceRequestsRequest.h:74
Aws::EC2::Model::CancelSpotInstanceRequestsRequest::CancelSpotInstanceRequestsRequest
CancelSpotInstanceRequestsRequest()
Aws::EC2::Model::CancelSpotInstanceRequestsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::CancelSpotInstanceRequestsRequest::SetSpotInstanceRequestIds
void SetSpotInstanceRequestIds(const Aws::Vector< Aws::String > &value)
Definition: CancelSpotInstanceRequestsRequest.h:90
EC2Request.h
Aws::EC2::Model::CancelSpotInstanceRequestsRequest::WithSpotInstanceRequestIds
CancelSpotInstanceRequestsRequest & WithSpotInstanceRequestIds(Aws::Vector< Aws::String > &&value)
Definition: CancelSpotInstanceRequestsRequest.h:105
Aws::EC2::Model::CancelSpotInstanceRequestsRequest::AddSpotInstanceRequestIds
CancelSpotInstanceRequestsRequest & AddSpotInstanceRequestIds(const char *value)
Definition: CancelSpotInstanceRequestsRequest.h:120
Aws::EC2::Model::CancelSpotInstanceRequestsRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: CancelSpotInstanceRequestsRequest.h:58
AWSString.h
Aws::EC2::Model::CancelSpotInstanceRequestsRequest::SetSpotInstanceRequestIds
void SetSpotInstanceRequestIds(Aws::Vector< Aws::String > &&value)
Definition: CancelSpotInstanceRequestsRequest.h:95
Aws::EC2::Model::CancelSpotInstanceRequestsRequest::GetDryRun
bool GetDryRun() const
Definition: CancelSpotInstanceRequestsRequest.h:50
Aws::EC2::Model::CancelSpotInstanceRequestsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CancelSpotInstanceRequestsRequest.h:35
Aws::EC2::Model::CancelSpotInstanceRequestsRequest::AddSpotInstanceRequestIds
CancelSpotInstanceRequestsRequest & AddSpotInstanceRequestIds(const Aws::String &value)
Definition: CancelSpotInstanceRequestsRequest.h:110
Aws::EC2::Model::CancelSpotInstanceRequestsRequest::AddSpotInstanceRequestIds
CancelSpotInstanceRequestsRequest & AddSpotInstanceRequestIds(Aws::String &&value)
Definition: CancelSpotInstanceRequestsRequest.h:115
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::CancelSpotInstanceRequestsRequest::GetSpotInstanceRequestIds
const Aws::Vector< Aws::String > & GetSpotInstanceRequestIds() const
Definition: CancelSpotInstanceRequestsRequest.h:80
EC2_EXPORTS.h
Aws::EC2::Model::CancelSpotInstanceRequestsRequest::SetDryRun
void SetDryRun(bool value)
Definition: CancelSpotInstanceRequestsRequest.h:66