AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ListFindingsMetricsRequest.h
1
6#pragma once
7#include <aws/codeguru-security/CodeGuruSecurity_EXPORTS.h>
8#include <aws/codeguru-security/CodeGuruSecurityRequest.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Http
16{
17 class URI;
18} //namespace Http
19namespace CodeGuruSecurity
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_CODEGURUSECURITY_API ListFindingsMetricsRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "ListFindingsMetrics"; }
36
37 AWS_CODEGURUSECURITY_API Aws::String SerializePayload() const override;
38
39 AWS_CODEGURUSECURITY_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
40
41
43
47 inline const Aws::Utils::DateTime& GetEndDate() const { return m_endDate; }
48 inline bool EndDateHasBeenSet() const { return m_endDateHasBeenSet; }
49 template<typename EndDateT = Aws::Utils::DateTime>
50 void SetEndDate(EndDateT&& value) { m_endDateHasBeenSet = true; m_endDate = std::forward<EndDateT>(value); }
51 template<typename EndDateT = Aws::Utils::DateTime>
52 ListFindingsMetricsRequest& WithEndDate(EndDateT&& value) { SetEndDate(std::forward<EndDateT>(value)); return *this;}
54
56
63 inline int GetMaxResults() const { return m_maxResults; }
64 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
65 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
66 inline ListFindingsMetricsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
68
70
76 inline const Aws::String& GetNextToken() const { return m_nextToken; }
77 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
78 template<typename NextTokenT = Aws::String>
79 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
80 template<typename NextTokenT = Aws::String>
81 ListFindingsMetricsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
83
85
89 inline const Aws::Utils::DateTime& GetStartDate() const { return m_startDate; }
90 inline bool StartDateHasBeenSet() const { return m_startDateHasBeenSet; }
91 template<typename StartDateT = Aws::Utils::DateTime>
92 void SetStartDate(StartDateT&& value) { m_startDateHasBeenSet = true; m_startDate = std::forward<StartDateT>(value); }
93 template<typename StartDateT = Aws::Utils::DateTime>
94 ListFindingsMetricsRequest& WithStartDate(StartDateT&& value) { SetStartDate(std::forward<StartDateT>(value)); return *this;}
96 private:
97
98 Aws::Utils::DateTime m_endDate{};
99 bool m_endDateHasBeenSet = false;
100
101 int m_maxResults{0};
102 bool m_maxResultsHasBeenSet = false;
103
104 Aws::String m_nextToken;
105 bool m_nextTokenHasBeenSet = false;
106
107 Aws::Utils::DateTime m_startDate{};
108 bool m_startDateHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace CodeGuruSecurity
113} // namespace Aws
ListFindingsMetricsRequest & WithEndDate(EndDateT &&value)
ListFindingsMetricsRequest & WithNextToken(NextTokenT &&value)
ListFindingsMetricsRequest & WithStartDate(StartDateT &&value)
AWS_CODEGURUSECURITY_API Aws::String SerializePayload() const override
AWS_CODEGURUSECURITY_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
AWS_CODEGURUSECURITY_API ListFindingsMetricsRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String