AWS SDK for C++  0.14.3
AWS SDK for C++
DescribeSpotFleetRequestHistoryRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/ec2/EC2_EXPORTS.h>
17 #include <aws/ec2/EC2Request.h>
21 
22 namespace Aws
23 {
24 namespace EC2
25 {
26 namespace Model
27 {
28 
33  {
34  public:
36  Aws::String SerializePayload() const override;
37 
44  inline bool GetDryRun() const{ return m_dryRun; }
45 
52  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
53 
60  inline DescribeSpotFleetRequestHistoryRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
61 
65  inline const Aws::String& GetSpotFleetRequestId() const{ return m_spotFleetRequestId; }
66 
70  inline void SetSpotFleetRequestId(const Aws::String& value) { m_spotFleetRequestIdHasBeenSet = true; m_spotFleetRequestId = value; }
71 
75  inline void SetSpotFleetRequestId(Aws::String&& value) { m_spotFleetRequestIdHasBeenSet = true; m_spotFleetRequestId = value; }
76 
80  inline void SetSpotFleetRequestId(const char* value) { m_spotFleetRequestIdHasBeenSet = true; m_spotFleetRequestId.assign(value); }
81 
85  inline DescribeSpotFleetRequestHistoryRequest& WithSpotFleetRequestId(const Aws::String& value) { SetSpotFleetRequestId(value); return *this;}
86 
90  inline DescribeSpotFleetRequestHistoryRequest& WithSpotFleetRequestId(Aws::String&& value) { SetSpotFleetRequestId(value); return *this;}
91 
95  inline DescribeSpotFleetRequestHistoryRequest& WithSpotFleetRequestId(const char* value) { SetSpotFleetRequestId(value); return *this;}
96 
100  inline const EventType& GetEventType() const{ return m_eventType; }
101 
105  inline void SetEventType(const EventType& value) { m_eventTypeHasBeenSet = true; m_eventType = value; }
106 
110  inline void SetEventType(EventType&& value) { m_eventTypeHasBeenSet = true; m_eventType = value; }
111 
115  inline DescribeSpotFleetRequestHistoryRequest& WithEventType(const EventType& value) { SetEventType(value); return *this;}
116 
120  inline DescribeSpotFleetRequestHistoryRequest& WithEventType(EventType&& value) { SetEventType(value); return *this;}
121 
126  inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
127 
132  inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
133 
138  inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
139 
144  inline DescribeSpotFleetRequestHistoryRequest& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
145 
150  inline DescribeSpotFleetRequestHistoryRequest& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(value); return *this;}
151 
155  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
156 
160  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
161 
165  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
166 
170  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
171 
175  inline DescribeSpotFleetRequestHistoryRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
176 
180  inline DescribeSpotFleetRequestHistoryRequest& WithNextToken(Aws::String&& value) { SetNextToken(value); return *this;}
181 
185  inline DescribeSpotFleetRequestHistoryRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
186 
192  inline int GetMaxResults() const{ return m_maxResults; }
193 
199  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
200 
206  inline DescribeSpotFleetRequestHistoryRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
207 
208  private:
209  bool m_dryRun;
210  bool m_dryRunHasBeenSet;
211  Aws::String m_spotFleetRequestId;
212  bool m_spotFleetRequestIdHasBeenSet;
213  EventType m_eventType;
214  bool m_eventTypeHasBeenSet;
215  Aws::Utils::DateTime m_startTime;
216  bool m_startTimeHasBeenSet;
217  Aws::String m_nextToken;
218  bool m_nextTokenHasBeenSet;
219  int m_maxResults;
220  bool m_maxResultsHasBeenSet;
221  };
222 
223 } // namespace Model
224 } // namespace EC2
225 } // 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:37
DescribeSpotFleetRequestHistoryRequest & WithMaxResults(int value)
DescribeSpotFleetRequestHistoryRequest & WithNextToken(const Aws::String &value)
JSON (JavaScript Object Notation).