AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DescribeSpotFleetRequestsRequest.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 "DescribeSpotFleetRequests"; }
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 DescribeSpotFleetRequestsRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
56
58
61 inline const Aws::Vector<Aws::String>& GetSpotFleetRequestIds() const{ return m_spotFleetRequestIds; }
62 inline bool SpotFleetRequestIdsHasBeenSet() const { return m_spotFleetRequestIdsHasBeenSet; }
63 inline void SetSpotFleetRequestIds(const Aws::Vector<Aws::String>& value) { m_spotFleetRequestIdsHasBeenSet = true; m_spotFleetRequestIds = value; }
64 inline void SetSpotFleetRequestIds(Aws::Vector<Aws::String>&& value) { m_spotFleetRequestIdsHasBeenSet = true; m_spotFleetRequestIds = std::move(value); }
67 inline DescribeSpotFleetRequestsRequest& AddSpotFleetRequestIds(const Aws::String& value) { m_spotFleetRequestIdsHasBeenSet = true; m_spotFleetRequestIds.push_back(value); return *this; }
68 inline DescribeSpotFleetRequestsRequest& AddSpotFleetRequestIds(Aws::String&& value) { m_spotFleetRequestIdsHasBeenSet = true; m_spotFleetRequestIds.push_back(std::move(value)); return *this; }
69 inline DescribeSpotFleetRequestsRequest& AddSpotFleetRequestIds(const char* value) { m_spotFleetRequestIdsHasBeenSet = true; m_spotFleetRequestIds.push_back(value); return *this; }
71
73
77 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
78 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
79 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
80 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
81 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
82 inline DescribeSpotFleetRequestsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
83 inline DescribeSpotFleetRequestsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
84 inline DescribeSpotFleetRequestsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
86
88
94 inline int GetMaxResults() const{ return m_maxResults; }
95 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
96 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
97 inline DescribeSpotFleetRequestsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
99 private:
100
101 bool m_dryRun;
102 bool m_dryRunHasBeenSet = false;
103
104 Aws::Vector<Aws::String> m_spotFleetRequestIds;
105 bool m_spotFleetRequestIdsHasBeenSet = false;
106
107 Aws::String m_nextToken;
108 bool m_nextTokenHasBeenSet = false;
109
110 int m_maxResults;
111 bool m_maxResultsHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace EC2
116} // namespace Aws
void SetSpotFleetRequestIds(Aws::Vector< Aws::String > &&value)
DescribeSpotFleetRequestsRequest & WithSpotFleetRequestIds(const Aws::Vector< Aws::String > &value)
DescribeSpotFleetRequestsRequest & WithNextToken(Aws::String &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DescribeSpotFleetRequestsRequest & AddSpotFleetRequestIds(Aws::String &&value)
DescribeSpotFleetRequestsRequest & WithNextToken(const Aws::String &value)
DescribeSpotFleetRequestsRequest & WithMaxResults(int value)
DescribeSpotFleetRequestsRequest & WithDryRun(bool value)
DescribeSpotFleetRequestsRequest & AddSpotFleetRequestIds(const Aws::String &value)
void SetSpotFleetRequestIds(const Aws::Vector< Aws::String > &value)
AWS_EC2_API Aws::String SerializePayload() const override
DescribeSpotFleetRequestsRequest & WithNextToken(const char *value)
DescribeSpotFleetRequestsRequest & WithSpotFleetRequestIds(Aws::Vector< Aws::String > &&value)
DescribeSpotFleetRequestsRequest & AddSpotFleetRequestIds(const char *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