AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
ListAssessmentsRequest.h
1
6#pragma once
7#include <aws/auditmanager/AuditManagerRequest.h>
8#include <aws/auditmanager/AuditManager_EXPORTS.h>
9#include <aws/auditmanager/model/AssessmentStatus.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Http {
16class URI;
17} // namespace Http
18namespace AuditManager {
19namespace Model {
20
24 public:
25 AWS_AUDITMANAGER_API ListAssessmentsRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "ListAssessments"; }
32
33 AWS_AUDITMANAGER_API Aws::String SerializePayload() const override;
34
35 AWS_AUDITMANAGER_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
36
38
41 inline AssessmentStatus GetStatus() const { return m_status; }
42 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
43 inline void SetStatus(AssessmentStatus value) {
44 m_statusHasBeenSet = true;
45 m_status = value;
46 }
48 SetStatus(value);
49 return *this;
50 }
52
54
57 inline const Aws::String& GetNextToken() const { return m_nextToken; }
58 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
59 template <typename NextTokenT = Aws::String>
60 void SetNextToken(NextTokenT&& value) {
61 m_nextTokenHasBeenSet = true;
62 m_nextToken = std::forward<NextTokenT>(value);
63 }
64 template <typename NextTokenT = Aws::String>
66 SetNextToken(std::forward<NextTokenT>(value));
67 return *this;
68 }
70
72
76 inline int GetMaxResults() const { return m_maxResults; }
77 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
78 inline void SetMaxResults(int value) {
79 m_maxResultsHasBeenSet = true;
80 m_maxResults = value;
81 }
83 SetMaxResults(value);
84 return *this;
85 }
87 private:
89
90 Aws::String m_nextToken;
91
92 int m_maxResults{0};
93 bool m_statusHasBeenSet = false;
94 bool m_nextTokenHasBeenSet = false;
95 bool m_maxResultsHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace AuditManager
100} // namespace Aws
virtual const char * GetServiceRequestName() const override
AWS_AUDITMANAGER_API ListAssessmentsRequest()=default
ListAssessmentsRequest & WithMaxResults(int value)
ListAssessmentsRequest & WithStatus(AssessmentStatus value)
AWS_AUDITMANAGER_API Aws::String SerializePayload() const override
AWS_AUDITMANAGER_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
ListAssessmentsRequest & WithNextToken(NextTokenT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String