AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
GetObjectLegalHoldResult.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 ObjectLockLegalHold& GetLegalHold() const{ return m_legalHold; }
39
43 inline void SetLegalHold(const ObjectLockLegalHold& value) { m_legalHold = value; }
44
48 inline void SetLegalHold(ObjectLockLegalHold&& value) { m_legalHold = std::move(value); }
49
53 inline GetObjectLegalHoldResult& WithLegalHold(const ObjectLockLegalHold& value) { SetLegalHold(value); return *this;}
54
58 inline GetObjectLegalHoldResult& WithLegalHold(ObjectLockLegalHold&& value) { SetLegalHold(std::move(value)); return *this;}
59
60 private:
61
62 ObjectLockLegalHold m_legalHold;
63 };
64
65} // namespace Model
66} // namespace S3
67} // namespace Aws
#define AWS_S3_API
Definition: S3_EXPORTS.h:28