AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
GetObjectRetentionResult.h
Go to the documentation of this file.
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
9#include <utility>
10
11namespace Aws
12{
13template<typename RESULT_TYPE>
14class AmazonWebServiceResult;
15
16namespace Utils
17{
18namespace Xml
19{
20 class XmlDocument;
21} // namespace Xml
22} // namespace Utils
23namespace S3
24{
25namespace Model
26{
28 {
29 public:
33
34
38 inline const ObjectLockRetention& GetRetention() const{ return m_retention; }
39
43 inline void SetRetention(const ObjectLockRetention& value) { m_retention = value; }
44
48 inline void SetRetention(ObjectLockRetention&& value) { m_retention = std::move(value); }
49
53 inline GetObjectRetentionResult& WithRetention(const ObjectLockRetention& value) { SetRetention(value); return *this;}
54
58 inline GetObjectRetentionResult& WithRetention(ObjectLockRetention&& value) { SetRetention(std::move(value)); return *this;}
59
60 private:
61
62 ObjectLockRetention m_retention;
63 };
64
65} // namespace Model
66} // namespace S3
67} // namespace Aws
#define AWS_S3_API
Definition: S3_EXPORTS.h:28
AWS_S3_API GetObjectRetentionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
void SetRetention(ObjectLockRetention &&value)
GetObjectRetentionResult & WithRetention(ObjectLockRetention &&value)
const ObjectLockRetention & GetRetention() const
GetObjectRetentionResult & WithRetention(const ObjectLockRetention &value)
AWS_S3_API GetObjectRetentionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
void SetRetention(const ObjectLockRetention &value)