AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DescribeSpotFleetRequestsRequest.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 DescribeSpotFleetRequestsRequest() = 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 "DescribeSpotFleetRequests"; }
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>& GetSpotFleetRequestIds() const { return m_spotFleetRequestIds; }
64 inline bool SpotFleetRequestIdsHasBeenSet() const { return m_spotFleetRequestIdsHasBeenSet; }
65 template <typename SpotFleetRequestIdsT = Aws::Vector<Aws::String>>
66 void SetSpotFleetRequestIds(SpotFleetRequestIdsT&& value) {
67 m_spotFleetRequestIdsHasBeenSet = true;
68 m_spotFleetRequestIds = std::forward<SpotFleetRequestIdsT>(value);
69 }
70 template <typename SpotFleetRequestIdsT = Aws::Vector<Aws::String>>
72 SetSpotFleetRequestIds(std::forward<SpotFleetRequestIdsT>(value));
73 return *this;
74 }
75 template <typename SpotFleetRequestIdsT = Aws::String>
77 m_spotFleetRequestIdsHasBeenSet = true;
78 m_spotFleetRequestIds.emplace_back(std::forward<SpotFleetRequestIdsT>(value));
79 return *this;
80 }
82
84
88 inline const Aws::String& GetNextToken() const { return m_nextToken; }
89 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
90 template <typename NextTokenT = Aws::String>
91 void SetNextToken(NextTokenT&& value) {
92 m_nextTokenHasBeenSet = true;
93 m_nextToken = std::forward<NextTokenT>(value);
94 }
95 template <typename NextTokenT = Aws::String>
97 SetNextToken(std::forward<NextTokenT>(value));
98 return *this;
99 }
101
103
109 inline int GetMaxResults() const { return m_maxResults; }
110 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
111 inline void SetMaxResults(int value) {
112 m_maxResultsHasBeenSet = true;
113 m_maxResults = value;
114 }
116 SetMaxResults(value);
117 return *this;
118 }
120 private:
121 bool m_dryRun{false};
122
123 Aws::Vector<Aws::String> m_spotFleetRequestIds;
124
125 Aws::String m_nextToken;
126
127 int m_maxResults{0};
128 bool m_dryRunHasBeenSet = false;
129 bool m_spotFleetRequestIdsHasBeenSet = false;
130 bool m_nextTokenHasBeenSet = false;
131 bool m_maxResultsHasBeenSet = false;
132};
133
134} // namespace Model
135} // namespace EC2
136} // namespace Aws
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DescribeSpotFleetRequestsRequest & WithSpotFleetRequestIds(SpotFleetRequestIdsT &&value)
DescribeSpotFleetRequestsRequest & WithMaxResults(int value)
DescribeSpotFleetRequestsRequest & WithDryRun(bool value)
AWS_EC2_API Aws::String SerializePayload() const override
DescribeSpotFleetRequestsRequest & AddSpotFleetRequestIds(SpotFleetRequestIdsT &&value)
DescribeSpotFleetRequestsRequest & WithNextToken(NextTokenT &&value)
const Aws::Vector< Aws::String > & GetSpotFleetRequestIds() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector