AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
RuleSet.h
1
6#pragma once
7#include <aws/mailmanager/MailManager_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.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 MailManager
23{
24namespace Model
25{
26
33 class RuleSet
34 {
35 public:
36 AWS_MAILMANAGER_API RuleSet() = default;
37 AWS_MAILMANAGER_API RuleSet(Aws::Utils::Json::JsonView jsonValue);
38 AWS_MAILMANAGER_API RuleSet& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetRuleSetId() const { return m_ruleSetId; }
47 inline bool RuleSetIdHasBeenSet() const { return m_ruleSetIdHasBeenSet; }
48 template<typename RuleSetIdT = Aws::String>
49 void SetRuleSetId(RuleSetIdT&& value) { m_ruleSetIdHasBeenSet = true; m_ruleSetId = std::forward<RuleSetIdT>(value); }
50 template<typename RuleSetIdT = Aws::String>
51 RuleSet& WithRuleSetId(RuleSetIdT&& value) { SetRuleSetId(std::forward<RuleSetIdT>(value)); return *this;}
53
55
58 inline const Aws::String& GetRuleSetName() const { return m_ruleSetName; }
59 inline bool RuleSetNameHasBeenSet() const { return m_ruleSetNameHasBeenSet; }
60 template<typename RuleSetNameT = Aws::String>
61 void SetRuleSetName(RuleSetNameT&& value) { m_ruleSetNameHasBeenSet = true; m_ruleSetName = std::forward<RuleSetNameT>(value); }
62 template<typename RuleSetNameT = Aws::String>
63 RuleSet& WithRuleSetName(RuleSetNameT&& value) { SetRuleSetName(std::forward<RuleSetNameT>(value)); return *this;}
65
67
70 inline const Aws::Utils::DateTime& GetLastModificationDate() const { return m_lastModificationDate; }
71 inline bool LastModificationDateHasBeenSet() const { return m_lastModificationDateHasBeenSet; }
72 template<typename LastModificationDateT = Aws::Utils::DateTime>
73 void SetLastModificationDate(LastModificationDateT&& value) { m_lastModificationDateHasBeenSet = true; m_lastModificationDate = std::forward<LastModificationDateT>(value); }
74 template<typename LastModificationDateT = Aws::Utils::DateTime>
75 RuleSet& WithLastModificationDate(LastModificationDateT&& value) { SetLastModificationDate(std::forward<LastModificationDateT>(value)); return *this;}
77 private:
78
79 Aws::String m_ruleSetId;
80 bool m_ruleSetIdHasBeenSet = false;
81
82 Aws::String m_ruleSetName;
83 bool m_ruleSetNameHasBeenSet = false;
84
85 Aws::Utils::DateTime m_lastModificationDate{};
86 bool m_lastModificationDateHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace MailManager
91} // namespace Aws
RuleSet & WithRuleSetId(RuleSetIdT &&value)
Definition RuleSet.h:51
const Aws::String & GetRuleSetId() const
Definition RuleSet.h:46
AWS_MAILMANAGER_API RuleSet()=default
void SetRuleSetName(RuleSetNameT &&value)
Definition RuleSet.h:61
void SetRuleSetId(RuleSetIdT &&value)
Definition RuleSet.h:49
AWS_MAILMANAGER_API RuleSet & operator=(Aws::Utils::Json::JsonView jsonValue)
RuleSet & WithRuleSetName(RuleSetNameT &&value)
Definition RuleSet.h:63
void SetLastModificationDate(LastModificationDateT &&value)
Definition RuleSet.h:73
AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetLastModificationDate() const
Definition RuleSet.h:70
AWS_MAILMANAGER_API RuleSet(Aws::Utils::Json::JsonView jsonValue)
RuleSet & WithLastModificationDate(LastModificationDateT &&value)
Definition RuleSet.h:75
const Aws::String & GetRuleSetName() const
Definition RuleSet.h:58
bool LastModificationDateHasBeenSet() const
Definition RuleSet.h:71
bool RuleSetNameHasBeenSet() const
Definition RuleSet.h:59
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue