AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateArchiveRequest.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 <utility>
11
12namespace Aws
13{
14namespace CloudWatchEvents
15{
16namespace Model
17{
18
22 {
23 public:
24 AWS_CLOUDWATCHEVENTS_API CreateArchiveRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateArchive"; }
31
32 AWS_CLOUDWATCHEVENTS_API Aws::String SerializePayload() const override;
33
34 AWS_CLOUDWATCHEVENTS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35
36
38
41 inline const Aws::String& GetArchiveName() const { return m_archiveName; }
42 inline bool ArchiveNameHasBeenSet() const { return m_archiveNameHasBeenSet; }
43 template<typename ArchiveNameT = Aws::String>
44 void SetArchiveName(ArchiveNameT&& value) { m_archiveNameHasBeenSet = true; m_archiveName = std::forward<ArchiveNameT>(value); }
45 template<typename ArchiveNameT = Aws::String>
46 CreateArchiveRequest& WithArchiveName(ArchiveNameT&& value) { SetArchiveName(std::forward<ArchiveNameT>(value)); return *this;}
48
50
53 inline const Aws::String& GetEventSourceArn() const { return m_eventSourceArn; }
54 inline bool EventSourceArnHasBeenSet() const { return m_eventSourceArnHasBeenSet; }
55 template<typename EventSourceArnT = Aws::String>
56 void SetEventSourceArn(EventSourceArnT&& value) { m_eventSourceArnHasBeenSet = true; m_eventSourceArn = std::forward<EventSourceArnT>(value); }
57 template<typename EventSourceArnT = Aws::String>
58 CreateArchiveRequest& WithEventSourceArn(EventSourceArnT&& value) { SetEventSourceArn(std::forward<EventSourceArnT>(value)); return *this;}
60
62
65 inline const Aws::String& GetDescription() const { return m_description; }
66 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
67 template<typename DescriptionT = Aws::String>
68 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
69 template<typename DescriptionT = Aws::String>
70 CreateArchiveRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
72
74
77 inline const Aws::String& GetEventPattern() const { return m_eventPattern; }
78 inline bool EventPatternHasBeenSet() const { return m_eventPatternHasBeenSet; }
79 template<typename EventPatternT = Aws::String>
80 void SetEventPattern(EventPatternT&& value) { m_eventPatternHasBeenSet = true; m_eventPattern = std::forward<EventPatternT>(value); }
81 template<typename EventPatternT = Aws::String>
82 CreateArchiveRequest& WithEventPattern(EventPatternT&& value) { SetEventPattern(std::forward<EventPatternT>(value)); return *this;}
84
86
90 inline int GetRetentionDays() const { return m_retentionDays; }
91 inline bool RetentionDaysHasBeenSet() const { return m_retentionDaysHasBeenSet; }
92 inline void SetRetentionDays(int value) { m_retentionDaysHasBeenSet = true; m_retentionDays = value; }
93 inline CreateArchiveRequest& WithRetentionDays(int value) { SetRetentionDays(value); return *this;}
95 private:
96
97 Aws::String m_archiveName;
98 bool m_archiveNameHasBeenSet = false;
99
100 Aws::String m_eventSourceArn;
101 bool m_eventSourceArnHasBeenSet = false;
102
103 Aws::String m_description;
104 bool m_descriptionHasBeenSet = false;
105
106 Aws::String m_eventPattern;
107 bool m_eventPatternHasBeenSet = false;
108
109 int m_retentionDays{0};
110 bool m_retentionDaysHasBeenSet = false;
111 };
112
113} // namespace Model
114} // namespace CloudWatchEvents
115} // 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