AWS SDK for C++

AWS SDK for C++ Version 1.11.683

Loading...
Searching...
No Matches
ListBuildsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/gamelift/GameLiftRequest.h>
9#include <aws/gamelift/GameLift_EXPORTS.h>
10#include <aws/gamelift/model/BuildStatus.h>
11
12#include <utility>
13
14namespace Aws {
15namespace GameLift {
16namespace Model {
17
21 public:
22 AWS_GAMELIFT_API ListBuildsRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "ListBuilds"; }
29
30 AWS_GAMELIFT_API Aws::String SerializePayload() const override;
31
33
35
46 inline BuildStatus GetStatus() const { return m_status; }
47 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
48 inline void SetStatus(BuildStatus value) {
49 m_statusHasBeenSet = true;
50 m_status = value;
51 }
53 SetStatus(value);
54 return *this;
55 }
57
59
63 inline int GetLimit() const { return m_limit; }
64 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
65 inline void SetLimit(int value) {
66 m_limitHasBeenSet = true;
67 m_limit = value;
68 }
69 inline ListBuildsRequest& WithLimit(int value) {
70 SetLimit(value);
71 return *this;
72 }
74
76
81 inline const Aws::String& GetNextToken() const { return m_nextToken; }
82 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
83 template <typename NextTokenT = Aws::String>
84 void SetNextToken(NextTokenT&& value) {
85 m_nextTokenHasBeenSet = true;
86 m_nextToken = std::forward<NextTokenT>(value);
87 }
88 template <typename NextTokenT = Aws::String>
89 ListBuildsRequest& WithNextToken(NextTokenT&& value) {
90 SetNextToken(std::forward<NextTokenT>(value));
91 return *this;
92 }
94 private:
96 bool m_statusHasBeenSet = false;
97
98 int m_limit{0};
99 bool m_limitHasBeenSet = false;
100
101 Aws::String m_nextToken;
102 bool m_nextTokenHasBeenSet = false;
103};
104
105} // namespace Model
106} // namespace GameLift
107} // namespace Aws
ListBuildsRequest & WithLimit(int value)
const Aws::String & GetNextToken() const
ListBuildsRequest & WithStatus(BuildStatus value)
virtual const char * GetServiceRequestName() const override
ListBuildsRequest & WithNextToken(NextTokenT &&value)
AWS_GAMELIFT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_GAMELIFT_API ListBuildsRequest()=default
AWS_GAMELIFT_API Aws::String SerializePayload() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String