AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ListBuildBatchesRequest.h
1
6#pragma once
7#include <aws/codebuild/CodeBuild_EXPORTS.h>
8#include <aws/codebuild/CodeBuildRequest.h>
9#include <aws/codebuild/model/BuildBatchFilter.h>
10#include <aws/codebuild/model/SortOrderType.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <utility>
13
14namespace Aws
15{
16namespace CodeBuild
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_CODEBUILD_API ListBuildBatchesRequest();
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 "ListBuildBatches"; }
33
34 AWS_CODEBUILD_API Aws::String SerializePayload() const override;
35
37
38
40
44 inline const BuildBatchFilter& GetFilter() const{ return m_filter; }
45 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
46 inline void SetFilter(const BuildBatchFilter& value) { m_filterHasBeenSet = true; m_filter = value; }
47 inline void SetFilter(BuildBatchFilter&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }
48 inline ListBuildBatchesRequest& WithFilter(const BuildBatchFilter& value) { SetFilter(value); return *this;}
49 inline ListBuildBatchesRequest& WithFilter(BuildBatchFilter&& value) { SetFilter(std::move(value)); return *this;}
51
53
56 inline int GetMaxResults() const{ return m_maxResults; }
57 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
58 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
59 inline ListBuildBatchesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
61
63
69 inline const SortOrderType& GetSortOrder() const{ return m_sortOrder; }
70 inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
71 inline void SetSortOrder(const SortOrderType& value) { m_sortOrderHasBeenSet = true; m_sortOrder = value; }
72 inline void SetSortOrder(SortOrderType&& value) { m_sortOrderHasBeenSet = true; m_sortOrder = std::move(value); }
73 inline ListBuildBatchesRequest& WithSortOrder(const SortOrderType& value) { SetSortOrder(value); return *this;}
74 inline ListBuildBatchesRequest& WithSortOrder(SortOrderType&& value) { SetSortOrder(std::move(value)); return *this;}
76
78
83 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
84 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
85 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
86 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
87 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
88 inline ListBuildBatchesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
89 inline ListBuildBatchesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
90 inline ListBuildBatchesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
92 private:
93
94 BuildBatchFilter m_filter;
95 bool m_filterHasBeenSet = false;
96
97 int m_maxResults;
98 bool m_maxResultsHasBeenSet = false;
99
100 SortOrderType m_sortOrder;
101 bool m_sortOrderHasBeenSet = false;
102
103 Aws::String m_nextToken;
104 bool m_nextTokenHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace CodeBuild
109} // namespace Aws
ListBuildBatchesRequest & WithMaxResults(int value)
ListBuildBatchesRequest & WithSortOrder(const SortOrderType &value)
ListBuildBatchesRequest & WithNextToken(Aws::String &&value)
ListBuildBatchesRequest & WithNextToken(const char *value)
AWS_CODEBUILD_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ListBuildBatchesRequest & WithFilter(const BuildBatchFilter &value)
ListBuildBatchesRequest & WithSortOrder(SortOrderType &&value)
virtual const char * GetServiceRequestName() const override
ListBuildBatchesRequest & WithNextToken(const Aws::String &value)
ListBuildBatchesRequest & WithFilter(BuildBatchFilter &&value)
AWS_CODEBUILD_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