AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
ListControlsRequest.h
1
6#pragma once
7#include <aws/auditmanager/AuditManagerRequest.h>
8#include <aws/auditmanager/AuditManager_EXPORTS.h>
9#include <aws/auditmanager/model/ControlType.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 ListControlsRequest() = 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 "ListControls"; }
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 ControlType GetControlType() const { return m_controlType; }
42 inline bool ControlTypeHasBeenSet() const { return m_controlTypeHasBeenSet; }
43 inline void SetControlType(ControlType value) {
44 m_controlTypeHasBeenSet = true;
45 m_controlType = value;
46 }
48 SetControlType(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>
65 ListControlsRequest& WithNextToken(NextTokenT&& value) {
66 SetNextToken(std::forward<NextTokenT>(value));
67 return *this;
68 }
70
72
75 inline int GetMaxResults() const { return m_maxResults; }
76 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
77 inline void SetMaxResults(int value) {
78 m_maxResultsHasBeenSet = true;
79 m_maxResults = value;
80 }
82 SetMaxResults(value);
83 return *this;
84 }
86
88
108 inline const Aws::String& GetControlCatalogId() const { return m_controlCatalogId; }
109 inline bool ControlCatalogIdHasBeenSet() const { return m_controlCatalogIdHasBeenSet; }
110 template <typename ControlCatalogIdT = Aws::String>
111 void SetControlCatalogId(ControlCatalogIdT&& value) {
112 m_controlCatalogIdHasBeenSet = true;
113 m_controlCatalogId = std::forward<ControlCatalogIdT>(value);
114 }
115 template <typename ControlCatalogIdT = Aws::String>
116 ListControlsRequest& WithControlCatalogId(ControlCatalogIdT&& value) {
117 SetControlCatalogId(std::forward<ControlCatalogIdT>(value));
118 return *this;
119 }
121 private:
122 ControlType m_controlType{ControlType::NOT_SET};
123
124 Aws::String m_nextToken;
125
126 int m_maxResults{0};
127
128 Aws::String m_controlCatalogId;
129 bool m_controlTypeHasBeenSet = false;
130 bool m_nextTokenHasBeenSet = false;
131 bool m_maxResultsHasBeenSet = false;
132 bool m_controlCatalogIdHasBeenSet = false;
133};
134
135} // namespace Model
136} // namespace AuditManager
137} // namespace Aws
ListControlsRequest & WithControlCatalogId(ControlCatalogIdT &&value)
virtual const char * GetServiceRequestName() const override
ListControlsRequest & WithNextToken(NextTokenT &&value)
ListControlsRequest & WithControlType(ControlType value)
AWS_AUDITMANAGER_API ListControlsRequest()=default
AWS_AUDITMANAGER_API Aws::String SerializePayload() const override
AWS_AUDITMANAGER_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
void SetControlCatalogId(ControlCatalogIdT &&value)
ListControlsRequest & WithMaxResults(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String