AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DeleteFleetsRequest.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
21 public:
22 AWS_EC2_API DeleteFleetsRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "DeleteFleets"; }
29
30 AWS_EC2_API Aws::String SerializePayload() const override;
31
32 protected:
33 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
34
35 public:
37
43 inline bool GetDryRun() const { return m_dryRun; }
44 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
45 inline void SetDryRun(bool value) {
46 m_dryRunHasBeenSet = true;
47 m_dryRun = value;
48 }
49 inline DeleteFleetsRequest& WithDryRun(bool value) {
50 SetDryRun(value);
51 return *this;
52 }
54
56
61 inline const Aws::Vector<Aws::String>& GetFleetIds() const { return m_fleetIds; }
62 inline bool FleetIdsHasBeenSet() const { return m_fleetIdsHasBeenSet; }
63 template <typename FleetIdsT = Aws::Vector<Aws::String>>
64 void SetFleetIds(FleetIdsT&& value) {
65 m_fleetIdsHasBeenSet = true;
66 m_fleetIds = std::forward<FleetIdsT>(value);
67 }
68 template <typename FleetIdsT = Aws::Vector<Aws::String>>
69 DeleteFleetsRequest& WithFleetIds(FleetIdsT&& value) {
70 SetFleetIds(std::forward<FleetIdsT>(value));
71 return *this;
72 }
73 template <typename FleetIdsT = Aws::String>
74 DeleteFleetsRequest& AddFleetIds(FleetIdsT&& value) {
75 m_fleetIdsHasBeenSet = true;
76 m_fleetIds.emplace_back(std::forward<FleetIdsT>(value));
77 return *this;
78 }
80
82
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_fleetIds;
106
107 bool m_terminateInstances{false};
108 bool m_dryRunHasBeenSet = false;
109 bool m_fleetIdsHasBeenSet = false;
110 bool m_terminateInstancesHasBeenSet = false;
111};
112
113} // namespace Model
114} // namespace EC2
115} // namespace Aws
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DeleteFleetsRequest & WithDryRun(bool value)
DeleteFleetsRequest & WithTerminateInstances(bool value)
const Aws::Vector< Aws::String > & GetFleetIds() const
AWS_EC2_API Aws::String SerializePayload() const override
DeleteFleetsRequest & AddFleetIds(FleetIdsT &&value)
DeleteFleetsRequest & WithFleetIds(FleetIdsT &&value)
virtual const char * GetServiceRequestName() const override
AWS_EC2_API DeleteFleetsRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector