AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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