AWS SDK for C++  1.9.74
AWS SDK for C++
CancelSpotFleetRequestsRequest.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 "CancelSpotFleetRequests"; }
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 CancelSpotFleetRequestsRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
75 
76 
80  inline const Aws::Vector<Aws::String>& GetSpotFleetRequestIds() const{ return m_spotFleetRequestIds; }
81 
85  inline bool SpotFleetRequestIdsHasBeenSet() const { return m_spotFleetRequestIdsHasBeenSet; }
86 
90  inline void SetSpotFleetRequestIds(const Aws::Vector<Aws::String>& value) { m_spotFleetRequestIdsHasBeenSet = true; m_spotFleetRequestIds = value; }
91 
95  inline void SetSpotFleetRequestIds(Aws::Vector<Aws::String>&& value) { m_spotFleetRequestIdsHasBeenSet = true; m_spotFleetRequestIds = std::move(value); }
96 
100  inline CancelSpotFleetRequestsRequest& WithSpotFleetRequestIds(const Aws::Vector<Aws::String>& value) { SetSpotFleetRequestIds(value); return *this;}
101 
105  inline CancelSpotFleetRequestsRequest& WithSpotFleetRequestIds(Aws::Vector<Aws::String>&& value) { SetSpotFleetRequestIds(std::move(value)); return *this;}
106 
110  inline CancelSpotFleetRequestsRequest& AddSpotFleetRequestIds(const Aws::String& value) { m_spotFleetRequestIdsHasBeenSet = true; m_spotFleetRequestIds.push_back(value); return *this; }
111 
115  inline CancelSpotFleetRequestsRequest& AddSpotFleetRequestIds(Aws::String&& value) { m_spotFleetRequestIdsHasBeenSet = true; m_spotFleetRequestIds.push_back(std::move(value)); return *this; }
116 
120  inline CancelSpotFleetRequestsRequest& AddSpotFleetRequestIds(const char* value) { m_spotFleetRequestIdsHasBeenSet = true; m_spotFleetRequestIds.push_back(value); return *this; }
121 
122 
127  inline bool GetTerminateInstances() const{ return m_terminateInstances; }
128 
133  inline bool TerminateInstancesHasBeenSet() const { return m_terminateInstancesHasBeenSet; }
134 
139  inline void SetTerminateInstances(bool value) { m_terminateInstancesHasBeenSet = true; m_terminateInstances = value; }
140 
145  inline CancelSpotFleetRequestsRequest& WithTerminateInstances(bool value) { SetTerminateInstances(value); return *this;}
146 
147  private:
148 
149  bool m_dryRun;
150  bool m_dryRunHasBeenSet;
151 
152  Aws::Vector<Aws::String> m_spotFleetRequestIds;
153  bool m_spotFleetRequestIdsHasBeenSet;
154 
155  bool m_terminateInstances;
156  bool m_terminateInstancesHasBeenSet;
157  };
158 
159 } // namespace Model
160 } // namespace EC2
161 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::CancelSpotFleetRequestsRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::CancelSpotFleetRequestsRequest::GetSpotFleetRequestIds
const Aws::Vector< Aws::String > & GetSpotFleetRequestIds() const
Definition: CancelSpotFleetRequestsRequest.h:80
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::CancelSpotFleetRequestsRequest::SetTerminateInstances
void SetTerminateInstances(bool value)
Definition: CancelSpotFleetRequestsRequest.h:139
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::EC2::Model::CancelSpotFleetRequestsRequest::WithSpotFleetRequestIds
CancelSpotFleetRequestsRequest & WithSpotFleetRequestIds(Aws::Vector< Aws::String > &&value)
Definition: CancelSpotFleetRequestsRequest.h:105
Aws::EC2::Model::CancelSpotFleetRequestsRequest::SetDryRun
void SetDryRun(bool value)
Definition: CancelSpotFleetRequestsRequest.h:66
Aws::EC2::Model::CancelSpotFleetRequestsRequest::WithSpotFleetRequestIds
CancelSpotFleetRequestsRequest & WithSpotFleetRequestIds(const Aws::Vector< Aws::String > &value)
Definition: CancelSpotFleetRequestsRequest.h:100
Aws::EC2::Model::CancelSpotFleetRequestsRequest::SpotFleetRequestIdsHasBeenSet
bool SpotFleetRequestIdsHasBeenSet() const
Definition: CancelSpotFleetRequestsRequest.h:85
Aws::EC2::Model::CancelSpotFleetRequestsRequest::TerminateInstancesHasBeenSet
bool TerminateInstancesHasBeenSet() const
Definition: CancelSpotFleetRequestsRequest.h:133
EC2Request.h
Aws::EC2::Model::CancelSpotFleetRequestsRequest::AddSpotFleetRequestIds
CancelSpotFleetRequestsRequest & AddSpotFleetRequestIds(Aws::String &&value)
Definition: CancelSpotFleetRequestsRequest.h:115
AWSString.h
Aws::EC2::Model::CancelSpotFleetRequestsRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: CancelSpotFleetRequestsRequest.h:58
Aws::EC2::Model::CancelSpotFleetRequestsRequest::WithTerminateInstances
CancelSpotFleetRequestsRequest & WithTerminateInstances(bool value)
Definition: CancelSpotFleetRequestsRequest.h:145
Aws::EC2::Model::CancelSpotFleetRequestsRequest::AddSpotFleetRequestIds
CancelSpotFleetRequestsRequest & AddSpotFleetRequestIds(const char *value)
Definition: CancelSpotFleetRequestsRequest.h:120
Aws::EC2::Model::CancelSpotFleetRequestsRequest
Definition: CancelSpotFleetRequestsRequest.h:27
Aws::EC2::Model::CancelSpotFleetRequestsRequest::SetSpotFleetRequestIds
void SetSpotFleetRequestIds(Aws::Vector< Aws::String > &&value)
Definition: CancelSpotFleetRequestsRequest.h:95
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::CancelSpotFleetRequestsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::CancelSpotFleetRequestsRequest::CancelSpotFleetRequestsRequest
CancelSpotFleetRequestsRequest()
Aws::EC2::Model::CancelSpotFleetRequestsRequest::AddSpotFleetRequestIds
CancelSpotFleetRequestsRequest & AddSpotFleetRequestIds(const Aws::String &value)
Definition: CancelSpotFleetRequestsRequest.h:110
Aws::EC2::Model::CancelSpotFleetRequestsRequest::WithDryRun
CancelSpotFleetRequestsRequest & WithDryRun(bool value)
Definition: CancelSpotFleetRequestsRequest.h:74
Aws::EC2::Model::CancelSpotFleetRequestsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CancelSpotFleetRequestsRequest.h:35
EC2_EXPORTS.h
Aws::EC2::Model::CancelSpotFleetRequestsRequest::GetTerminateInstances
bool GetTerminateInstances() const
Definition: CancelSpotFleetRequestsRequest.h:127
Aws::EC2::Model::CancelSpotFleetRequestsRequest::GetDryRun
bool GetDryRun() const
Definition: CancelSpotFleetRequestsRequest.h:50
Aws::EC2::Model::CancelSpotFleetRequestsRequest::SetSpotFleetRequestIds
void SetSpotFleetRequestIds(const Aws::Vector< Aws::String > &value)
Definition: CancelSpotFleetRequestsRequest.h:90