AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
GetObjectRetentionResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/s3/S3_EXPORTS.h>
9#include <aws/s3/model/ObjectLockRetention.h>
10
11#include <utility>
12
13namespace Aws {
14template <typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils {
18namespace Xml {
19class XmlDocument;
20} // namespace Xml
21} // namespace Utils
22namespace S3 {
23namespace Model {
25 public:
26 AWS_S3_API GetObjectRetentionResult() = default;
29
31
34 inline const ObjectLockRetention& GetRetention() const { return m_retention; }
35 template <typename RetentionT = ObjectLockRetention>
36 void SetRetention(RetentionT&& value) {
37 m_retentionHasBeenSet = true;
38 m_retention = std::forward<RetentionT>(value);
39 }
40 template <typename RetentionT = ObjectLockRetention>
42 SetRetention(std::forward<RetentionT>(value));
43 return *this;
44 }
46
48
49 inline const Aws::String& GetRequestId() const { return m_requestId; }
50 template <typename RequestIdT = Aws::String>
51 void SetRequestId(RequestIdT&& value) {
52 m_requestIdHasBeenSet = true;
53 m_requestId = std::forward<RequestIdT>(value);
54 }
55 template <typename RequestIdT = Aws::String>
57 SetRequestId(std::forward<RequestIdT>(value));
58 return *this;
59 }
61 private:
62 ObjectLockRetention m_retention;
63
64 Aws::String m_requestId;
65 bool m_retentionHasBeenSet = false;
66 bool m_requestIdHasBeenSet = false;
67};
68
69} // namespace Model
70} // namespace S3
71} // namespace Aws
AWS_S3_API GetObjectRetentionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
GetObjectRetentionResult & WithRequestId(RequestIdT &&value)
const ObjectLockRetention & GetRetention() const
GetObjectRetentionResult & WithRetention(RetentionT &&value)
AWS_S3_API GetObjectRetentionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
AWS_S3_API GetObjectRetentionResult()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Xml::XmlDocument XmlDocument