AWS SDK for C++

AWS SDK for C++ Version 1.11.786

Loading...
Searching...
No Matches
GetArchiveMessageResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/mailmanager/MailManager_EXPORTS.h>
10#include <aws/mailmanager/model/Envelope.h>
11#include <aws/mailmanager/model/Metadata.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace MailManager {
25namespace Model {
33 public:
34 AWS_MAILMANAGER_API GetArchiveMessageResult() = default;
37
39
42 inline const Aws::String& GetMessageDownloadLink() const { return m_messageDownloadLink; }
43 template <typename MessageDownloadLinkT = Aws::String>
44 void SetMessageDownloadLink(MessageDownloadLinkT&& value) {
45 m_messageDownloadLinkHasBeenSet = true;
46 m_messageDownloadLink = std::forward<MessageDownloadLinkT>(value);
47 }
48 template <typename MessageDownloadLinkT = Aws::String>
49 GetArchiveMessageResult& WithMessageDownloadLink(MessageDownloadLinkT&& value) {
50 SetMessageDownloadLink(std::forward<MessageDownloadLinkT>(value));
51 return *this;
52 }
54
56
59 inline const Metadata& GetMetadata() const { return m_metadata; }
60 template <typename MetadataT = Metadata>
61 void SetMetadata(MetadataT&& value) {
62 m_metadataHasBeenSet = true;
63 m_metadata = std::forward<MetadataT>(value);
64 }
65 template <typename MetadataT = Metadata>
67 SetMetadata(std::forward<MetadataT>(value));
68 return *this;
69 }
71
73
76 inline const Envelope& GetEnvelope() const { return m_envelope; }
77 template <typename EnvelopeT = Envelope>
78 void SetEnvelope(EnvelopeT&& value) {
79 m_envelopeHasBeenSet = true;
80 m_envelope = std::forward<EnvelopeT>(value);
81 }
82 template <typename EnvelopeT = Envelope>
84 SetEnvelope(std::forward<EnvelopeT>(value));
85 return *this;
86 }
88
90
91 inline const Aws::String& GetRequestId() const { return m_requestId; }
92 template <typename RequestIdT = Aws::String>
93 void SetRequestId(RequestIdT&& value) {
94 m_requestIdHasBeenSet = true;
95 m_requestId = std::forward<RequestIdT>(value);
96 }
97 template <typename RequestIdT = Aws::String>
99 SetRequestId(std::forward<RequestIdT>(value));
100 return *this;
101 }
103 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
104
105 private:
106 Aws::String m_messageDownloadLink;
107
108 Metadata m_metadata;
109
110 Envelope m_envelope;
111
112 Aws::String m_requestId;
113 Aws::Http::HttpResponseCode m_HttpResponseCode;
114 bool m_messageDownloadLinkHasBeenSet = false;
115 bool m_metadataHasBeenSet = false;
116 bool m_envelopeHasBeenSet = false;
117 bool m_requestIdHasBeenSet = false;
118};
119
120} // namespace Model
121} // namespace MailManager
122} // namespace Aws
GetArchiveMessageResult & WithEnvelope(EnvelopeT &&value)
AWS_MAILMANAGER_API GetArchiveMessageResult()=default
void SetMessageDownloadLink(MessageDownloadLinkT &&value)
AWS_MAILMANAGER_API GetArchiveMessageResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetArchiveMessageResult & WithMessageDownloadLink(MessageDownloadLinkT &&value)
GetArchiveMessageResult & WithRequestId(RequestIdT &&value)
GetArchiveMessageResult & WithMetadata(MetadataT &&value)
AWS_MAILMANAGER_API GetArchiveMessageResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue