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/eventbridge/EventBridge_EXPORTS.h>
8#include <aws/eventbridge/EventBridgeRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace EventBridge
15{
16namespace Model
17{
18
22 {
23 public:
24 AWS_EVENTBRIDGE_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_EVENTBRIDGE_API Aws::String SerializePayload() const override;
33
34 AWS_EVENTBRIDGE_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
84
100 inline const Aws::String& GetKmsKeyIdentifier() const { return m_kmsKeyIdentifier; }
101 inline bool KmsKeyIdentifierHasBeenSet() const { return m_kmsKeyIdentifierHasBeenSet; }
102 template<typename KmsKeyIdentifierT = Aws::String>
103 void SetKmsKeyIdentifier(KmsKeyIdentifierT&& value) { m_kmsKeyIdentifierHasBeenSet = true; m_kmsKeyIdentifier = std::forward<KmsKeyIdentifierT>(value); }
104 template<typename KmsKeyIdentifierT = Aws::String>
105 UpdateArchiveRequest& WithKmsKeyIdentifier(KmsKeyIdentifierT&& value) { SetKmsKeyIdentifier(std::forward<KmsKeyIdentifierT>(value)); return *this;}
107 private:
108
109 Aws::String m_archiveName;
110 bool m_archiveNameHasBeenSet = false;
111
112 Aws::String m_description;
113 bool m_descriptionHasBeenSet = false;
114
115 Aws::String m_eventPattern;
116 bool m_eventPatternHasBeenSet = false;
117
118 int m_retentionDays{0};
119 bool m_retentionDaysHasBeenSet = false;
120
121 Aws::String m_kmsKeyIdentifier;
122 bool m_kmsKeyIdentifierHasBeenSet = false;
123 };
124
125} // namespace Model
126} // namespace EventBridge
127} // namespace Aws
AWS_EVENTBRIDGE_API UpdateArchiveRequest()=default
UpdateArchiveRequest & WithArchiveName(ArchiveNameT &&value)
UpdateArchiveRequest & WithDescription(DescriptionT &&value)
AWS_EVENTBRIDGE_API Aws::String SerializePayload() const override
void SetKmsKeyIdentifier(KmsKeyIdentifierT &&value)
AWS_EVENTBRIDGE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateArchiveRequest & WithKmsKeyIdentifier(KmsKeyIdentifierT &&value)
virtual const char * GetServiceRequestName() const override
UpdateArchiveRequest & WithEventPattern(EventPatternT &&value)
UpdateArchiveRequest & WithRetentionDays(int value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String