AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ListFleetsRequest.h
1
6#pragma once
7#include <aws/codebuild/CodeBuild_EXPORTS.h>
8#include <aws/codebuild/CodeBuildRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/codebuild/model/SortOrderType.h>
11#include <aws/codebuild/model/FleetSortByType.h>
12#include <utility>
13
14namespace Aws
15{
16namespace CodeBuild
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_CODEBUILD_API ListFleetsRequest() = 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 "ListFleets"; }
33
34 AWS_CODEBUILD_API Aws::String SerializePayload() const override;
35
37
38
40
48 inline const Aws::String& GetNextToken() const { return m_nextToken; }
49 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
50 template<typename NextTokenT = Aws::String>
51 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
52 template<typename NextTokenT = Aws::String>
53 ListFleetsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
55
57
62 inline int GetMaxResults() const { return m_maxResults; }
63 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
64 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
65 inline ListFleetsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
67
69
76 inline SortOrderType GetSortOrder() const { return m_sortOrder; }
77 inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
78 inline void SetSortOrder(SortOrderType value) { m_sortOrderHasBeenSet = true; m_sortOrder = value; }
79 inline ListFleetsRequest& WithSortOrder(SortOrderType value) { SetSortOrder(value); return *this;}
81
83
92 inline FleetSortByType GetSortBy() const { return m_sortBy; }
93 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
94 inline void SetSortBy(FleetSortByType value) { m_sortByHasBeenSet = true; m_sortBy = value; }
95 inline ListFleetsRequest& WithSortBy(FleetSortByType value) { SetSortBy(value); return *this;}
97 private:
98
99 Aws::String m_nextToken;
100 bool m_nextTokenHasBeenSet = false;
101
102 int m_maxResults{0};
103 bool m_maxResultsHasBeenSet = false;
104
106 bool m_sortOrderHasBeenSet = false;
107
109 bool m_sortByHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace CodeBuild
114} // namespace Aws
virtual const char * GetServiceRequestName() const override
AWS_CODEBUILD_API ListFleetsRequest()=default
ListFleetsRequest & WithSortOrder(SortOrderType value)
const Aws::String & GetNextToken() const
ListFleetsRequest & WithNextToken(NextTokenT &&value)
AWS_CODEBUILD_API Aws::String SerializePayload() const override
AWS_CODEBUILD_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ListFleetsRequest & WithSortBy(FleetSortByType value)
ListFleetsRequest & WithMaxResults(int value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String