AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ListAssessmentsRequest.h
1
6#pragma once
7#include <aws/auditmanager/AuditManager_EXPORTS.h>
8#include <aws/auditmanager/AuditManagerRequest.h>
9#include <aws/auditmanager/model/AssessmentStatus.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 AuditManager
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_AUDITMANAGER_API ListAssessmentsRequest();
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 "ListAssessments"; }
36
37 AWS_AUDITMANAGER_API Aws::String SerializePayload() const override;
38
39 AWS_AUDITMANAGER_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
40
41
43
46 inline const AssessmentStatus& GetStatus() const{ return m_status; }
47 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
48 inline void SetStatus(const AssessmentStatus& value) { m_statusHasBeenSet = true; m_status = value; }
49 inline void SetStatus(AssessmentStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
50 inline ListAssessmentsRequest& WithStatus(const AssessmentStatus& value) { SetStatus(value); return *this;}
51 inline ListAssessmentsRequest& WithStatus(AssessmentStatus&& value) { SetStatus(std::move(value)); return *this;}
53
55
58 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
59 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
60 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
61 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
62 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
63 inline ListAssessmentsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
64 inline ListAssessmentsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
65 inline ListAssessmentsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
67
69
73 inline int GetMaxResults() const{ return m_maxResults; }
74 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
75 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
76 inline ListAssessmentsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
78 private:
79
80 AssessmentStatus m_status;
81 bool m_statusHasBeenSet = false;
82
83 Aws::String m_nextToken;
84 bool m_nextTokenHasBeenSet = false;
85
86 int m_maxResults;
87 bool m_maxResultsHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace AuditManager
92} // namespace Aws
virtual const char * GetServiceRequestName() const override
ListAssessmentsRequest & WithStatus(const AssessmentStatus &value)
ListAssessmentsRequest & WithStatus(AssessmentStatus &&value)
ListAssessmentsRequest & WithNextToken(const char *value)
ListAssessmentsRequest & WithMaxResults(int value)
ListAssessmentsRequest & WithNextToken(const Aws::String &value)
AWS_AUDITMANAGER_API Aws::String SerializePayload() const override
AWS_AUDITMANAGER_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
ListAssessmentsRequest & WithNextToken(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String