AWS SDK for C++

AWS SDK for C++ Version 1.11.817

Loading...
Searching...
No Matches
ListAssertionsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/resiliencehubv2/Resiliencehubv2Request.h>
9#include <aws/resiliencehubv2/Resiliencehubv2_EXPORTS.h>
10#include <aws/resiliencehubv2/model/AssertionSource.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Http {
16class URI;
17} // namespace Http
18namespace resiliencehubv2 {
19namespace Model {
20
24 public:
25 AWS_RESILIENCEHUBV2_API ListAssertionsRequest() = 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 "ListAssertions"; }
32
33 AWS_RESILIENCEHUBV2_API Aws::String SerializePayload() const override;
34
35 AWS_RESILIENCEHUBV2_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
36
38
39 inline const Aws::String& GetServiceArn() const { return m_serviceArn; }
40 inline bool ServiceArnHasBeenSet() const { return m_serviceArnHasBeenSet; }
41 template <typename ServiceArnT = Aws::String>
42 void SetServiceArn(ServiceArnT&& value) {
43 m_serviceArnHasBeenSet = true;
44 m_serviceArn = std::forward<ServiceArnT>(value);
45 }
46 template <typename ServiceArnT = Aws::String>
47 ListAssertionsRequest& WithServiceArn(ServiceArnT&& value) {
48 SetServiceArn(std::forward<ServiceArnT>(value));
49 return *this;
50 }
52
54
57 inline AssertionSource GetSource() const { return m_source; }
58 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
59 inline void SetSource(AssertionSource value) {
60 m_sourceHasBeenSet = true;
61 m_source = value;
62 }
64 SetSource(value);
65 return *this;
66 }
68
70
71 inline int GetMaxResults() const { return m_maxResults; }
72 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
73 inline void SetMaxResults(int value) {
74 m_maxResultsHasBeenSet = true;
75 m_maxResults = value;
76 }
78 SetMaxResults(value);
79 return *this;
80 }
82
84
85 inline const Aws::String& GetNextToken() const { return m_nextToken; }
86 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
87 template <typename NextTokenT = Aws::String>
88 void SetNextToken(NextTokenT&& value) {
89 m_nextTokenHasBeenSet = true;
90 m_nextToken = std::forward<NextTokenT>(value);
91 }
92 template <typename NextTokenT = Aws::String>
93 ListAssertionsRequest& WithNextToken(NextTokenT&& value) {
94 SetNextToken(std::forward<NextTokenT>(value));
95 return *this;
96 }
98 private:
99 Aws::String m_serviceArn;
100
102
103 int m_maxResults{0};
104
105 Aws::String m_nextToken;
106 bool m_serviceArnHasBeenSet = false;
107 bool m_sourceHasBeenSet = false;
108 bool m_maxResultsHasBeenSet = false;
109 bool m_nextTokenHasBeenSet = false;
110};
111
112} // namespace Model
113} // namespace resiliencehubv2
114} // namespace Aws
ListAssertionsRequest & WithNextToken(NextTokenT &&value)
ListAssertionsRequest & WithServiceArn(ServiceArnT &&value)
ListAssertionsRequest & WithSource(AssertionSource value)
AWS_RESILIENCEHUBV2_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
virtual const char * GetServiceRequestName() const override
AWS_RESILIENCEHUBV2_API ListAssertionsRequest()=default
AWS_RESILIENCEHUBV2_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String