AWS SDK for C++  1.9.108
AWS SDK for C++
FolderConfiguration.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace WorkMail
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
45  inline const FolderName& GetName() const{ return m_name; }
46 
50  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
51 
55  inline void SetName(const FolderName& value) { m_nameHasBeenSet = true; m_name = value; }
56 
60  inline void SetName(FolderName&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
61 
65  inline FolderConfiguration& WithName(const FolderName& value) { SetName(value); return *this;}
66 
70  inline FolderConfiguration& WithName(FolderName&& value) { SetName(std::move(value)); return *this;}
71 
72 
77  inline const RetentionAction& GetAction() const{ return m_action; }
78 
83  inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
84 
89  inline void SetAction(const RetentionAction& value) { m_actionHasBeenSet = true; m_action = value; }
90 
95  inline void SetAction(RetentionAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
96 
101  inline FolderConfiguration& WithAction(const RetentionAction& value) { SetAction(value); return *this;}
102 
107  inline FolderConfiguration& WithAction(RetentionAction&& value) { SetAction(std::move(value)); return *this;}
108 
109 
113  inline int GetPeriod() const{ return m_period; }
114 
118  inline bool PeriodHasBeenSet() const { return m_periodHasBeenSet; }
119 
123  inline void SetPeriod(int value) { m_periodHasBeenSet = true; m_period = value; }
124 
128  inline FolderConfiguration& WithPeriod(int value) { SetPeriod(value); return *this;}
129 
130  private:
131 
132  FolderName m_name;
133  bool m_nameHasBeenSet;
134 
135  RetentionAction m_action;
136  bool m_actionHasBeenSet;
137 
138  int m_period;
139  bool m_periodHasBeenSet;
140  };
141 
142 } // namespace Model
143 } // namespace WorkMail
144 } // namespace Aws
Aws::WorkMail::Model::RetentionAction
RetentionAction
Definition: RetentionAction.h:17
Aws::WorkMail::Model::FolderConfiguration::SetName
void SetName(const FolderName &value)
Definition: FolderConfiguration.h:55
Aws::WorkMail::Model::FolderConfiguration::WithName
FolderConfiguration & WithName(FolderName &&value)
Definition: FolderConfiguration.h:70
Aws::WorkMail::Model::FolderConfiguration::GetName
const FolderName & GetName() const
Definition: FolderConfiguration.h:45
Aws::WorkMail::Model::FolderConfiguration::FolderConfiguration
FolderConfiguration(Aws::Utils::Json::JsonView jsonValue)
Aws::WorkMail::Model::FolderConfiguration::ActionHasBeenSet
bool ActionHasBeenSet() const
Definition: FolderConfiguration.h:83
Aws::WorkMail::Model::FolderConfiguration
Definition: FolderConfiguration.h:34
Aws::WorkMail::Model::FolderConfiguration::WithAction
FolderConfiguration & WithAction(const RetentionAction &value)
Definition: FolderConfiguration.h:101
FolderName.h
RetentionAction.h
WorkMail_EXPORTS.h
Aws::WorkMail::Model::FolderConfiguration::SetAction
void SetAction(const RetentionAction &value)
Definition: FolderConfiguration.h:89
Aws::WorkMail::Model::FolderConfiguration::NameHasBeenSet
bool NameHasBeenSet() const
Definition: FolderConfiguration.h:50
Aws::WorkMail::Model::FolderConfiguration::SetAction
void SetAction(RetentionAction &&value)
Definition: FolderConfiguration.h:95
Aws::WorkMail::Model::FolderName
FolderName
Definition: FolderName.h:17
Aws::WorkMail::Model::FolderConfiguration::SetPeriod
void SetPeriod(int value)
Definition: FolderConfiguration.h:123
Aws::WorkMail::Model::FolderConfiguration::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::WorkMail::Model::FolderConfiguration::PeriodHasBeenSet
bool PeriodHasBeenSet() const
Definition: FolderConfiguration.h:118
Aws::WorkMail::Model::FolderConfiguration::operator=
FolderConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::WorkMail::Model::FolderConfiguration::WithAction
FolderConfiguration & WithAction(RetentionAction &&value)
Definition: FolderConfiguration.h:107
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::WorkMail::Model::FolderConfiguration::SetName
void SetName(FolderName &&value)
Definition: FolderConfiguration.h:60
Aws::WorkMail::Model::FolderConfiguration::FolderConfiguration
FolderConfiguration()
Aws::WorkMail::Model::FolderConfiguration::WithName
FolderConfiguration & WithName(const FolderName &value)
Definition: FolderConfiguration.h:65
Aws
Definition: AccessManagementClient.h:15
AWS_WORKMAIL_API
#define AWS_WORKMAIL_API
Definition: WorkMail_EXPORTS.h:28
Aws::WorkMail::Model::FolderConfiguration::GetAction
const RetentionAction & GetAction() const
Definition: FolderConfiguration.h:77
Aws::WorkMail::Model::FolderConfiguration::WithPeriod
FolderConfiguration & WithPeriod(int value)
Definition: FolderConfiguration.h:128
Aws::WorkMail::Model::FolderConfiguration::GetPeriod
int GetPeriod() const
Definition: FolderConfiguration.h:113