AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
ListAssessmentsRequest.h
1
6#pragma once
7#include <aws/assurance/AssuranceRequest.h>
8#include <aws/assurance/Assurance_EXPORTS.h>
9#include <aws/assurance/model/AssessmentFilter.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Assurance {
17namespace Model {
18
22 public:
23 AWS_ASSURANCE_API ListAssessmentsRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "ListAssessments"; }
30
31 AWS_ASSURANCE_API Aws::String SerializePayload() const override;
32
34
36
39 inline const Aws::String& GetEnvironmentArn() const { return m_environmentArn; }
40 inline bool EnvironmentArnHasBeenSet() const { return m_environmentArnHasBeenSet; }
41 template <typename EnvironmentArnT = Aws::String>
42 void SetEnvironmentArn(EnvironmentArnT&& value) {
43 m_environmentArnHasBeenSet = true;
44 m_environmentArn = std::forward<EnvironmentArnT>(value);
45 }
46 template <typename EnvironmentArnT = Aws::String>
47 ListAssessmentsRequest& WithEnvironmentArn(EnvironmentArnT&& value) {
48 SetEnvironmentArn(std::forward<EnvironmentArnT>(value));
49 return *this;
50 }
52
54
58 inline const Aws::String& GetProject() const { return m_project; }
59 inline bool ProjectHasBeenSet() const { return m_projectHasBeenSet; }
60 template <typename ProjectT = Aws::String>
61 void SetProject(ProjectT&& value) {
62 m_projectHasBeenSet = true;
63 m_project = std::forward<ProjectT>(value);
64 }
65 template <typename ProjectT = Aws::String>
67 SetProject(std::forward<ProjectT>(value));
68 return *this;
69 }
71
73
82 inline const Aws::Vector<AssessmentFilter>& GetFilters() const { return m_filters; }
83 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
84 template <typename FiltersT = Aws::Vector<AssessmentFilter>>
85 void SetFilters(FiltersT&& value) {
86 m_filtersHasBeenSet = true;
87 m_filters = std::forward<FiltersT>(value);
88 }
89 template <typename FiltersT = Aws::Vector<AssessmentFilter>>
91 SetFilters(std::forward<FiltersT>(value));
92 return *this;
93 }
94 template <typename FiltersT = AssessmentFilter>
96 m_filtersHasBeenSet = true;
97 m_filters.emplace_back(std::forward<FiltersT>(value));
98 return *this;
99 }
101
103
108 inline int GetMaxResults() const { return m_maxResults; }
109 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
110 inline void SetMaxResults(int value) {
111 m_maxResultsHasBeenSet = true;
112 m_maxResults = value;
113 }
115 SetMaxResults(value);
116 return *this;
117 }
119
121
126 inline const Aws::String& GetNextToken() const { return m_nextToken; }
127 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
128 template <typename NextTokenT = Aws::String>
129 void SetNextToken(NextTokenT&& value) {
130 m_nextTokenHasBeenSet = true;
131 m_nextToken = std::forward<NextTokenT>(value);
132 }
133 template <typename NextTokenT = Aws::String>
135 SetNextToken(std::forward<NextTokenT>(value));
136 return *this;
137 }
139 private:
140 Aws::String m_environmentArn;
141
142 Aws::String m_project;
143
145
146 int m_maxResults{0};
147
148 Aws::String m_nextToken;
149 bool m_environmentArnHasBeenSet = false;
150 bool m_projectHasBeenSet = false;
151 bool m_filtersHasBeenSet = false;
152 bool m_maxResultsHasBeenSet = false;
153 bool m_nextTokenHasBeenSet = false;
154};
155
156} // namespace Model
157} // namespace Assurance
158} // namespace Aws
const Aws::Vector< AssessmentFilter > & GetFilters() const
AWS_ASSURANCE_API Aws::String SerializePayload() const override
AWS_ASSURANCE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ListAssessmentsRequest & WithProject(ProjectT &&value)
AWS_ASSURANCE_API ListAssessmentsRequest()=default
virtual const char * GetServiceRequestName() const override
ListAssessmentsRequest & WithMaxResults(int value)
ListAssessmentsRequest & WithFilters(FiltersT &&value)
ListAssessmentsRequest & AddFilters(FiltersT &&value)
ListAssessmentsRequest & WithNextToken(NextTokenT &&value)
ListAssessmentsRequest & WithEnvironmentArn(EnvironmentArnT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector