AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
ListArchivesRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/events/CloudWatchEventsRequest.h>
9#include <aws/events/CloudWatchEvents_EXPORTS.h>
10#include <aws/events/model/ArchiveState.h>
11
12#include <utility>
13
14namespace Aws {
15namespace CloudWatchEvents {
16namespace Model {
17
21 public:
22 AWS_CLOUDWATCHEVENTS_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_CLOUDWATCHEVENTS_API Aws::String SerializePayload() const override;
31
32 AWS_CLOUDWATCHEVENTS_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
92 inline const Aws::String& GetNextToken() const { return m_nextToken; }
93 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
94 template <typename NextTokenT = Aws::String>
95 void SetNextToken(NextTokenT&& value) {
96 m_nextTokenHasBeenSet = true;
97 m_nextToken = std::forward<NextTokenT>(value);
98 }
99 template <typename NextTokenT = Aws::String>
100 ListArchivesRequest& WithNextToken(NextTokenT&& value) {
101 SetNextToken(std::forward<NextTokenT>(value));
102 return *this;
103 }
105
107
110 inline int GetLimit() const { return m_limit; }
111 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
112 inline void SetLimit(int value) {
113 m_limitHasBeenSet = true;
114 m_limit = value;
115 }
116 inline ListArchivesRequest& WithLimit(int value) {
117 SetLimit(value);
118 return *this;
119 }
121 private:
122 Aws::String m_namePrefix;
123
124 Aws::String m_eventSourceArn;
125
127
128 Aws::String m_nextToken;
129
130 int m_limit{0};
131 bool m_namePrefixHasBeenSet = false;
132 bool m_eventSourceArnHasBeenSet = false;
133 bool m_stateHasBeenSet = false;
134 bool m_nextTokenHasBeenSet = false;
135 bool m_limitHasBeenSet = false;
136};
137
138} // namespace Model
139} // namespace CloudWatchEvents
140} // namespace Aws
AWS_CLOUDWATCHEVENTS_API Aws::String SerializePayload() const override
ListArchivesRequest & WithNextToken(NextTokenT &&value)
virtual const char * GetServiceRequestName() const override
AWS_CLOUDWATCHEVENTS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_CLOUDWATCHEVENTS_API ListArchivesRequest()=default
ListArchivesRequest & WithState(ArchiveState value)
ListArchivesRequest & WithNamePrefix(NamePrefixT &&value)
ListArchivesRequest & WithEventSourceArn(EventSourceArnT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String