AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
FolderConfiguration.h
1
6#pragma once
7#include <aws/workmail/WorkMail_EXPORTS.h>
8#include <aws/workmail/model/FolderName.h>
9#include <aws/workmail/model/RetentionAction.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace WorkMail
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_WORKMAIL_API FolderConfiguration() = default;
39 AWS_WORKMAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline FolderName GetName() const { return m_name; }
47 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
48 inline void SetName(FolderName value) { m_nameHasBeenSet = true; m_name = value; }
49 inline FolderConfiguration& WithName(FolderName value) { SetName(value); return *this;}
51
53
57 inline RetentionAction GetAction() const { return m_action; }
58 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
59 inline void SetAction(RetentionAction value) { m_actionHasBeenSet = true; m_action = value; }
60 inline FolderConfiguration& WithAction(RetentionAction value) { SetAction(value); return *this;}
62
64
67 inline int GetPeriod() const { return m_period; }
68 inline bool PeriodHasBeenSet() const { return m_periodHasBeenSet; }
69 inline void SetPeriod(int value) { m_periodHasBeenSet = true; m_period = value; }
70 inline FolderConfiguration& WithPeriod(int value) { SetPeriod(value); return *this;}
72 private:
73
75 bool m_nameHasBeenSet = false;
76
78 bool m_actionHasBeenSet = false;
79
80 int m_period{0};
81 bool m_periodHasBeenSet = false;
82 };
83
84} // namespace Model
85} // namespace WorkMail
86} // namespace Aws
FolderConfiguration & WithPeriod(int value)
AWS_WORKMAIL_API Aws::Utils::Json::JsonValue Jsonize() const
FolderConfiguration & WithAction(RetentionAction value)
AWS_WORKMAIL_API FolderConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
FolderConfiguration & WithName(FolderName value)
AWS_WORKMAIL_API FolderConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_WORKMAIL_API FolderConfiguration()=default
Aws::Utils::Json::JsonValue JsonValue