AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
DescribeFleetHistoryRequest.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ec2/EC2Request.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11#include <aws/ec2/model/FleetEventType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace EC2 {
17namespace Model {
18
22 public:
23 AWS_EC2_API DescribeFleetHistoryRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "DescribeFleetHistory"; }
30
31 AWS_EC2_API Aws::String SerializePayload() const override;
32
33 protected:
34 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
35
36 public:
38
44 inline bool GetDryRun() const { return m_dryRun; }
45 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
46 inline void SetDryRun(bool value) {
47 m_dryRunHasBeenSet = true;
48 m_dryRun = value;
49 }
51 SetDryRun(value);
52 return *this;
53 }
55
57
60 inline FleetEventType GetEventType() const { return m_eventType; }
61 inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
62 inline void SetEventType(FleetEventType value) {
63 m_eventTypeHasBeenSet = true;
64 m_eventType = value;
65 }
67 SetEventType(value);
68 return *this;
69 }
71
73
79 inline int GetMaxResults() const { return m_maxResults; }
80 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
81 inline void SetMaxResults(int value) {
82 m_maxResultsHasBeenSet = true;
83 m_maxResults = value;
84 }
86 SetMaxResults(value);
87 return *this;
88 }
90
92
96 inline const Aws::String& GetNextToken() const { return m_nextToken; }
97 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
98 template <typename NextTokenT = Aws::String>
99 void SetNextToken(NextTokenT&& value) {
100 m_nextTokenHasBeenSet = true;
101 m_nextToken = std::forward<NextTokenT>(value);
102 }
103 template <typename NextTokenT = Aws::String>
105 SetNextToken(std::forward<NextTokenT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::String& GetFleetId() const { return m_fleetId; }
115 inline bool FleetIdHasBeenSet() const { return m_fleetIdHasBeenSet; }
116 template <typename FleetIdT = Aws::String>
117 void SetFleetId(FleetIdT&& value) {
118 m_fleetIdHasBeenSet = true;
119 m_fleetId = std::forward<FleetIdT>(value);
120 }
121 template <typename FleetIdT = Aws::String>
123 SetFleetId(std::forward<FleetIdT>(value));
124 return *this;
125 }
127
129
133 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
134 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
135 template <typename StartTimeT = Aws::Utils::DateTime>
136 void SetStartTime(StartTimeT&& value) {
137 m_startTimeHasBeenSet = true;
138 m_startTime = std::forward<StartTimeT>(value);
139 }
140 template <typename StartTimeT = Aws::Utils::DateTime>
142 SetStartTime(std::forward<StartTimeT>(value));
143 return *this;
144 }
146 private:
147 bool m_dryRun{false};
148
150
151 int m_maxResults{0};
152
153 Aws::String m_nextToken;
154
155 Aws::String m_fleetId;
156
157 Aws::Utils::DateTime m_startTime{};
158 bool m_dryRunHasBeenSet = false;
159 bool m_eventTypeHasBeenSet = false;
160 bool m_maxResultsHasBeenSet = false;
161 bool m_nextTokenHasBeenSet = false;
162 bool m_fleetIdHasBeenSet = false;
163 bool m_startTimeHasBeenSet = false;
164};
165
166} // namespace Model
167} // namespace EC2
168} // namespace Aws
DescribeFleetHistoryRequest & WithFleetId(FleetIdT &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DescribeFleetHistoryRequest & WithStartTime(StartTimeT &&value)
virtual const char * GetServiceRequestName() const override
AWS_EC2_API Aws::String SerializePayload() const override
DescribeFleetHistoryRequest & WithNextToken(NextTokenT &&value)
DescribeFleetHistoryRequest & WithEventType(FleetEventType value)
AWS_EC2_API DescribeFleetHistoryRequest()=default
DescribeFleetHistoryRequest & WithMaxResults(int value)
DescribeFleetHistoryRequest & WithDryRun(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String