AWS SDK for C++

AWS SDK for C++ Version 1.11.695

Loading...
Searching...
No Matches
ListBuildsRequest.h
1
6#pragma once
7#include <aws/codebuild/CodeBuildRequest.h>
8#include <aws/codebuild/CodeBuild_EXPORTS.h>
9#include <aws/codebuild/model/SortOrderType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace CodeBuild {
16namespace Model {
17
21 public:
22 AWS_CODEBUILD_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_CODEBUILD_API Aws::String SerializePayload() const override;
31
33
35
41 inline SortOrderType GetSortOrder() const { return m_sortOrder; }
42 inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
43 inline void SetSortOrder(SortOrderType value) {
44 m_sortOrderHasBeenSet = true;
45 m_sortOrder = value;
46 }
48 SetSortOrder(value);
49 return *this;
50 }
52
54
62 inline const Aws::String& GetNextToken() const { return m_nextToken; }
63 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
64 template <typename NextTokenT = Aws::String>
65 void SetNextToken(NextTokenT&& value) {
66 m_nextTokenHasBeenSet = true;
67 m_nextToken = std::forward<NextTokenT>(value);
68 }
69 template <typename NextTokenT = Aws::String>
70 ListBuildsRequest& WithNextToken(NextTokenT&& value) {
71 SetNextToken(std::forward<NextTokenT>(value));
72 return *this;
73 }
75 private:
77 bool m_sortOrderHasBeenSet = false;
78
79 Aws::String m_nextToken;
80 bool m_nextTokenHasBeenSet = false;
81};
82
83} // namespace Model
84} // namespace CodeBuild
85} // namespace Aws
ListBuildsRequest & WithNextToken(NextTokenT &&value)
virtual const char * GetServiceRequestName() const override
AWS_CODEBUILD_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_CODEBUILD_API Aws::String SerializePayload() const override
AWS_CODEBUILD_API ListBuildsRequest()=default
ListBuildsRequest & WithSortOrder(SortOrderType value)
const Aws::String & GetNextToken() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String