AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CancelSpotFleetRequestsRequest.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
12#include <utility>
13
14namespace Aws {
15namespace EC2 {
16namespace Model {
17
25 public:
26 AWS_EC2_API CancelSpotFleetRequestsRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CancelSpotFleetRequests"; }
33
34 AWS_EC2_API Aws::String SerializePayload() const override;
35
36 protected:
37 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
38
39 public:
41
47 inline bool GetDryRun() const { return m_dryRun; }
48 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
49 inline void SetDryRun(bool value) {
50 m_dryRunHasBeenSet = true;
51 m_dryRun = value;
52 }
54 SetDryRun(value);
55 return *this;
56 }
58
60
64 inline const Aws::Vector<Aws::String>& GetSpotFleetRequestIds() const { return m_spotFleetRequestIds; }
65 inline bool SpotFleetRequestIdsHasBeenSet() const { return m_spotFleetRequestIdsHasBeenSet; }
66 template <typename SpotFleetRequestIdsT = Aws::Vector<Aws::String>>
67 void SetSpotFleetRequestIds(SpotFleetRequestIdsT&& value) {
68 m_spotFleetRequestIdsHasBeenSet = true;
69 m_spotFleetRequestIds = std::forward<SpotFleetRequestIdsT>(value);
70 }
71 template <typename SpotFleetRequestIdsT = Aws::Vector<Aws::String>>
73 SetSpotFleetRequestIds(std::forward<SpotFleetRequestIdsT>(value));
74 return *this;
75 }
76 template <typename SpotFleetRequestIdsT = Aws::String>
78 m_spotFleetRequestIdsHasBeenSet = true;
79 m_spotFleetRequestIds.emplace_back(std::forward<SpotFleetRequestIdsT>(value));
80 return *this;
81 }
83
85
91 inline bool GetTerminateInstances() const { return m_terminateInstances; }
92 inline bool TerminateInstancesHasBeenSet() const { return m_terminateInstancesHasBeenSet; }
93 inline void SetTerminateInstances(bool value) {
94 m_terminateInstancesHasBeenSet = true;
95 m_terminateInstances = value;
96 }
99 return *this;
100 }
102 private:
103 bool m_dryRun{false};
104
105 Aws::Vector<Aws::String> m_spotFleetRequestIds;
106
107 bool m_terminateInstances{false};
108 bool m_dryRunHasBeenSet = false;
109 bool m_spotFleetRequestIdsHasBeenSet = false;
110 bool m_terminateInstancesHasBeenSet = false;
111};
112
113} // namespace Model
114} // namespace EC2
115} // namespace Aws
CancelSpotFleetRequestsRequest & AddSpotFleetRequestIds(SpotFleetRequestIdsT &&value)
CancelSpotFleetRequestsRequest & WithSpotFleetRequestIds(SpotFleetRequestIdsT &&value)
virtual const char * GetServiceRequestName() const override
CancelSpotFleetRequestsRequest & WithDryRun(bool 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
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector