AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
ListAppAssessmentsRequest.h
1
6#pragma once
7#include <aws/resiliencehub/ResilienceHub_EXPORTS.h>
8#include <aws/resiliencehub/ResilienceHubRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/resiliencehub/model/ComplianceStatus.h>
12#include <aws/resiliencehub/model/AssessmentInvoker.h>
13#include <aws/resiliencehub/model/AssessmentStatus.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Http
19{
20 class URI;
21} //namespace Http
22namespace ResilienceHub
23{
24namespace Model
25{
26
30 {
31 public:
32 AWS_RESILIENCEHUB_API ListAppAssessmentsRequest() = default;
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "ListAppAssessments"; }
39
40 AWS_RESILIENCEHUB_API Aws::String SerializePayload() const override;
41
42 AWS_RESILIENCEHUB_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
43
44
46
55 inline const Aws::String& GetAppArn() const { return m_appArn; }
56 inline bool AppArnHasBeenSet() const { return m_appArnHasBeenSet; }
57 template<typename AppArnT = Aws::String>
58 void SetAppArn(AppArnT&& value) { m_appArnHasBeenSet = true; m_appArn = std::forward<AppArnT>(value); }
59 template<typename AppArnT = Aws::String>
60 ListAppAssessmentsRequest& WithAppArn(AppArnT&& value) { SetAppArn(std::forward<AppArnT>(value)); return *this;}
62
64
67 inline const Aws::String& GetAssessmentName() const { return m_assessmentName; }
68 inline bool AssessmentNameHasBeenSet() const { return m_assessmentNameHasBeenSet; }
69 template<typename AssessmentNameT = Aws::String>
70 void SetAssessmentName(AssessmentNameT&& value) { m_assessmentNameHasBeenSet = true; m_assessmentName = std::forward<AssessmentNameT>(value); }
71 template<typename AssessmentNameT = Aws::String>
72 ListAppAssessmentsRequest& WithAssessmentName(AssessmentNameT&& value) { SetAssessmentName(std::forward<AssessmentNameT>(value)); return *this;}
74
76
79 inline const Aws::Vector<AssessmentStatus>& GetAssessmentStatus() const { return m_assessmentStatus; }
80 inline bool AssessmentStatusHasBeenSet() const { return m_assessmentStatusHasBeenSet; }
81 template<typename AssessmentStatusT = Aws::Vector<AssessmentStatus>>
82 void SetAssessmentStatus(AssessmentStatusT&& value) { m_assessmentStatusHasBeenSet = true; m_assessmentStatus = std::forward<AssessmentStatusT>(value); }
83 template<typename AssessmentStatusT = Aws::Vector<AssessmentStatus>>
84 ListAppAssessmentsRequest& WithAssessmentStatus(AssessmentStatusT&& value) { SetAssessmentStatus(std::forward<AssessmentStatusT>(value)); return *this;}
85 inline ListAppAssessmentsRequest& AddAssessmentStatus(AssessmentStatus value) { m_assessmentStatusHasBeenSet = true; m_assessmentStatus.push_back(value); return *this; }
87
89
92 inline ComplianceStatus GetComplianceStatus() const { return m_complianceStatus; }
93 inline bool ComplianceStatusHasBeenSet() const { return m_complianceStatusHasBeenSet; }
94 inline void SetComplianceStatus(ComplianceStatus value) { m_complianceStatusHasBeenSet = true; m_complianceStatus = value; }
97
99
103 inline AssessmentInvoker GetInvoker() const { return m_invoker; }
104 inline bool InvokerHasBeenSet() const { return m_invokerHasBeenSet; }
105 inline void SetInvoker(AssessmentInvoker value) { m_invokerHasBeenSet = true; m_invoker = value; }
108
110
115 inline int GetMaxResults() const { return m_maxResults; }
116 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
117 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
118 inline ListAppAssessmentsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
120
122
125 inline const Aws::String& GetNextToken() const { return m_nextToken; }
126 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
127 template<typename NextTokenT = Aws::String>
128 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
129 template<typename NextTokenT = Aws::String>
130 ListAppAssessmentsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
132
134
138 inline bool GetReverseOrder() const { return m_reverseOrder; }
139 inline bool ReverseOrderHasBeenSet() const { return m_reverseOrderHasBeenSet; }
140 inline void SetReverseOrder(bool value) { m_reverseOrderHasBeenSet = true; m_reverseOrder = value; }
141 inline ListAppAssessmentsRequest& WithReverseOrder(bool value) { SetReverseOrder(value); return *this;}
143 private:
144
145 Aws::String m_appArn;
146 bool m_appArnHasBeenSet = false;
147
148 Aws::String m_assessmentName;
149 bool m_assessmentNameHasBeenSet = false;
150
151 Aws::Vector<AssessmentStatus> m_assessmentStatus;
152 bool m_assessmentStatusHasBeenSet = false;
153
155 bool m_complianceStatusHasBeenSet = false;
156
158 bool m_invokerHasBeenSet = false;
159
160 int m_maxResults{0};
161 bool m_maxResultsHasBeenSet = false;
162
163 Aws::String m_nextToken;
164 bool m_nextTokenHasBeenSet = false;
165
166 bool m_reverseOrder{false};
167 bool m_reverseOrderHasBeenSet = false;
168 };
169
170} // namespace Model
171} // namespace ResilienceHub
172} // namespace Aws
ListAppAssessmentsRequest & AddAssessmentStatus(AssessmentStatus value)
ListAppAssessmentsRequest & WithAssessmentName(AssessmentNameT &&value)
AWS_RESILIENCEHUB_API Aws::String SerializePayload() const override
AWS_RESILIENCEHUB_API ListAppAssessmentsRequest()=default
ListAppAssessmentsRequest & WithNextToken(NextTokenT &&value)
AWS_RESILIENCEHUB_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
ListAppAssessmentsRequest & WithInvoker(AssessmentInvoker value)
const Aws::Vector< AssessmentStatus > & GetAssessmentStatus() const
ListAppAssessmentsRequest & WithAppArn(AppArnT &&value)
ListAppAssessmentsRequest & WithComplianceStatus(ComplianceStatus value)
virtual const char * GetServiceRequestName() const override
ListAppAssessmentsRequest & WithAssessmentStatus(AssessmentStatusT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector