AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ArchiveRetention.h
1
6#pragma once
7#include <aws/mailmanager/MailManager_EXPORTS.h>
8#include <aws/mailmanager/model/RetentionPeriod.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace MailManager
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_MAILMANAGER_API ArchiveRetention();
36 AWS_MAILMANAGER_API ArchiveRetention(Aws::Utils::Json::JsonView jsonValue);
37 AWS_MAILMANAGER_API ArchiveRetention& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const RetentionPeriod& GetRetentionPeriod() const{ return m_retentionPeriod; }
46 inline bool RetentionPeriodHasBeenSet() const { return m_retentionPeriodHasBeenSet; }
47 inline void SetRetentionPeriod(const RetentionPeriod& value) { m_retentionPeriodHasBeenSet = true; m_retentionPeriod = value; }
48 inline void SetRetentionPeriod(RetentionPeriod&& value) { m_retentionPeriodHasBeenSet = true; m_retentionPeriod = std::move(value); }
49 inline ArchiveRetention& WithRetentionPeriod(const RetentionPeriod& value) { SetRetentionPeriod(value); return *this;}
50 inline ArchiveRetention& WithRetentionPeriod(RetentionPeriod&& value) { SetRetentionPeriod(std::move(value)); return *this;}
52 private:
53
54 RetentionPeriod m_retentionPeriod;
55 bool m_retentionPeriodHasBeenSet = false;
56 };
57
58} // namespace Model
59} // namespace MailManager
60} // namespace Aws
void SetRetentionPeriod(const RetentionPeriod &value)
AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_MAILMANAGER_API ArchiveRetention(Aws::Utils::Json::JsonView jsonValue)
ArchiveRetention & WithRetentionPeriod(RetentionPeriod &&value)
const RetentionPeriod & GetRetentionPeriod() const
AWS_MAILMANAGER_API ArchiveRetention & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetRetentionPeriod(RetentionPeriod &&value)
ArchiveRetention & WithRetentionPeriod(const RetentionPeriod &value)
Aws::Utils::Json::JsonValue JsonValue