AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
CreateArchiveRequest.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
11#include <utility>
12
13namespace Aws {
14namespace CloudWatchEvents {
15namespace Model {
16
20 public:
21 AWS_CLOUDWATCHEVENTS_API CreateArchiveRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "CreateArchive"; }
28
29 AWS_CLOUDWATCHEVENTS_API Aws::String SerializePayload() const override;
30
31 AWS_CLOUDWATCHEVENTS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
32
34
37 inline const Aws::String& GetArchiveName() const { return m_archiveName; }
38 inline bool ArchiveNameHasBeenSet() const { return m_archiveNameHasBeenSet; }
39 template <typename ArchiveNameT = Aws::String>
40 void SetArchiveName(ArchiveNameT&& value) {
41 m_archiveNameHasBeenSet = true;
42 m_archiveName = std::forward<ArchiveNameT>(value);
43 }
44 template <typename ArchiveNameT = Aws::String>
45 CreateArchiveRequest& WithArchiveName(ArchiveNameT&& value) {
46 SetArchiveName(std::forward<ArchiveNameT>(value));
47 return *this;
48 }
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) {
59 m_eventSourceArnHasBeenSet = true;
60 m_eventSourceArn = std::forward<EventSourceArnT>(value);
61 }
62 template <typename EventSourceArnT = Aws::String>
63 CreateArchiveRequest& WithEventSourceArn(EventSourceArnT&& value) {
64 SetEventSourceArn(std::forward<EventSourceArnT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::String& GetDescription() const { return m_description; }
74 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
75 template <typename DescriptionT = Aws::String>
76 void SetDescription(DescriptionT&& value) {
77 m_descriptionHasBeenSet = true;
78 m_description = std::forward<DescriptionT>(value);
79 }
80 template <typename DescriptionT = Aws::String>
81 CreateArchiveRequest& WithDescription(DescriptionT&& value) {
82 SetDescription(std::forward<DescriptionT>(value));
83 return *this;
84 }
86
88
91 inline const Aws::String& GetEventPattern() const { return m_eventPattern; }
92 inline bool EventPatternHasBeenSet() const { return m_eventPatternHasBeenSet; }
93 template <typename EventPatternT = Aws::String>
94 void SetEventPattern(EventPatternT&& value) {
95 m_eventPatternHasBeenSet = true;
96 m_eventPattern = std::forward<EventPatternT>(value);
97 }
98 template <typename EventPatternT = Aws::String>
99 CreateArchiveRequest& WithEventPattern(EventPatternT&& value) {
100 SetEventPattern(std::forward<EventPatternT>(value));
101 return *this;
102 }
104
106
110 inline int GetRetentionDays() const { return m_retentionDays; }
111 inline bool RetentionDaysHasBeenSet() const { return m_retentionDaysHasBeenSet; }
112 inline void SetRetentionDays(int value) {
113 m_retentionDaysHasBeenSet = true;
114 m_retentionDays = value;
115 }
117 SetRetentionDays(value);
118 return *this;
119 }
121 private:
122 Aws::String m_archiveName;
123
124 Aws::String m_eventSourceArn;
125
126 Aws::String m_description;
127
128 Aws::String m_eventPattern;
129
130 int m_retentionDays{0};
131 bool m_archiveNameHasBeenSet = false;
132 bool m_eventSourceArnHasBeenSet = false;
133 bool m_descriptionHasBeenSet = false;
134 bool m_eventPatternHasBeenSet = false;
135 bool m_retentionDaysHasBeenSet = false;
136};
137
138} // namespace Model
139} // namespace CloudWatchEvents
140} // namespace Aws
AWS_CLOUDWATCHEVENTS_API CreateArchiveRequest()=default
CreateArchiveRequest & WithEventPattern(EventPatternT &&value)
CreateArchiveRequest & WithArchiveName(ArchiveNameT &&value)
AWS_CLOUDWATCHEVENTS_API Aws::String SerializePayload() const override
CreateArchiveRequest & WithDescription(DescriptionT &&value)
AWS_CLOUDWATCHEVENTS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
CreateArchiveRequest & WithEventSourceArn(EventSourceArnT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String