AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ArchiveRuleSummary.h
1
6#pragma once
7#include <aws/accessanalyzer/AccessAnalyzer_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/accessanalyzer/model/Criterion.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace AccessAnalyzer
25{
26namespace Model
27{
28
37 {
38 public:
39 AWS_ACCESSANALYZER_API ArchiveRuleSummary() = default;
40 AWS_ACCESSANALYZER_API ArchiveRuleSummary(Aws::Utils::Json::JsonView jsonValue);
41 AWS_ACCESSANALYZER_API ArchiveRuleSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetRuleName() const { return m_ruleName; }
50 inline bool RuleNameHasBeenSet() const { return m_ruleNameHasBeenSet; }
51 template<typename RuleNameT = Aws::String>
52 void SetRuleName(RuleNameT&& value) { m_ruleNameHasBeenSet = true; m_ruleName = std::forward<RuleNameT>(value); }
53 template<typename RuleNameT = Aws::String>
54 ArchiveRuleSummary& WithRuleName(RuleNameT&& value) { SetRuleName(std::forward<RuleNameT>(value)); return *this;}
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) { m_filterHasBeenSet = true; m_filter = std::forward<FilterT>(value); }
65 template<typename FilterT = Aws::Map<Aws::String, Criterion>>
66 ArchiveRuleSummary& WithFilter(FilterT&& value) { SetFilter(std::forward<FilterT>(value)); return *this;}
67 template<typename FilterKeyT = Aws::String, typename FilterValueT = Criterion>
68 ArchiveRuleSummary& AddFilter(FilterKeyT&& key, FilterValueT&& value) {
69 m_filterHasBeenSet = true; m_filter.emplace(std::forward<FilterKeyT>(key), std::forward<FilterValueT>(value)); return *this;
70 }
72
74
77 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
78 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
79 template<typename CreatedAtT = Aws::Utils::DateTime>
80 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
81 template<typename CreatedAtT = Aws::Utils::DateTime>
82 ArchiveRuleSummary& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
84
86
89 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
90 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
91 template<typename UpdatedAtT = Aws::Utils::DateTime>
92 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::forward<UpdatedAtT>(value); }
93 template<typename UpdatedAtT = Aws::Utils::DateTime>
94 ArchiveRuleSummary& WithUpdatedAt(UpdatedAtT&& value) { SetUpdatedAt(std::forward<UpdatedAtT>(value)); return *this;}
96 private:
97
98 Aws::String m_ruleName;
99 bool m_ruleNameHasBeenSet = false;
100
102 bool m_filterHasBeenSet = false;
103
104 Aws::Utils::DateTime m_createdAt{};
105 bool m_createdAtHasBeenSet = false;
106
107 Aws::Utils::DateTime m_updatedAt{};
108 bool m_updatedAtHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace AccessAnalyzer
113} // 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