AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
39 AWS_WORKMAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const FolderName& GetName() const{ return m_name; }
47 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
48 inline void SetName(const FolderName& value) { m_nameHasBeenSet = true; m_name = value; }
49 inline void SetName(FolderName&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
50 inline FolderConfiguration& WithName(const FolderName& value) { SetName(value); return *this;}
51 inline FolderConfiguration& WithName(FolderName&& value) { SetName(std::move(value)); return *this;}
53
55
59 inline const RetentionAction& GetAction() const{ return m_action; }
60 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
61 inline void SetAction(const RetentionAction& value) { m_actionHasBeenSet = true; m_action = value; }
62 inline void SetAction(RetentionAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
63 inline FolderConfiguration& WithAction(const RetentionAction& value) { SetAction(value); return *this;}
64 inline FolderConfiguration& WithAction(RetentionAction&& value) { SetAction(std::move(value)); return *this;}
66
68
71 inline int GetPeriod() const{ return m_period; }
72 inline bool PeriodHasBeenSet() const { return m_periodHasBeenSet; }
73 inline void SetPeriod(int value) { m_periodHasBeenSet = true; m_period = value; }
74 inline FolderConfiguration& WithPeriod(int value) { SetPeriod(value); return *this;}
76 private:
77
78 FolderName m_name;
79 bool m_nameHasBeenSet = false;
80
81 RetentionAction m_action;
82 bool m_actionHasBeenSet = false;
83
84 int m_period;
85 bool m_periodHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace WorkMail
90} // namespace Aws
FolderConfiguration & WithPeriod(int value)
FolderConfiguration & WithName(const FolderName &value)
FolderConfiguration & WithName(FolderName &&value)
AWS_WORKMAIL_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAction(const RetentionAction &value)
AWS_WORKMAIL_API FolderConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
const RetentionAction & GetAction() const
AWS_WORKMAIL_API FolderConfiguration(Aws::Utils::Json::JsonView jsonValue)
FolderConfiguration & WithAction(RetentionAction &&value)
FolderConfiguration & WithAction(const RetentionAction &value)
Aws::Utils::Json::JsonValue JsonValue