AWS SDK for C++

AWS SDK for C++ Version 1.11.935

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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace WorkMail {
21namespace Model {
22
30 public:
31 AWS_WORKMAIL_API FolderConfiguration() = default;
34 AWS_WORKMAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline FolderName GetName() const { return m_name; }
41 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
42 inline void SetName(FolderName value) {
43 m_nameHasBeenSet = true;
44 m_name = value;
45 }
47 SetName(value);
48 return *this;
49 }
51
53
57 inline RetentionAction GetAction() const { return m_action; }
58 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
59 inline void SetAction(RetentionAction value) {
60 m_actionHasBeenSet = true;
61 m_action = value;
62 }
64 SetAction(value);
65 return *this;
66 }
68
70
73 inline int GetPeriod() const { return m_period; }
74 inline bool PeriodHasBeenSet() const { return m_periodHasBeenSet; }
75 inline void SetPeriod(int value) {
76 m_periodHasBeenSet = true;
77 m_period = value;
78 }
79 inline FolderConfiguration& WithPeriod(int value) {
80 SetPeriod(value);
81 return *this;
82 }
84 private:
86
88
89 int m_period{0};
90 bool m_nameHasBeenSet = false;
91 bool m_actionHasBeenSet = false;
92 bool m_periodHasBeenSet = false;
93};
94
95} // namespace Model
96} // namespace WorkMail
97} // 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