AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ArchiveRuleSummary.h
1
6#pragma once
7#include <aws/accessanalyzer/AccessAnalyzer_EXPORTS.h>
8#include <aws/accessanalyzer/model/Criterion.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace AccessAnalyzer {
23namespace Model {
24
33 public:
34 AWS_ACCESSANALYZER_API ArchiveRuleSummary() = default;
35 AWS_ACCESSANALYZER_API ArchiveRuleSummary(Aws::Utils::Json::JsonView jsonValue);
36 AWS_ACCESSANALYZER_API ArchiveRuleSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetRuleName() const { return m_ruleName; }
44 inline bool RuleNameHasBeenSet() const { return m_ruleNameHasBeenSet; }
45 template <typename RuleNameT = Aws::String>
46 void SetRuleName(RuleNameT&& value) {
47 m_ruleNameHasBeenSet = true;
48 m_ruleName = std::forward<RuleNameT>(value);
49 }
50 template <typename RuleNameT = Aws::String>
51 ArchiveRuleSummary& WithRuleName(RuleNameT&& value) {
52 SetRuleName(std::forward<RuleNameT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::Map<Aws::String, Criterion>& GetFilter() const { return m_filter; }
62 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
63 template <typename FilterT = Aws::Map<Aws::String, Criterion>>
64 void SetFilter(FilterT&& value) {
65 m_filterHasBeenSet = true;
66 m_filter = std::forward<FilterT>(value);
67 }
68 template <typename FilterT = Aws::Map<Aws::String, Criterion>>
69 ArchiveRuleSummary& WithFilter(FilterT&& value) {
70 SetFilter(std::forward<FilterT>(value));
71 return *this;
72 }
73 template <typename FilterKeyT = Aws::String, typename FilterValueT = Criterion>
74 ArchiveRuleSummary& AddFilter(FilterKeyT&& key, FilterValueT&& value) {
75 m_filterHasBeenSet = true;
76 m_filter.emplace(std::forward<FilterKeyT>(key), std::forward<FilterValueT>(value));
77 return *this;
78 }
80
82
85 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
86 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
87 template <typename CreatedAtT = Aws::Utils::DateTime>
88 void SetCreatedAt(CreatedAtT&& value) {
89 m_createdAtHasBeenSet = true;
90 m_createdAt = std::forward<CreatedAtT>(value);
91 }
92 template <typename CreatedAtT = Aws::Utils::DateTime>
93 ArchiveRuleSummary& WithCreatedAt(CreatedAtT&& value) {
94 SetCreatedAt(std::forward<CreatedAtT>(value));
95 return *this;
96 }
98
100
103 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
104 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
105 template <typename UpdatedAtT = Aws::Utils::DateTime>
106 void SetUpdatedAt(UpdatedAtT&& value) {
107 m_updatedAtHasBeenSet = true;
108 m_updatedAt = std::forward<UpdatedAtT>(value);
109 }
110 template <typename UpdatedAtT = Aws::Utils::DateTime>
111 ArchiveRuleSummary& WithUpdatedAt(UpdatedAtT&& value) {
112 SetUpdatedAt(std::forward<UpdatedAtT>(value));
113 return *this;
114 }
116 private:
117 Aws::String m_ruleName;
118
120
121 Aws::Utils::DateTime m_createdAt{};
122
123 Aws::Utils::DateTime m_updatedAt{};
124 bool m_ruleNameHasBeenSet = false;
125 bool m_filterHasBeenSet = false;
126 bool m_createdAtHasBeenSet = false;
127 bool m_updatedAtHasBeenSet = false;
128};
129
130} // namespace Model
131} // namespace AccessAnalyzer
132} // namespace Aws
AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const
ArchiveRuleSummary & WithUpdatedAt(UpdatedAtT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
ArchiveRuleSummary & WithCreatedAt(CreatedAtT &&value)
ArchiveRuleSummary & AddFilter(FilterKeyT &&key, FilterValueT &&value)
AWS_ACCESSANALYZER_API ArchiveRuleSummary(Aws::Utils::Json::JsonView jsonValue)
AWS_ACCESSANALYZER_API ArchiveRuleSummary()=default
ArchiveRuleSummary & WithRuleName(RuleNameT &&value)
ArchiveRuleSummary & WithFilter(FilterT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
AWS_ACCESSANALYZER_API ArchiveRuleSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, Criterion > & GetFilter() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue