AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ListArchivesRequest.h
1
6#pragma once
7#include <aws/events/CloudWatchEvents_EXPORTS.h>
8#include <aws/events/CloudWatchEventsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/events/model/ArchiveState.h>
11#include <utility>
12
13namespace Aws
14{
15namespace CloudWatchEvents
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_CLOUDWATCHEVENTS_API ListArchivesRequest() = 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 "ListArchives"; }
32
33 AWS_CLOUDWATCHEVENTS_API Aws::String SerializePayload() const override;
34
35 AWS_CLOUDWATCHEVENTS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
37
39
43 inline const Aws::String& GetNamePrefix() const { return m_namePrefix; }
44 inline bool NamePrefixHasBeenSet() const { return m_namePrefixHasBeenSet; }
45 template<typename NamePrefixT = Aws::String>
46 void SetNamePrefix(NamePrefixT&& value) { m_namePrefixHasBeenSet = true; m_namePrefix = std::forward<NamePrefixT>(value); }
47 template<typename NamePrefixT = Aws::String>
48 ListArchivesRequest& WithNamePrefix(NamePrefixT&& value) { SetNamePrefix(std::forward<NamePrefixT>(value)); return *this;}
50
52
55 inline const Aws::String& GetEventSourceArn() const { return m_eventSourceArn; }
56 inline bool EventSourceArnHasBeenSet() const { return m_eventSourceArnHasBeenSet; }
57 template<typename EventSourceArnT = Aws::String>
58 void SetEventSourceArn(EventSourceArnT&& value) { m_eventSourceArnHasBeenSet = true; m_eventSourceArn = std::forward<EventSourceArnT>(value); }
59 template<typename EventSourceArnT = Aws::String>
60 ListArchivesRequest& WithEventSourceArn(EventSourceArnT&& value) { SetEventSourceArn(std::forward<EventSourceArnT>(value)); return *this;}
62
64
67 inline ArchiveState GetState() const { return m_state; }
68 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
69 inline void SetState(ArchiveState value) { m_stateHasBeenSet = true; m_state = value; }
70 inline ListArchivesRequest& WithState(ArchiveState value) { SetState(value); return *this;}
72
74
78 inline const Aws::String& GetNextToken() const { return m_nextToken; }
79 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
80 template<typename NextTokenT = Aws::String>
81 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
82 template<typename NextTokenT = Aws::String>
83 ListArchivesRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
85
87
90 inline int GetLimit() const { return m_limit; }
91 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
92 inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
93 inline ListArchivesRequest& WithLimit(int value) { SetLimit(value); return *this;}
95 private:
96
97 Aws::String m_namePrefix;
98 bool m_namePrefixHasBeenSet = false;
99
100 Aws::String m_eventSourceArn;
101 bool m_eventSourceArnHasBeenSet = false;
102
104 bool m_stateHasBeenSet = false;
105
106 Aws::String m_nextToken;
107 bool m_nextTokenHasBeenSet = false;
108
109 int m_limit{0};
110 bool m_limitHasBeenSet = false;
111 };
112
113} // namespace Model
114} // namespace CloudWatchEvents
115} // 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