AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
UpdateArchiveRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/mailmanager/MailManagerRequest.h>
9#include <aws/mailmanager/MailManager_EXPORTS.h>
10#include <aws/mailmanager/model/ArchiveRetention.h>
11
12#include <utility>
13
14namespace Aws {
15namespace MailManager {
16namespace Model {
17
25 public:
26 AWS_MAILMANAGER_API UpdateArchiveRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "UpdateArchive"; }
33
34 AWS_MAILMANAGER_API Aws::String SerializePayload() const override;
35
36 AWS_MAILMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
39
42 inline const Aws::String& GetArchiveId() const { return m_archiveId; }
43 inline bool ArchiveIdHasBeenSet() const { return m_archiveIdHasBeenSet; }
44 template <typename ArchiveIdT = Aws::String>
45 void SetArchiveId(ArchiveIdT&& value) {
46 m_archiveIdHasBeenSet = true;
47 m_archiveId = std::forward<ArchiveIdT>(value);
48 }
49 template <typename ArchiveIdT = Aws::String>
50 UpdateArchiveRequest& WithArchiveId(ArchiveIdT&& value) {
51 SetArchiveId(std::forward<ArchiveIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetArchiveName() const { return m_archiveName; }
61 inline bool ArchiveNameHasBeenSet() const { return m_archiveNameHasBeenSet; }
62 template <typename ArchiveNameT = Aws::String>
63 void SetArchiveName(ArchiveNameT&& value) {
64 m_archiveNameHasBeenSet = true;
65 m_archiveName = std::forward<ArchiveNameT>(value);
66 }
67 template <typename ArchiveNameT = Aws::String>
68 UpdateArchiveRequest& WithArchiveName(ArchiveNameT&& value) {
69 SetArchiveName(std::forward<ArchiveNameT>(value));
70 return *this;
71 }
73
75
78 inline const ArchiveRetention& GetRetention() const { return m_retention; }
79 inline bool RetentionHasBeenSet() const { return m_retentionHasBeenSet; }
80 template <typename RetentionT = ArchiveRetention>
81 void SetRetention(RetentionT&& value) {
82 m_retentionHasBeenSet = true;
83 m_retention = std::forward<RetentionT>(value);
84 }
85 template <typename RetentionT = ArchiveRetention>
86 UpdateArchiveRequest& WithRetention(RetentionT&& value) {
87 SetRetention(std::forward<RetentionT>(value));
88 return *this;
89 }
91 private:
92 Aws::String m_archiveId;
93
94 Aws::String m_archiveName;
95
96 ArchiveRetention m_retention;
97 bool m_archiveIdHasBeenSet = false;
98 bool m_archiveNameHasBeenSet = false;
99 bool m_retentionHasBeenSet = false;
100};
101
102} // namespace Model
103} // namespace MailManager
104} // namespace Aws
AWS_MAILMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const ArchiveRetention & GetRetention() const
virtual const char * GetServiceRequestName() const override
AWS_MAILMANAGER_API Aws::String SerializePayload() const override
AWS_MAILMANAGER_API UpdateArchiveRequest()=default
UpdateArchiveRequest & WithRetention(RetentionT &&value)
UpdateArchiveRequest & WithArchiveId(ArchiveIdT &&value)
UpdateArchiveRequest & WithArchiveName(ArchiveNameT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String