AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CancelSpotInstanceRequestsRequest.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 "CancelSpotInstanceRequests"; }
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 CancelSpotInstanceRequestsRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
56
58
61 inline const Aws::Vector<Aws::String>& GetSpotInstanceRequestIds() const{ return m_spotInstanceRequestIds; }
62 inline bool SpotInstanceRequestIdsHasBeenSet() const { return m_spotInstanceRequestIdsHasBeenSet; }
63 inline void SetSpotInstanceRequestIds(const Aws::Vector<Aws::String>& value) { m_spotInstanceRequestIdsHasBeenSet = true; m_spotInstanceRequestIds = value; }
64 inline void SetSpotInstanceRequestIds(Aws::Vector<Aws::String>&& value) { m_spotInstanceRequestIdsHasBeenSet = true; m_spotInstanceRequestIds = std::move(value); }
67 inline CancelSpotInstanceRequestsRequest& AddSpotInstanceRequestIds(const Aws::String& value) { m_spotInstanceRequestIdsHasBeenSet = true; m_spotInstanceRequestIds.push_back(value); return *this; }
68 inline CancelSpotInstanceRequestsRequest& AddSpotInstanceRequestIds(Aws::String&& value) { m_spotInstanceRequestIdsHasBeenSet = true; m_spotInstanceRequestIds.push_back(std::move(value)); return *this; }
69 inline CancelSpotInstanceRequestsRequest& AddSpotInstanceRequestIds(const char* value) { m_spotInstanceRequestIdsHasBeenSet = true; m_spotInstanceRequestIds.push_back(value); return *this; }
71 private:
72
73 bool m_dryRun;
74 bool m_dryRunHasBeenSet = false;
75
76 Aws::Vector<Aws::String> m_spotInstanceRequestIds;
77 bool m_spotInstanceRequestIdsHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace EC2
82} // namespace Aws
AWS_EC2_API Aws::String SerializePayload() const override
void SetSpotInstanceRequestIds(Aws::Vector< Aws::String > &&value)
CancelSpotInstanceRequestsRequest & WithDryRun(bool value)
CancelSpotInstanceRequestsRequest & AddSpotInstanceRequestIds(const char *value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CancelSpotInstanceRequestsRequest & AddSpotInstanceRequestIds(const Aws::String &value)
const Aws::Vector< Aws::String > & GetSpotInstanceRequestIds() const
CancelSpotInstanceRequestsRequest & WithSpotInstanceRequestIds(Aws::Vector< Aws::String > &&value)
void SetSpotInstanceRequestIds(const Aws::Vector< Aws::String > &value)
CancelSpotInstanceRequestsRequest & AddSpotInstanceRequestIds(Aws::String &&value)
CancelSpotInstanceRequestsRequest & WithSpotInstanceRequestIds(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