AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DescribeSpotInstanceRequestsRequest.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/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ec2/model/Filter.h>
12#include <utility>
13
14namespace Aws
15{
16namespace EC2
17{
18namespace Model
19{
20
28 {
29 public:
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "DescribeSpotInstanceRequests"; }
37
38 AWS_EC2_API Aws::String SerializePayload() const override;
39
40 protected:
41 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
42
43 public:
44
46
50 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
51 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
52 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
53 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
54 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
55 inline DescribeSpotInstanceRequestsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
56 inline DescribeSpotInstanceRequestsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
57 inline DescribeSpotInstanceRequestsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
59
61
67 inline int GetMaxResults() const{ return m_maxResults; }
68 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
69 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
70 inline DescribeSpotInstanceRequestsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
72
74
80 inline bool GetDryRun() const{ return m_dryRun; }
81 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
82 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
83 inline DescribeSpotInstanceRequestsRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
85
87
90 inline const Aws::Vector<Aws::String>& GetSpotInstanceRequestIds() const{ return m_spotInstanceRequestIds; }
91 inline bool SpotInstanceRequestIdsHasBeenSet() const { return m_spotInstanceRequestIdsHasBeenSet; }
92 inline void SetSpotInstanceRequestIds(const Aws::Vector<Aws::String>& value) { m_spotInstanceRequestIdsHasBeenSet = true; m_spotInstanceRequestIds = value; }
93 inline void SetSpotInstanceRequestIds(Aws::Vector<Aws::String>&& value) { m_spotInstanceRequestIdsHasBeenSet = true; m_spotInstanceRequestIds = std::move(value); }
96 inline DescribeSpotInstanceRequestsRequest& AddSpotInstanceRequestIds(const Aws::String& value) { m_spotInstanceRequestIdsHasBeenSet = true; m_spotInstanceRequestIds.push_back(value); return *this; }
97 inline DescribeSpotInstanceRequestsRequest& AddSpotInstanceRequestIds(Aws::String&& value) { m_spotInstanceRequestIdsHasBeenSet = true; m_spotInstanceRequestIds.push_back(std::move(value)); return *this; }
98 inline DescribeSpotInstanceRequestsRequest& AddSpotInstanceRequestIds(const char* value) { m_spotInstanceRequestIdsHasBeenSet = true; m_spotInstanceRequestIds.push_back(value); return *this; }
100
102
178 inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
179 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
180 inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
181 inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
183 inline DescribeSpotInstanceRequestsRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
184 inline DescribeSpotInstanceRequestsRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
185 inline DescribeSpotInstanceRequestsRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
187 private:
188
189 Aws::String m_nextToken;
190 bool m_nextTokenHasBeenSet = false;
191
192 int m_maxResults;
193 bool m_maxResultsHasBeenSet = false;
194
195 bool m_dryRun;
196 bool m_dryRunHasBeenSet = false;
197
198 Aws::Vector<Aws::String> m_spotInstanceRequestIds;
199 bool m_spotInstanceRequestIdsHasBeenSet = false;
200
201 Aws::Vector<Filter> m_filters;
202 bool m_filtersHasBeenSet = false;
203 };
204
205} // namespace Model
206} // namespace EC2
207} // namespace Aws
DescribeSpotInstanceRequestsRequest & AddFilters(Filter &&value)
DescribeSpotInstanceRequestsRequest & WithSpotInstanceRequestIds(Aws::Vector< Aws::String > &&value)
DescribeSpotInstanceRequestsRequest & WithMaxResults(int value)
DescribeSpotInstanceRequestsRequest & WithFilters(Aws::Vector< Filter > &&value)
DescribeSpotInstanceRequestsRequest & WithSpotInstanceRequestIds(const Aws::Vector< Aws::String > &value)
DescribeSpotInstanceRequestsRequest & WithFilters(const Aws::Vector< Filter > &value)
DescribeSpotInstanceRequestsRequest & AddFilters(const Filter &value)
DescribeSpotInstanceRequestsRequest & AddSpotInstanceRequestIds(Aws::String &&value)
DescribeSpotInstanceRequestsRequest & WithNextToken(const Aws::String &value)
DescribeSpotInstanceRequestsRequest & WithNextToken(Aws::String &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DescribeSpotInstanceRequestsRequest & WithDryRun(bool value)
DescribeSpotInstanceRequestsRequest & AddSpotInstanceRequestIds(const Aws::String &value)
void SetSpotInstanceRequestIds(const Aws::Vector< Aws::String > &value)
DescribeSpotInstanceRequestsRequest & WithNextToken(const char *value)
AWS_EC2_API Aws::String SerializePayload() const override
DescribeSpotInstanceRequestsRequest & AddSpotInstanceRequestIds(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector