AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
UpdateArchiveRequest.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 UpdateArchiveRequest() = 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 "UpdateArchive"; }
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 UpdateArchiveRequest& WithArchiveName(ArchiveNameT&& value) { SetArchiveName(std::forward<ArchiveNameT>(value)); return *this;}
48
50
53 inline const Aws::String& GetDescription() const { return m_description; }
54 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
55 template<typename DescriptionT = Aws::String>
56 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
57 template<typename DescriptionT = Aws::String>
58 UpdateArchiveRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
60
62
65 inline const Aws::String& GetEventPattern() const { return m_eventPattern; }
66 inline bool EventPatternHasBeenSet() const { return m_eventPatternHasBeenSet; }
67 template<typename EventPatternT = Aws::String>
68 void SetEventPattern(EventPatternT&& value) { m_eventPatternHasBeenSet = true; m_eventPattern = std::forward<EventPatternT>(value); }
69 template<typename EventPatternT = Aws::String>
70 UpdateArchiveRequest& WithEventPattern(EventPatternT&& value) { SetEventPattern(std::forward<EventPatternT>(value)); return *this;}
72
74
77 inline int GetRetentionDays() const { return m_retentionDays; }
78 inline bool RetentionDaysHasBeenSet() const { return m_retentionDaysHasBeenSet; }
79 inline void SetRetentionDays(int value) { m_retentionDaysHasBeenSet = true; m_retentionDays = value; }
80 inline UpdateArchiveRequest& WithRetentionDays(int value) { SetRetentionDays(value); return *this;}
82 private:
83
84 Aws::String m_archiveName;
85 bool m_archiveNameHasBeenSet = false;
86
87 Aws::String m_description;
88 bool m_descriptionHasBeenSet = false;
89
90 Aws::String m_eventPattern;
91 bool m_eventPatternHasBeenSet = false;
92
93 int m_retentionDays{0};
94 bool m_retentionDaysHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace CloudWatchEvents
99} // namespace Aws
AWS_CLOUDWATCHEVENTS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateArchiveRequest & WithDescription(DescriptionT &&value)
AWS_CLOUDWATCHEVENTS_API Aws::String SerializePayload() const override
AWS_CLOUDWATCHEVENTS_API UpdateArchiveRequest()=default
UpdateArchiveRequest & WithEventPattern(EventPatternT &&value)
UpdateArchiveRequest & WithArchiveName(ArchiveNameT &&value)
virtual const char * GetServiceRequestName() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String