AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 const FleetEventType& GetEventType() const{ return m_eventType; }
59 inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
60 inline void SetEventType(const FleetEventType& value) { m_eventTypeHasBeenSet = true; m_eventType = value; }
61 inline void SetEventType(FleetEventType&& value) { m_eventTypeHasBeenSet = true; m_eventType = std::move(value); }
62 inline DescribeFleetHistoryRequest& WithEventType(const FleetEventType& value) { SetEventType(value); return *this;}
63 inline DescribeFleetHistoryRequest& WithEventType(FleetEventType&& value) { SetEventType(std::move(value)); return *this;}
65
67
73 inline int GetMaxResults() const{ return m_maxResults; }
74 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
75 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
76 inline DescribeFleetHistoryRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
78
80
84 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
85 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
86 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
87 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
88 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
89 inline DescribeFleetHistoryRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
90 inline DescribeFleetHistoryRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
91 inline DescribeFleetHistoryRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
93
95
98 inline const Aws::String& GetFleetId() const{ return m_fleetId; }
99 inline bool FleetIdHasBeenSet() const { return m_fleetIdHasBeenSet; }
100 inline void SetFleetId(const Aws::String& value) { m_fleetIdHasBeenSet = true; m_fleetId = value; }
101 inline void SetFleetId(Aws::String&& value) { m_fleetIdHasBeenSet = true; m_fleetId = std::move(value); }
102 inline void SetFleetId(const char* value) { m_fleetIdHasBeenSet = true; m_fleetId.assign(value); }
103 inline DescribeFleetHistoryRequest& WithFleetId(const Aws::String& value) { SetFleetId(value); return *this;}
104 inline DescribeFleetHistoryRequest& WithFleetId(Aws::String&& value) { SetFleetId(std::move(value)); return *this;}
105 inline DescribeFleetHistoryRequest& WithFleetId(const char* value) { SetFleetId(value); return *this;}
107
109
113 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
114 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
115 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
116 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
117 inline DescribeFleetHistoryRequest& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
118 inline DescribeFleetHistoryRequest& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
120 private:
121
122 bool m_dryRun;
123 bool m_dryRunHasBeenSet = false;
124
125 FleetEventType m_eventType;
126 bool m_eventTypeHasBeenSet = false;
127
128 int m_maxResults;
129 bool m_maxResultsHasBeenSet = false;
130
131 Aws::String m_nextToken;
132 bool m_nextTokenHasBeenSet = false;
133
134 Aws::String m_fleetId;
135 bool m_fleetIdHasBeenSet = false;
136
137 Aws::Utils::DateTime m_startTime;
138 bool m_startTimeHasBeenSet = false;
139 };
140
141} // namespace Model
142} // namespace EC2
143} // namespace Aws
DescribeFleetHistoryRequest & WithStartTime(const Aws::Utils::DateTime &value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DescribeFleetHistoryRequest & WithNextToken(const Aws::String &value)
DescribeFleetHistoryRequest & WithEventType(const FleetEventType &value)
DescribeFleetHistoryRequest & WithFleetId(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
AWS_EC2_API Aws::String SerializePayload() const override
void SetStartTime(const Aws::Utils::DateTime &value)
DescribeFleetHistoryRequest & WithFleetId(const char *value)
DescribeFleetHistoryRequest & WithStartTime(Aws::Utils::DateTime &&value)
DescribeFleetHistoryRequest & WithNextToken(Aws::String &&value)
DescribeFleetHistoryRequest & WithNextToken(const char *value)
DescribeFleetHistoryRequest & WithEventType(FleetEventType &&value)
DescribeFleetHistoryRequest & WithMaxResults(int value)
DescribeFleetHistoryRequest & WithFleetId(Aws::String &&value)
DescribeFleetHistoryRequest & WithDryRun(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String