AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DescribeFleetHistoryRequest.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/ec2/model/FleetEventType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/DateTime.h>
12#include <utility>
13
14namespace Aws
15{
16namespace EC2
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_EC2_API DescribeFleetHistoryRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "DescribeFleetHistory"; }
33
34 AWS_EC2_API Aws::String SerializePayload() const override;
35
36 protected:
37 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38
39 public:
40
42
48 inline bool GetDryRun() const { return m_dryRun; }
49 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
50 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
51 inline DescribeFleetHistoryRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
53
55
58 inline FleetEventType GetEventType() const { return m_eventType; }
59 inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
60 inline void SetEventType(FleetEventType value) { m_eventTypeHasBeenSet = true; m_eventType = value; }
63
65
71 inline int GetMaxResults() const { return m_maxResults; }
72 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
73 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
74 inline DescribeFleetHistoryRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
76
78
82 inline const Aws::String& GetNextToken() const { return m_nextToken; }
83 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
84 template<typename NextTokenT = Aws::String>
85 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
86 template<typename NextTokenT = Aws::String>
87 DescribeFleetHistoryRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
89
91
94 inline const Aws::String& GetFleetId() const { return m_fleetId; }
95 inline bool FleetIdHasBeenSet() const { return m_fleetIdHasBeenSet; }
96 template<typename FleetIdT = Aws::String>
97 void SetFleetId(FleetIdT&& value) { m_fleetIdHasBeenSet = true; m_fleetId = std::forward<FleetIdT>(value); }
98 template<typename FleetIdT = Aws::String>
99 DescribeFleetHistoryRequest& WithFleetId(FleetIdT&& value) { SetFleetId(std::forward<FleetIdT>(value)); return *this;}
101
103
107 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
108 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
109 template<typename StartTimeT = Aws::Utils::DateTime>
110 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
111 template<typename StartTimeT = Aws::Utils::DateTime>
112 DescribeFleetHistoryRequest& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
114 private:
115
116 bool m_dryRun{false};
117 bool m_dryRunHasBeenSet = false;
118
120 bool m_eventTypeHasBeenSet = false;
121
122 int m_maxResults{0};
123 bool m_maxResultsHasBeenSet = false;
124
125 Aws::String m_nextToken;
126 bool m_nextTokenHasBeenSet = false;
127
128 Aws::String m_fleetId;
129 bool m_fleetIdHasBeenSet = false;
130
131 Aws::Utils::DateTime m_startTime{};
132 bool m_startTimeHasBeenSet = false;
133 };
134
135} // namespace Model
136} // namespace EC2
137} // 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