AWS SDK for C++  1.9.15
AWS SDK for C++
DescribeSpotFleetInstancesRequest.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>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace EC2
15 {
16 namespace Model
17 {
18 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "DescribeSpotFleetInstances"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  protected:
39  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
40 
41  public:
42 
49  inline bool GetDryRun() const{ return m_dryRun; }
50 
57  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
58 
65  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
66 
73  inline DescribeSpotFleetInstancesRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
74 
75 
81  inline int GetMaxResults() const{ return m_maxResults; }
82 
88  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
89 
95  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
96 
102  inline DescribeSpotFleetInstancesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
103 
104 
108  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
109 
113  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
114 
118  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
119 
123  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
124 
128  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
129 
133  inline DescribeSpotFleetInstancesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
134 
138  inline DescribeSpotFleetInstancesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
139 
143  inline DescribeSpotFleetInstancesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
144 
145 
149  inline const Aws::String& GetSpotFleetRequestId() const{ return m_spotFleetRequestId; }
150 
154  inline bool SpotFleetRequestIdHasBeenSet() const { return m_spotFleetRequestIdHasBeenSet; }
155 
159  inline void SetSpotFleetRequestId(const Aws::String& value) { m_spotFleetRequestIdHasBeenSet = true; m_spotFleetRequestId = value; }
160 
164  inline void SetSpotFleetRequestId(Aws::String&& value) { m_spotFleetRequestIdHasBeenSet = true; m_spotFleetRequestId = std::move(value); }
165 
169  inline void SetSpotFleetRequestId(const char* value) { m_spotFleetRequestIdHasBeenSet = true; m_spotFleetRequestId.assign(value); }
170 
174  inline DescribeSpotFleetInstancesRequest& WithSpotFleetRequestId(const Aws::String& value) { SetSpotFleetRequestId(value); return *this;}
175 
179  inline DescribeSpotFleetInstancesRequest& WithSpotFleetRequestId(Aws::String&& value) { SetSpotFleetRequestId(std::move(value)); return *this;}
180 
184  inline DescribeSpotFleetInstancesRequest& WithSpotFleetRequestId(const char* value) { SetSpotFleetRequestId(value); return *this;}
185 
186  private:
187 
188  bool m_dryRun;
189  bool m_dryRunHasBeenSet;
190 
191  int m_maxResults;
192  bool m_maxResultsHasBeenSet;
193 
194  Aws::String m_nextToken;
195  bool m_nextTokenHasBeenSet;
196 
197  Aws::String m_spotFleetRequestId;
198  bool m_spotFleetRequestIdHasBeenSet;
199  };
200 
201 } // namespace Model
202 } // namespace EC2
203 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::DescribeSpotFleetInstancesRequest::WithNextToken
DescribeSpotFleetInstancesRequest & WithNextToken(const char *value)
Definition: DescribeSpotFleetInstancesRequest.h:143
Aws::EC2::Model::DescribeSpotFleetInstancesRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: DescribeSpotFleetInstancesRequest.h:113
Aws::EC2::Model::DescribeSpotFleetInstancesRequest::SetMaxResults
void SetMaxResults(int value)
Definition: DescribeSpotFleetInstancesRequest.h:95
Aws::EC2::Model::DescribeSpotFleetInstancesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeSpotFleetInstancesRequest.h:34
Aws::EC2::Model::DescribeSpotFleetInstancesRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: DescribeSpotFleetInstancesRequest.h:88
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::DescribeSpotFleetInstancesRequest::GetDryRun
bool GetDryRun() const
Definition: DescribeSpotFleetInstancesRequest.h:49
Aws::EC2::Model::DescribeSpotFleetInstancesRequest::WithSpotFleetRequestId
DescribeSpotFleetInstancesRequest & WithSpotFleetRequestId(const Aws::String &value)
Definition: DescribeSpotFleetInstancesRequest.h:174
Aws::EC2::Model::DescribeSpotFleetInstancesRequest::WithNextToken
DescribeSpotFleetInstancesRequest & WithNextToken(Aws::String &&value)
Definition: DescribeSpotFleetInstancesRequest.h:138
Aws::EC2::Model::DescribeSpotFleetInstancesRequest
Definition: DescribeSpotFleetInstancesRequest.h:26
Aws::EC2::Model::DescribeSpotFleetInstancesRequest::WithSpotFleetRequestId
DescribeSpotFleetInstancesRequest & WithSpotFleetRequestId(const char *value)
Definition: DescribeSpotFleetInstancesRequest.h:184
Aws::EC2::Model::DescribeSpotFleetInstancesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::DescribeSpotFleetInstancesRequest::SetSpotFleetRequestId
void SetSpotFleetRequestId(Aws::String &&value)
Definition: DescribeSpotFleetInstancesRequest.h:164
Aws::EC2::Model::DescribeSpotFleetInstancesRequest::GetMaxResults
int GetMaxResults() const
Definition: DescribeSpotFleetInstancesRequest.h:81
Aws::EC2::Model::DescribeSpotFleetInstancesRequest::DescribeSpotFleetInstancesRequest
DescribeSpotFleetInstancesRequest()
Aws::EC2::Model::DescribeSpotFleetInstancesRequest::SetNextToken
void SetNextToken(const char *value)
Definition: DescribeSpotFleetInstancesRequest.h:128
Aws::EC2::Model::DescribeSpotFleetInstancesRequest::WithSpotFleetRequestId
DescribeSpotFleetInstancesRequest & WithSpotFleetRequestId(Aws::String &&value)
Definition: DescribeSpotFleetInstancesRequest.h:179
Aws::EC2::Model::DescribeSpotFleetInstancesRequest::SetSpotFleetRequestId
void SetSpotFleetRequestId(const char *value)
Definition: DescribeSpotFleetInstancesRequest.h:169
EC2Request.h
Aws::EC2::Model::DescribeSpotFleetInstancesRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: DescribeSpotFleetInstancesRequest.h:57
Aws::EC2::Model::DescribeSpotFleetInstancesRequest::SetDryRun
void SetDryRun(bool value)
Definition: DescribeSpotFleetInstancesRequest.h:65
AWSString.h
Aws::EC2::Model::DescribeSpotFleetInstancesRequest::SpotFleetRequestIdHasBeenSet
bool SpotFleetRequestIdHasBeenSet() const
Definition: DescribeSpotFleetInstancesRequest.h:154
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DescribeSpotFleetInstancesRequest::SetSpotFleetRequestId
void SetSpotFleetRequestId(const Aws::String &value)
Definition: DescribeSpotFleetInstancesRequest.h:159
Aws::EC2::Model::DescribeSpotFleetInstancesRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribeSpotFleetInstancesRequest.h:108
Aws::EC2::Model::DescribeSpotFleetInstancesRequest::WithDryRun
DescribeSpotFleetInstancesRequest & WithDryRun(bool value)
Definition: DescribeSpotFleetInstancesRequest.h:73
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::DescribeSpotFleetInstancesRequest::GetSpotFleetRequestId
const Aws::String & GetSpotFleetRequestId() const
Definition: DescribeSpotFleetInstancesRequest.h:149
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::DescribeSpotFleetInstancesRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::DescribeSpotFleetInstancesRequest::WithNextToken
DescribeSpotFleetInstancesRequest & WithNextToken(const Aws::String &value)
Definition: DescribeSpotFleetInstancesRequest.h:133
Aws::EC2::Model::DescribeSpotFleetInstancesRequest::WithMaxResults
DescribeSpotFleetInstancesRequest & WithMaxResults(int value)
Definition: DescribeSpotFleetInstancesRequest.h:102
EC2_EXPORTS.h
Aws::EC2::Model::DescribeSpotFleetInstancesRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribeSpotFleetInstancesRequest.h:118
Aws::EC2::Model::DescribeSpotFleetInstancesRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribeSpotFleetInstancesRequest.h:123