AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
ListFleetsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/deadline/DeadlineRequest.h>
9#include <aws/deadline/Deadline_EXPORTS.h>
10#include <aws/deadline/model/FleetStatus.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Http {
16class URI;
17} // namespace Http
18namespace deadline {
19namespace Model {
20
24 public:
25 AWS_DEADLINE_API ListFleetsRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "ListFleets"; }
32
33 AWS_DEADLINE_API Aws::String SerializePayload() const override;
34
35 AWS_DEADLINE_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
36
38
41 inline const Aws::String& GetFarmId() const { return m_farmId; }
42 inline bool FarmIdHasBeenSet() const { return m_farmIdHasBeenSet; }
43 template <typename FarmIdT = Aws::String>
44 void SetFarmId(FarmIdT&& value) {
45 m_farmIdHasBeenSet = true;
46 m_farmId = std::forward<FarmIdT>(value);
47 }
48 template <typename FarmIdT = Aws::String>
49 ListFleetsRequest& WithFarmId(FarmIdT&& value) {
50 SetFarmId(std::forward<FarmIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetPrincipalId() const { return m_principalId; }
60 inline bool PrincipalIdHasBeenSet() const { return m_principalIdHasBeenSet; }
61 template <typename PrincipalIdT = Aws::String>
62 void SetPrincipalId(PrincipalIdT&& value) {
63 m_principalIdHasBeenSet = true;
64 m_principalId = std::forward<PrincipalIdT>(value);
65 }
66 template <typename PrincipalIdT = Aws::String>
67 ListFleetsRequest& WithPrincipalId(PrincipalIdT&& value) {
68 SetPrincipalId(std::forward<PrincipalIdT>(value));
69 return *this;
70 }
72
74
80 inline const Aws::String& GetDisplayName() const { return m_displayName; }
81 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
82 template <typename DisplayNameT = Aws::String>
83 void SetDisplayName(DisplayNameT&& value) {
84 m_displayNameHasBeenSet = true;
85 m_displayName = std::forward<DisplayNameT>(value);
86 }
87 template <typename DisplayNameT = Aws::String>
88 ListFleetsRequest& WithDisplayName(DisplayNameT&& value) {
89 SetDisplayName(std::forward<DisplayNameT>(value));
90 return *this;
91 }
93
95
98 inline FleetStatus GetStatus() const { return m_status; }
99 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
100 inline void SetStatus(FleetStatus value) {
101 m_statusHasBeenSet = true;
102 m_status = value;
103 }
105 SetStatus(value);
106 return *this;
107 }
109
111
115 inline const Aws::String& GetNextToken() const { return m_nextToken; }
116 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
117 template <typename NextTokenT = Aws::String>
118 void SetNextToken(NextTokenT&& value) {
119 m_nextTokenHasBeenSet = true;
120 m_nextToken = std::forward<NextTokenT>(value);
121 }
122 template <typename NextTokenT = Aws::String>
123 ListFleetsRequest& WithNextToken(NextTokenT&& value) {
124 SetNextToken(std::forward<NextTokenT>(value));
125 return *this;
126 }
128
130
134 inline int GetMaxResults() const { return m_maxResults; }
135 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
136 inline void SetMaxResults(int value) {
137 m_maxResultsHasBeenSet = true;
138 m_maxResults = value;
139 }
141 SetMaxResults(value);
142 return *this;
143 }
145 private:
146 Aws::String m_farmId;
147
148 Aws::String m_principalId;
149
150 Aws::String m_displayName;
151
153
154 Aws::String m_nextToken;
155
156 int m_maxResults{0};
157 bool m_farmIdHasBeenSet = false;
158 bool m_principalIdHasBeenSet = false;
159 bool m_displayNameHasBeenSet = false;
160 bool m_statusHasBeenSet = false;
161 bool m_nextTokenHasBeenSet = false;
162 bool m_maxResultsHasBeenSet = false;
163};
164
165} // namespace Model
166} // namespace deadline
167} // namespace Aws
ListFleetsRequest & WithNextToken(NextTokenT &&value)
ListFleetsRequest & WithPrincipalId(PrincipalIdT &&value)
void SetDisplayName(DisplayNameT &&value)
const Aws::String & GetNextToken() const
ListFleetsRequest & WithStatus(FleetStatus value)
AWS_DEADLINE_API Aws::String SerializePayload() const override
ListFleetsRequest & WithFarmId(FarmIdT &&value)
void SetPrincipalId(PrincipalIdT &&value)
const Aws::String & GetFarmId() const
ListFleetsRequest & WithMaxResults(int value)
const Aws::String & GetPrincipalId() const
ListFleetsRequest & WithDisplayName(DisplayNameT &&value)
const Aws::String & GetDisplayName() const
virtual const char * GetServiceRequestName() const override
AWS_DEADLINE_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
AWS_DEADLINE_API ListFleetsRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String