AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CancelSpotFleetRequestsRequest.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 <utility>
12
13namespace Aws
14{
15namespace EC2
16{
17namespace 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_EC2_API Aws::String SerializePayload() const override;
38
39 protected:
40 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
41
42 public:
43
45
51 inline bool GetDryRun() const{ return m_dryRun; }
52 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
53 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
54 inline CancelSpotFleetRequestsRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
56
58
62 inline const Aws::Vector<Aws::String>& GetSpotFleetRequestIds() const{ return m_spotFleetRequestIds; }
63 inline bool SpotFleetRequestIdsHasBeenSet() const { return m_spotFleetRequestIdsHasBeenSet; }
64 inline void SetSpotFleetRequestIds(const Aws::Vector<Aws::String>& value) { m_spotFleetRequestIdsHasBeenSet = true; m_spotFleetRequestIds = value; }
65 inline void SetSpotFleetRequestIds(Aws::Vector<Aws::String>&& value) { m_spotFleetRequestIdsHasBeenSet = true; m_spotFleetRequestIds = std::move(value); }
68 inline CancelSpotFleetRequestsRequest& AddSpotFleetRequestIds(const Aws::String& value) { m_spotFleetRequestIdsHasBeenSet = true; m_spotFleetRequestIds.push_back(value); return *this; }
69 inline CancelSpotFleetRequestsRequest& AddSpotFleetRequestIds(Aws::String&& value) { m_spotFleetRequestIdsHasBeenSet = true; m_spotFleetRequestIds.push_back(std::move(value)); return *this; }
70 inline CancelSpotFleetRequestsRequest& AddSpotFleetRequestIds(const char* value) { m_spotFleetRequestIdsHasBeenSet = true; m_spotFleetRequestIds.push_back(value); return *this; }
72
74
80 inline bool GetTerminateInstances() const{ return m_terminateInstances; }
81 inline bool TerminateInstancesHasBeenSet() const { return m_terminateInstancesHasBeenSet; }
82 inline void SetTerminateInstances(bool value) { m_terminateInstancesHasBeenSet = true; m_terminateInstances = value; }
85 private:
86
87 bool m_dryRun;
88 bool m_dryRunHasBeenSet = false;
89
90 Aws::Vector<Aws::String> m_spotFleetRequestIds;
91 bool m_spotFleetRequestIdsHasBeenSet = false;
92
93 bool m_terminateInstances;
94 bool m_terminateInstancesHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace EC2
99} // namespace Aws
CancelSpotFleetRequestsRequest & AddSpotFleetRequestIds(const Aws::String &value)
void SetSpotFleetRequestIds(Aws::Vector< Aws::String > &&value)
void SetSpotFleetRequestIds(const Aws::Vector< Aws::String > &value)
virtual const char * GetServiceRequestName() const override
CancelSpotFleetRequestsRequest & WithDryRun(bool value)
CancelSpotFleetRequestsRequest & AddSpotFleetRequestIds(Aws::String &&value)
CancelSpotFleetRequestsRequest & WithSpotFleetRequestIds(Aws::Vector< Aws::String > &&value)
CancelSpotFleetRequestsRequest & AddSpotFleetRequestIds(const char *value)
CancelSpotFleetRequestsRequest & WithTerminateInstances(bool value)
const Aws::Vector< Aws::String > & GetSpotFleetRequestIds() const
AWS_EC2_API Aws::String SerializePayload() const override
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CancelSpotFleetRequestsRequest & WithSpotFleetRequestIds(const Aws::Vector< Aws::String > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector