AWS SDK for C++

AWS SDK for C++ Version 1.11.847

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/crt/cbor/Cbor.h>
10#include <aws/mailmanager/MailManager_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Cbor {
17class CborValue;
18} // namespace Cbor
19} // namespace Utils
20namespace MailManager {
21namespace Model {
22
29class RuleSet {
30 public:
31 AWS_MAILMANAGER_API RuleSet() = default;
32 AWS_MAILMANAGER_API RuleSet(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_MAILMANAGER_API RuleSet& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_MAILMANAGER_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) 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(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
RuleSet & WithRuleSetName(RuleSetNameT &&value)
Definition RuleSet.h:66
void SetLastModificationDate(LastModificationDateT &&value)
Definition RuleSet.h:79
const Aws::Utils::DateTime & GetLastModificationDate() const
Definition RuleSet.h:76
RuleSet & WithLastModificationDate(LastModificationDateT &&value)
Definition RuleSet.h:84
AWS_MAILMANAGER_API RuleSet & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const Aws::String & GetRuleSetName() const
Definition RuleSet.h:58
bool LastModificationDateHasBeenSet() const
Definition RuleSet.h:77
AWS_MAILMANAGER_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
bool RuleSetNameHasBeenSet() const
Definition RuleSet.h:59
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String