AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetArchiveName(const Aws::String& value) { m_archiveNameHasBeenSet = true; m_archiveName = value; }
44 inline void SetArchiveName(Aws::String&& value) { m_archiveNameHasBeenSet = true; m_archiveName = std::move(value); }
45 inline void SetArchiveName(const char* value) { m_archiveNameHasBeenSet = true; m_archiveName.assign(value); }
46 inline CreateArchiveRequest& WithArchiveName(const Aws::String& value) { SetArchiveName(value); return *this;}
47 inline CreateArchiveRequest& WithArchiveName(Aws::String&& value) { SetArchiveName(std::move(value)); return *this;}
48 inline CreateArchiveRequest& WithArchiveName(const char* value) { SetArchiveName(value); return *this;}
50
52
55 inline const Aws::String& GetEventSourceArn() const{ return m_eventSourceArn; }
56 inline bool EventSourceArnHasBeenSet() const { return m_eventSourceArnHasBeenSet; }
57 inline void SetEventSourceArn(const Aws::String& value) { m_eventSourceArnHasBeenSet = true; m_eventSourceArn = value; }
58 inline void SetEventSourceArn(Aws::String&& value) { m_eventSourceArnHasBeenSet = true; m_eventSourceArn = std::move(value); }
59 inline void SetEventSourceArn(const char* value) { m_eventSourceArnHasBeenSet = true; m_eventSourceArn.assign(value); }
60 inline CreateArchiveRequest& WithEventSourceArn(const Aws::String& value) { SetEventSourceArn(value); return *this;}
61 inline CreateArchiveRequest& WithEventSourceArn(Aws::String&& value) { SetEventSourceArn(std::move(value)); return *this;}
62 inline CreateArchiveRequest& WithEventSourceArn(const char* value) { SetEventSourceArn(value); return *this;}
64
66
69 inline const Aws::String& GetDescription() const{ return m_description; }
70 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
71 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
72 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
73 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
74 inline CreateArchiveRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
75 inline CreateArchiveRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
76 inline CreateArchiveRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
78
80
83 inline const Aws::String& GetEventPattern() const{ return m_eventPattern; }
84 inline bool EventPatternHasBeenSet() const { return m_eventPatternHasBeenSet; }
85 inline void SetEventPattern(const Aws::String& value) { m_eventPatternHasBeenSet = true; m_eventPattern = value; }
86 inline void SetEventPattern(Aws::String&& value) { m_eventPatternHasBeenSet = true; m_eventPattern = std::move(value); }
87 inline void SetEventPattern(const char* value) { m_eventPatternHasBeenSet = true; m_eventPattern.assign(value); }
88 inline CreateArchiveRequest& WithEventPattern(const Aws::String& value) { SetEventPattern(value); return *this;}
89 inline CreateArchiveRequest& WithEventPattern(Aws::String&& value) { SetEventPattern(std::move(value)); return *this;}
90 inline CreateArchiveRequest& WithEventPattern(const char* value) { SetEventPattern(value); return *this;}
92
94
98 inline int GetRetentionDays() const{ return m_retentionDays; }
99 inline bool RetentionDaysHasBeenSet() const { return m_retentionDaysHasBeenSet; }
100 inline void SetRetentionDays(int value) { m_retentionDaysHasBeenSet = true; m_retentionDays = value; }
101 inline CreateArchiveRequest& WithRetentionDays(int value) { SetRetentionDays(value); return *this;}
103 private:
104
105 Aws::String m_archiveName;
106 bool m_archiveNameHasBeenSet = false;
107
108 Aws::String m_eventSourceArn;
109 bool m_eventSourceArnHasBeenSet = false;
110
111 Aws::String m_description;
112 bool m_descriptionHasBeenSet = false;
113
114 Aws::String m_eventPattern;
115 bool m_eventPatternHasBeenSet = false;
116
117 int m_retentionDays;
118 bool m_retentionDaysHasBeenSet = false;
119 };
120
121} // namespace Model
122} // namespace CloudWatchEvents
123} // namespace Aws
CreateArchiveRequest & WithDescription(const char *value)
AWS_CLOUDWATCHEVENTS_API Aws::String SerializePayload() const override
CreateArchiveRequest & WithEventSourceArn(const Aws::String &value)
CreateArchiveRequest & WithDescription(const Aws::String &value)
CreateArchiveRequest & WithArchiveName(const char *value)
CreateArchiveRequest & WithArchiveName(const Aws::String &value)
AWS_CLOUDWATCHEVENTS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateArchiveRequest & WithEventPattern(Aws::String &&value)
CreateArchiveRequest & WithEventPattern(const Aws::String &value)
CreateArchiveRequest & WithArchiveName(Aws::String &&value)
CreateArchiveRequest & WithEventSourceArn(const char *value)
virtual const char * GetServiceRequestName() const override
CreateArchiveRequest & WithEventSourceArn(Aws::String &&value)
CreateArchiveRequest & WithDescription(Aws::String &&value)
CreateArchiveRequest & WithEventPattern(const char *value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String