AWS SDK for C++  1.9.66
AWS SDK for C++
DescribeSpotFleetRequestsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
8 #include <aws/ec2/EC2Request.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace EC2
16 {
17 namespace 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::String SerializePayload() const override;
38 
39  protected:
40  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
41 
42  public:
43 
50  inline bool GetDryRun() const{ return m_dryRun; }
51 
58  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
59 
66  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
67 
74  inline DescribeSpotFleetRequestsRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
75 
76 
82  inline int GetMaxResults() const{ return m_maxResults; }
83 
89  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
90 
96  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
97 
103  inline DescribeSpotFleetRequestsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
104 
105 
109  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
110 
114  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
115 
119  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
120 
124  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
125 
129  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
130 
134  inline DescribeSpotFleetRequestsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
135 
139  inline DescribeSpotFleetRequestsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
140 
144  inline DescribeSpotFleetRequestsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
145 
146 
150  inline const Aws::Vector<Aws::String>& GetSpotFleetRequestIds() const{ return m_spotFleetRequestIds; }
151 
155  inline bool SpotFleetRequestIdsHasBeenSet() const { return m_spotFleetRequestIdsHasBeenSet; }
156 
160  inline void SetSpotFleetRequestIds(const Aws::Vector<Aws::String>& value) { m_spotFleetRequestIdsHasBeenSet = true; m_spotFleetRequestIds = value; }
161 
165  inline void SetSpotFleetRequestIds(Aws::Vector<Aws::String>&& value) { m_spotFleetRequestIdsHasBeenSet = true; m_spotFleetRequestIds = std::move(value); }
166 
170  inline DescribeSpotFleetRequestsRequest& WithSpotFleetRequestIds(const Aws::Vector<Aws::String>& value) { SetSpotFleetRequestIds(value); return *this;}
171 
175  inline DescribeSpotFleetRequestsRequest& WithSpotFleetRequestIds(Aws::Vector<Aws::String>&& value) { SetSpotFleetRequestIds(std::move(value)); return *this;}
176 
180  inline DescribeSpotFleetRequestsRequest& AddSpotFleetRequestIds(const Aws::String& value) { m_spotFleetRequestIdsHasBeenSet = true; m_spotFleetRequestIds.push_back(value); return *this; }
181 
185  inline DescribeSpotFleetRequestsRequest& AddSpotFleetRequestIds(Aws::String&& value) { m_spotFleetRequestIdsHasBeenSet = true; m_spotFleetRequestIds.push_back(std::move(value)); return *this; }
186 
190  inline DescribeSpotFleetRequestsRequest& AddSpotFleetRequestIds(const char* value) { m_spotFleetRequestIdsHasBeenSet = true; m_spotFleetRequestIds.push_back(value); return *this; }
191 
192  private:
193 
194  bool m_dryRun;
195  bool m_dryRunHasBeenSet;
196 
197  int m_maxResults;
198  bool m_maxResultsHasBeenSet;
199 
200  Aws::String m_nextToken;
201  bool m_nextTokenHasBeenSet;
202 
203  Aws::Vector<Aws::String> m_spotFleetRequestIds;
204  bool m_spotFleetRequestIdsHasBeenSet;
205  };
206 
207 } // namespace Model
208 } // namespace EC2
209 } // namespace Aws
Aws::EC2::Model::DescribeSpotFleetRequestsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: DescribeSpotFleetRequestsRequest.h:89
Aws::EC2::Model::DescribeSpotFleetRequestsRequest::GetMaxResults
int GetMaxResults() const
Definition: DescribeSpotFleetRequestsRequest.h:82
Aws::EC2::Model::DescribeSpotFleetRequestsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribeSpotFleetRequestsRequest.h:124
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::DescribeSpotFleetRequestsRequest::AddSpotFleetRequestIds
DescribeSpotFleetRequestsRequest & AddSpotFleetRequestIds(const Aws::String &value)
Definition: DescribeSpotFleetRequestsRequest.h:180
Aws::EC2::Model::DescribeSpotFleetRequestsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeSpotFleetRequestsRequest.h:35
Aws::EC2::Model::DescribeSpotFleetRequestsRequest::WithSpotFleetRequestIds
DescribeSpotFleetRequestsRequest & WithSpotFleetRequestIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeSpotFleetRequestsRequest.h:170
Aws::EC2::Model::DescribeSpotFleetRequestsRequest::SetSpotFleetRequestIds
void SetSpotFleetRequestIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeSpotFleetRequestsRequest.h:165
Aws::EC2::Model::DescribeSpotFleetRequestsRequest::SetSpotFleetRequestIds
void SetSpotFleetRequestIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeSpotFleetRequestsRequest.h:160
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::DescribeSpotFleetRequestsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: DescribeSpotFleetRequestsRequest.h:129
Aws::EC2::Model::DescribeSpotFleetRequestsRequest::WithNextToken
DescribeSpotFleetRequestsRequest & WithNextToken(const char *value)
Definition: DescribeSpotFleetRequestsRequest.h:144
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::DescribeSpotFleetRequestsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribeSpotFleetRequestsRequest.h:119
Aws::EC2::Model::DescribeSpotFleetRequestsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: DescribeSpotFleetRequestsRequest.h:96
AWSVector.h
Aws::EC2::Model::DescribeSpotFleetRequestsRequest::WithNextToken
DescribeSpotFleetRequestsRequest & WithNextToken(Aws::String &&value)
Definition: DescribeSpotFleetRequestsRequest.h:139
Aws::EC2::Model::DescribeSpotFleetRequestsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: DescribeSpotFleetRequestsRequest.h:114
Aws::EC2::Model::DescribeSpotFleetRequestsRequest::WithMaxResults
DescribeSpotFleetRequestsRequest & WithMaxResults(int value)
Definition: DescribeSpotFleetRequestsRequest.h:103
Aws::EC2::Model::DescribeSpotFleetRequestsRequest::WithSpotFleetRequestIds
DescribeSpotFleetRequestsRequest & WithSpotFleetRequestIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeSpotFleetRequestsRequest.h:175
Aws::EC2::Model::DescribeSpotFleetRequestsRequest::WithNextToken
DescribeSpotFleetRequestsRequest & WithNextToken(const Aws::String &value)
Definition: DescribeSpotFleetRequestsRequest.h:134
Aws::EC2::Model::DescribeSpotFleetRequestsRequest::SetDryRun
void SetDryRun(bool value)
Definition: DescribeSpotFleetRequestsRequest.h:66
Aws::EC2::Model::DescribeSpotFleetRequestsRequest
Definition: DescribeSpotFleetRequestsRequest.h:27
EC2Request.h
AWSString.h
Aws::EC2::Model::DescribeSpotFleetRequestsRequest::SpotFleetRequestIdsHasBeenSet
bool SpotFleetRequestIdsHasBeenSet() const
Definition: DescribeSpotFleetRequestsRequest.h:155
Aws::EC2::Model::DescribeSpotFleetRequestsRequest::DescribeSpotFleetRequestsRequest
DescribeSpotFleetRequestsRequest()
Aws::EC2::Model::DescribeSpotFleetRequestsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::DescribeSpotFleetRequestsRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::DescribeSpotFleetRequestsRequest::AddSpotFleetRequestIds
DescribeSpotFleetRequestsRequest & AddSpotFleetRequestIds(Aws::String &&value)
Definition: DescribeSpotFleetRequestsRequest.h:185
Aws::EC2::Model::DescribeSpotFleetRequestsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribeSpotFleetRequestsRequest.h:109
Aws::EC2::Model::DescribeSpotFleetRequestsRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: DescribeSpotFleetRequestsRequest.h:58
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DescribeSpotFleetRequestsRequest::GetDryRun
bool GetDryRun() const
Definition: DescribeSpotFleetRequestsRequest.h:50
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::DescribeSpotFleetRequestsRequest::WithDryRun
DescribeSpotFleetRequestsRequest & WithDryRun(bool value)
Definition: DescribeSpotFleetRequestsRequest.h:74
EC2_EXPORTS.h
Aws::EC2::Model::DescribeSpotFleetRequestsRequest::GetSpotFleetRequestIds
const Aws::Vector< Aws::String > & GetSpotFleetRequestIds() const
Definition: DescribeSpotFleetRequestsRequest.h:150
Aws::EC2::Model::DescribeSpotFleetRequestsRequest::AddSpotFleetRequestIds
DescribeSpotFleetRequestsRequest & AddSpotFleetRequestIds(const char *value)
Definition: DescribeSpotFleetRequestsRequest.h:190