AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CancelSpotInstanceRequestsRequest.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 CancelSpotInstanceRequestsRequest() = 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 "CancelSpotInstanceRequests"; }
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
63 inline const Aws::Vector<Aws::String>& GetSpotInstanceRequestIds() const { return m_spotInstanceRequestIds; }
64 inline bool SpotInstanceRequestIdsHasBeenSet() const { return m_spotInstanceRequestIdsHasBeenSet; }
65 template <typename SpotInstanceRequestIdsT = Aws::Vector<Aws::String>>
66 void SetSpotInstanceRequestIds(SpotInstanceRequestIdsT&& value) {
67 m_spotInstanceRequestIdsHasBeenSet = true;
68 m_spotInstanceRequestIds = std::forward<SpotInstanceRequestIdsT>(value);
69 }
70 template <typename SpotInstanceRequestIdsT = Aws::Vector<Aws::String>>
72 SetSpotInstanceRequestIds(std::forward<SpotInstanceRequestIdsT>(value));
73 return *this;
74 }
75 template <typename SpotInstanceRequestIdsT = Aws::String>
77 m_spotInstanceRequestIdsHasBeenSet = true;
78 m_spotInstanceRequestIds.emplace_back(std::forward<SpotInstanceRequestIdsT>(value));
79 return *this;
80 }
82 private:
83 bool m_dryRun{false};
84
85 Aws::Vector<Aws::String> m_spotInstanceRequestIds;
86 bool m_dryRunHasBeenSet = false;
87 bool m_spotInstanceRequestIdsHasBeenSet = false;
88};
89
90} // namespace Model
91} // namespace EC2
92} // namespace Aws
AWS_EC2_API Aws::String SerializePayload() const override
CancelSpotInstanceRequestsRequest & WithDryRun(bool value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
const Aws::Vector< Aws::String > & GetSpotInstanceRequestIds() const
CancelSpotInstanceRequestsRequest & WithSpotInstanceRequestIds(SpotInstanceRequestIdsT &&value)
CancelSpotInstanceRequestsRequest & AddSpotInstanceRequestIds(SpotInstanceRequestIdsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector