AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
RuleSet.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/mailmanager/MailManager_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace MailManager {
21namespace Model {
22
29class RuleSet {
30 public:
31 AWS_MAILMANAGER_API RuleSet() = default;
32 AWS_MAILMANAGER_API RuleSet(Aws::Utils::Json::JsonView jsonValue);
33 AWS_MAILMANAGER_API RuleSet& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetRuleSetId() const { return m_ruleSetId; }
41 inline bool RuleSetIdHasBeenSet() const { return m_ruleSetIdHasBeenSet; }
42 template <typename RuleSetIdT = Aws::String>
43 void SetRuleSetId(RuleSetIdT&& value) {
44 m_ruleSetIdHasBeenSet = true;
45 m_ruleSetId = std::forward<RuleSetIdT>(value);
46 }
47 template <typename RuleSetIdT = Aws::String>
48 RuleSet& WithRuleSetId(RuleSetIdT&& value) {
49 SetRuleSetId(std::forward<RuleSetIdT>(value));
50 return *this;
51 }
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) {
62 m_ruleSetNameHasBeenSet = true;
63 m_ruleSetName = std::forward<RuleSetNameT>(value);
64 }
65 template <typename RuleSetNameT = Aws::String>
66 RuleSet& WithRuleSetName(RuleSetNameT&& value) {
67 SetRuleSetName(std::forward<RuleSetNameT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::Utils::DateTime& GetLastModificationDate() const { return m_lastModificationDate; }
77 inline bool LastModificationDateHasBeenSet() const { return m_lastModificationDateHasBeenSet; }
78 template <typename LastModificationDateT = Aws::Utils::DateTime>
79 void SetLastModificationDate(LastModificationDateT&& value) {
80 m_lastModificationDateHasBeenSet = true;
81 m_lastModificationDate = std::forward<LastModificationDateT>(value);
82 }
83 template <typename LastModificationDateT = Aws::Utils::DateTime>
84 RuleSet& WithLastModificationDate(LastModificationDateT&& value) {
85 SetLastModificationDate(std::forward<LastModificationDateT>(value));
86 return *this;
87 }
89 private:
90 Aws::String m_ruleSetId;
91
92 Aws::String m_ruleSetName;
93
94 Aws::Utils::DateTime m_lastModificationDate{};
95 bool m_ruleSetIdHasBeenSet = false;
96 bool m_ruleSetNameHasBeenSet = false;
97 bool m_lastModificationDateHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace MailManager
102} // namespace Aws
RuleSet & WithRuleSetId(RuleSetIdT &&value)
Definition RuleSet.h:48
const Aws::String & GetRuleSetId() const
Definition RuleSet.h:40
AWS_MAILMANAGER_API RuleSet()=default
void SetRuleSetName(RuleSetNameT &&value)
Definition RuleSet.h:61
void SetRuleSetId(RuleSetIdT &&value)
Definition RuleSet.h:43
AWS_MAILMANAGER_API RuleSet & operator=(Aws::Utils::Json::JsonView jsonValue)
RuleSet & WithRuleSetName(RuleSetNameT &&value)
Definition RuleSet.h:66
void SetLastModificationDate(LastModificationDateT &&value)
Definition RuleSet.h:79
AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetLastModificationDate() const
Definition RuleSet.h:76
AWS_MAILMANAGER_API RuleSet(Aws::Utils::Json::JsonView jsonValue)
RuleSet & WithLastModificationDate(LastModificationDateT &&value)
Definition RuleSet.h:84
const Aws::String & GetRuleSetName() const
Definition RuleSet.h:58
bool LastModificationDateHasBeenSet() const
Definition RuleSet.h:77
bool RuleSetNameHasBeenSet() const
Definition RuleSet.h:59
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue