AWS SDK for C++  1.8.71
AWS SDK for C++
DescribeSpotFleetRequestHistoryRequest.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>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace EC2
17 {
18 namespace 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 "DescribeSpotFleetRequestHistory"; }
37 
38  Aws::String SerializePayload() const override;
39 
40  protected:
41  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
42 
43  public:
44 
51  inline bool GetDryRun() const{ return m_dryRun; }
52 
59  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
60 
67  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
68 
75  inline DescribeSpotFleetRequestHistoryRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
76 
77 
81  inline const EventType& GetEventType() const{ return m_eventType; }
82 
86  inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
87 
91  inline void SetEventType(const EventType& value) { m_eventTypeHasBeenSet = true; m_eventType = value; }
92 
96  inline void SetEventType(EventType&& value) { m_eventTypeHasBeenSet = true; m_eventType = std::move(value); }
97 
101  inline DescribeSpotFleetRequestHistoryRequest& WithEventType(const EventType& value) { SetEventType(value); return *this;}
102 
106  inline DescribeSpotFleetRequestHistoryRequest& WithEventType(EventType&& value) { SetEventType(std::move(value)); return *this;}
107 
108 
114  inline int GetMaxResults() const{ return m_maxResults; }
115 
121  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
122 
128  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
129 
135  inline DescribeSpotFleetRequestHistoryRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
136 
137 
141  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
142 
146  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
147 
151  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
152 
156  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
157 
161  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
162 
166  inline DescribeSpotFleetRequestHistoryRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
167 
171  inline DescribeSpotFleetRequestHistoryRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
172 
176  inline DescribeSpotFleetRequestHistoryRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
177 
178 
182  inline const Aws::String& GetSpotFleetRequestId() const{ return m_spotFleetRequestId; }
183 
187  inline bool SpotFleetRequestIdHasBeenSet() const { return m_spotFleetRequestIdHasBeenSet; }
188 
192  inline void SetSpotFleetRequestId(const Aws::String& value) { m_spotFleetRequestIdHasBeenSet = true; m_spotFleetRequestId = value; }
193 
197  inline void SetSpotFleetRequestId(Aws::String&& value) { m_spotFleetRequestIdHasBeenSet = true; m_spotFleetRequestId = std::move(value); }
198 
202  inline void SetSpotFleetRequestId(const char* value) { m_spotFleetRequestIdHasBeenSet = true; m_spotFleetRequestId.assign(value); }
203 
207  inline DescribeSpotFleetRequestHistoryRequest& WithSpotFleetRequestId(const Aws::String& value) { SetSpotFleetRequestId(value); return *this;}
208 
212  inline DescribeSpotFleetRequestHistoryRequest& WithSpotFleetRequestId(Aws::String&& value) { SetSpotFleetRequestId(std::move(value)); return *this;}
213 
217  inline DescribeSpotFleetRequestHistoryRequest& WithSpotFleetRequestId(const char* value) { SetSpotFleetRequestId(value); return *this;}
218 
219 
224  inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
225 
230  inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
231 
236  inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
237 
242  inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
243 
248  inline DescribeSpotFleetRequestHistoryRequest& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
249 
254  inline DescribeSpotFleetRequestHistoryRequest& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
255 
256  private:
257 
258  bool m_dryRun;
259  bool m_dryRunHasBeenSet;
260 
261  EventType m_eventType;
262  bool m_eventTypeHasBeenSet;
263 
264  int m_maxResults;
265  bool m_maxResultsHasBeenSet;
266 
267  Aws::String m_nextToken;
268  bool m_nextTokenHasBeenSet;
269 
270  Aws::String m_spotFleetRequestId;
271  bool m_spotFleetRequestIdHasBeenSet;
272 
273  Aws::Utils::DateTime m_startTime;
274  bool m_startTimeHasBeenSet;
275  };
276 
277 } // namespace Model
278 } // namespace EC2
279 } // namespace Aws
DescribeSpotFleetRequestHistoryRequest & WithStartTime(Aws::Utils::DateTime &&value)
DescribeSpotFleetRequestHistoryRequest & WithSpotFleetRequestId(const Aws::String &value)
DescribeSpotFleetRequestHistoryRequest & WithSpotFleetRequestId(Aws::String &&value)
DescribeSpotFleetRequestHistoryRequest & WithNextToken(Aws::String &&value)
DescribeSpotFleetRequestHistoryRequest & WithEventType(EventType &&value)
DescribeSpotFleetRequestHistoryRequest & WithNextToken(const char *value)
DescribeSpotFleetRequestHistoryRequest & WithDryRun(bool value)
DescribeSpotFleetRequestHistoryRequest & WithStartTime(const Aws::Utils::DateTime &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
DescribeSpotFleetRequestHistoryRequest & WithEventType(const EventType &value)
DescribeSpotFleetRequestHistoryRequest & WithSpotFleetRequestId(const char *value)
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
DescribeSpotFleetRequestHistoryRequest & WithMaxResults(int value)
DescribeSpotFleetRequestHistoryRequest & WithNextToken(const Aws::String &value)