AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ListReportsRequest.h
1
6#pragma once
7#include <aws/codebuild/CodeBuild_EXPORTS.h>
8#include <aws/codebuild/CodeBuildRequest.h>
9#include <aws/codebuild/model/SortOrderType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/codebuild/model/ReportFilter.h>
12#include <utility>
13
14namespace Aws
15{
16namespace CodeBuild
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_CODEBUILD_API ListReportsRequest() = 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 "ListReports"; }
33
34 AWS_CODEBUILD_API Aws::String SerializePayload() const override;
35
37
38
40
47 inline SortOrderType GetSortOrder() const { return m_sortOrder; }
48 inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
49 inline void SetSortOrder(SortOrderType value) { m_sortOrderHasBeenSet = true; m_sortOrder = value; }
50 inline ListReportsRequest& WithSortOrder(SortOrderType value) { SetSortOrder(value); return *this;}
52
54
63 inline const Aws::String& GetNextToken() const { return m_nextToken; }
64 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
65 template<typename NextTokenT = Aws::String>
66 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
67 template<typename NextTokenT = Aws::String>
68 ListReportsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
70
72
77 inline int GetMaxResults() const { return m_maxResults; }
78 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
79 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
80 inline ListReportsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
82
84
87 inline const ReportFilter& GetFilter() const { return m_filter; }
88 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
89 template<typename FilterT = ReportFilter>
90 void SetFilter(FilterT&& value) { m_filterHasBeenSet = true; m_filter = std::forward<FilterT>(value); }
91 template<typename FilterT = ReportFilter>
92 ListReportsRequest& WithFilter(FilterT&& value) { SetFilter(std::forward<FilterT>(value)); return *this;}
94 private:
95
97 bool m_sortOrderHasBeenSet = false;
98
99 Aws::String m_nextToken;
100 bool m_nextTokenHasBeenSet = false;
101
102 int m_maxResults{0};
103 bool m_maxResultsHasBeenSet = false;
104
105 ReportFilter m_filter;
106 bool m_filterHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace CodeBuild
111} // namespace Aws
virtual const char * GetServiceRequestName() const override
AWS_CODEBUILD_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ListReportsRequest & WithNextToken(NextTokenT &&value)
ListReportsRequest & WithMaxResults(int value)
AWS_CODEBUILD_API ListReportsRequest()=default
ListReportsRequest & WithFilter(FilterT &&value)
AWS_CODEBUILD_API Aws::String SerializePayload() const override
ListReportsRequest & WithSortOrder(SortOrderType value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String