AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetArchiveId(const Aws::String& value) { m_archiveIdHasBeenSet = true; m_archiveId = value; }
49 inline void SetArchiveId(Aws::String&& value) { m_archiveIdHasBeenSet = true; m_archiveId = std::move(value); }
50 inline void SetArchiveId(const char* value) { m_archiveIdHasBeenSet = true; m_archiveId.assign(value); }
51 inline UpdateArchiveRequest& WithArchiveId(const Aws::String& value) { SetArchiveId(value); return *this;}
52 inline UpdateArchiveRequest& WithArchiveId(Aws::String&& value) { SetArchiveId(std::move(value)); return *this;}
53 inline UpdateArchiveRequest& WithArchiveId(const char* value) { SetArchiveId(value); return *this;}
55
57
60 inline const Aws::String& GetArchiveName() const{ return m_archiveName; }
61 inline bool ArchiveNameHasBeenSet() const { return m_archiveNameHasBeenSet; }
62 inline void SetArchiveName(const Aws::String& value) { m_archiveNameHasBeenSet = true; m_archiveName = value; }
63 inline void SetArchiveName(Aws::String&& value) { m_archiveNameHasBeenSet = true; m_archiveName = std::move(value); }
64 inline void SetArchiveName(const char* value) { m_archiveNameHasBeenSet = true; m_archiveName.assign(value); }
65 inline UpdateArchiveRequest& WithArchiveName(const Aws::String& value) { SetArchiveName(value); return *this;}
66 inline UpdateArchiveRequest& WithArchiveName(Aws::String&& value) { SetArchiveName(std::move(value)); return *this;}
67 inline UpdateArchiveRequest& WithArchiveName(const char* value) { SetArchiveName(value); return *this;}
69
71
74 inline const ArchiveRetention& GetRetention() const{ return m_retention; }
75 inline bool RetentionHasBeenSet() const { return m_retentionHasBeenSet; }
76 inline void SetRetention(const ArchiveRetention& value) { m_retentionHasBeenSet = true; m_retention = value; }
77 inline void SetRetention(ArchiveRetention&& value) { m_retentionHasBeenSet = true; m_retention = std::move(value); }
78 inline UpdateArchiveRequest& WithRetention(const ArchiveRetention& value) { SetRetention(value); return *this;}
79 inline UpdateArchiveRequest& WithRetention(ArchiveRetention&& value) { SetRetention(std::move(value)); return *this;}
81 private:
82
83 Aws::String m_archiveId;
84 bool m_archiveIdHasBeenSet = false;
85
86 Aws::String m_archiveName;
87 bool m_archiveNameHasBeenSet = false;
88
89 ArchiveRetention m_retention;
90 bool m_retentionHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace MailManager
95} // namespace Aws
AWS_MAILMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateArchiveRequest & WithArchiveId(Aws::String &&value)
const ArchiveRetention & GetRetention() const
UpdateArchiveRequest & WithRetention(ArchiveRetention &&value)
virtual const char * GetServiceRequestName() const override
UpdateArchiveRequest & WithArchiveName(const Aws::String &value)
UpdateArchiveRequest & WithArchiveName(const char *value)
AWS_MAILMANAGER_API Aws::String SerializePayload() const override
UpdateArchiveRequest & WithRetention(const ArchiveRetention &value)
UpdateArchiveRequest & WithArchiveId(const Aws::String &value)
void SetRetention(const ArchiveRetention &value)
UpdateArchiveRequest & WithArchiveName(Aws::String &&value)
UpdateArchiveRequest & WithArchiveId(const char *value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String