AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
S3SetObjectLegalHoldOperation.h
1
6#pragma once
7#include <aws/s3control/S3Control_EXPORTS.h>
8#include <aws/s3control/model/S3ObjectLockLegalHold.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Xml
16{
17 class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace S3Control
21{
22namespace Model
23{
24
37 {
38 public:
39 AWS_S3CONTROL_API S3SetObjectLegalHoldOperation();
42
43 AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
44
45
47
51 inline const S3ObjectLockLegalHold& GetLegalHold() const{ return m_legalHold; }
52 inline bool LegalHoldHasBeenSet() const { return m_legalHoldHasBeenSet; }
53 inline void SetLegalHold(const S3ObjectLockLegalHold& value) { m_legalHoldHasBeenSet = true; m_legalHold = value; }
54 inline void SetLegalHold(S3ObjectLockLegalHold&& value) { m_legalHoldHasBeenSet = true; m_legalHold = std::move(value); }
56 inline S3SetObjectLegalHoldOperation& WithLegalHold(S3ObjectLockLegalHold&& value) { SetLegalHold(std::move(value)); return *this;}
58 private:
59
60 S3ObjectLockLegalHold m_legalHold;
61 bool m_legalHoldHasBeenSet = false;
62 };
63
64} // namespace Model
65} // namespace S3Control
66} // namespace Aws