AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ListArchivesRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/eventbridge/EventBridgeRequest.h>
9#include <aws/eventbridge/EventBridge_EXPORTS.h>
10#include <aws/eventbridge/model/ArchiveState.h>
11
12#include <utility>
13
14namespace Aws {
15namespace EventBridge {
16namespace Model {
17
21 public:
22 AWS_EVENTBRIDGE_API ListArchivesRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "ListArchives"; }
29
30 AWS_EVENTBRIDGE_API Aws::String SerializePayload() const override;
31
32 AWS_EVENTBRIDGE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
33
35
39 inline const Aws::String& GetNamePrefix() const { return m_namePrefix; }
40 inline bool NamePrefixHasBeenSet() const { return m_namePrefixHasBeenSet; }
41 template <typename NamePrefixT = Aws::String>
42 void SetNamePrefix(NamePrefixT&& value) {
43 m_namePrefixHasBeenSet = true;
44 m_namePrefix = std::forward<NamePrefixT>(value);
45 }
46 template <typename NamePrefixT = Aws::String>
47 ListArchivesRequest& WithNamePrefix(NamePrefixT&& value) {
48 SetNamePrefix(std::forward<NamePrefixT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetEventSourceArn() const { return m_eventSourceArn; }
58 inline bool EventSourceArnHasBeenSet() const { return m_eventSourceArnHasBeenSet; }
59 template <typename EventSourceArnT = Aws::String>
60 void SetEventSourceArn(EventSourceArnT&& value) {
61 m_eventSourceArnHasBeenSet = true;
62 m_eventSourceArn = std::forward<EventSourceArnT>(value);
63 }
64 template <typename EventSourceArnT = Aws::String>
65 ListArchivesRequest& WithEventSourceArn(EventSourceArnT&& value) {
66 SetEventSourceArn(std::forward<EventSourceArnT>(value));
67 return *this;
68 }
70
72
75 inline ArchiveState GetState() const { return m_state; }
76 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
77 inline void SetState(ArchiveState value) {
78 m_stateHasBeenSet = true;
79 m_state = value;
80 }
82 SetState(value);
83 return *this;
84 }
86
88
96 inline const Aws::String& GetNextToken() const { return m_nextToken; }
97 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
98 template <typename NextTokenT = Aws::String>
99 void SetNextToken(NextTokenT&& value) {
100 m_nextTokenHasBeenSet = true;
101 m_nextToken = std::forward<NextTokenT>(value);
102 }
103 template <typename NextTokenT = Aws::String>
104 ListArchivesRequest& WithNextToken(NextTokenT&& value) {
105 SetNextToken(std::forward<NextTokenT>(value));
106 return *this;
107 }
109
111
114 inline int GetLimit() const { return m_limit; }
115 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
116 inline void SetLimit(int value) {
117 m_limitHasBeenSet = true;
118 m_limit = value;
119 }
120 inline ListArchivesRequest& WithLimit(int value) {
121 SetLimit(value);
122 return *this;
123 }
125 private:
126 Aws::String m_namePrefix;
127
128 Aws::String m_eventSourceArn;
129
131
132 Aws::String m_nextToken;
133
134 int m_limit{0};
135 bool m_namePrefixHasBeenSet = false;
136 bool m_eventSourceArnHasBeenSet = false;
137 bool m_stateHasBeenSet = false;
138 bool m_nextTokenHasBeenSet = false;
139 bool m_limitHasBeenSet = false;
140};
141
142} // namespace Model
143} // namespace EventBridge
144} // namespace Aws
ListArchivesRequest & WithNamePrefix(NamePrefixT &&value)
AWS_EVENTBRIDGE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_EVENTBRIDGE_API ListArchivesRequest()=default
ListArchivesRequest & WithState(ArchiveState value)
virtual const char * GetServiceRequestName() const override
ListArchivesRequest & WithNextToken(NextTokenT &&value)
AWS_EVENTBRIDGE_API Aws::String SerializePayload() const override
ListArchivesRequest & WithEventSourceArn(EventSourceArnT &&value)
void SetEventSourceArn(EventSourceArnT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String