AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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
35 {
36 public:
37 AWS_ACCESSANALYZER_API ArchiveRuleSummary();
38 AWS_ACCESSANALYZER_API ArchiveRuleSummary(Aws::Utils::Json::JsonView jsonValue);
39 AWS_ACCESSANALYZER_API ArchiveRuleSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetRuleName() const{ return m_ruleName; }
48 inline bool RuleNameHasBeenSet() const { return m_ruleNameHasBeenSet; }
49 inline void SetRuleName(const Aws::String& value) { m_ruleNameHasBeenSet = true; m_ruleName = value; }
50 inline void SetRuleName(Aws::String&& value) { m_ruleNameHasBeenSet = true; m_ruleName = std::move(value); }
51 inline void SetRuleName(const char* value) { m_ruleNameHasBeenSet = true; m_ruleName.assign(value); }
52 inline ArchiveRuleSummary& WithRuleName(const Aws::String& value) { SetRuleName(value); return *this;}
53 inline ArchiveRuleSummary& WithRuleName(Aws::String&& value) { SetRuleName(std::move(value)); return *this;}
54 inline ArchiveRuleSummary& WithRuleName(const char* value) { SetRuleName(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 inline void SetFilter(const Aws::Map<Aws::String, Criterion>& value) { m_filterHasBeenSet = true; m_filter = value; }
64 inline void SetFilter(Aws::Map<Aws::String, Criterion>&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }
65 inline ArchiveRuleSummary& WithFilter(const Aws::Map<Aws::String, Criterion>& value) { SetFilter(value); return *this;}
66 inline ArchiveRuleSummary& WithFilter(Aws::Map<Aws::String, Criterion>&& value) { SetFilter(std::move(value)); return *this;}
67 inline ArchiveRuleSummary& AddFilter(const Aws::String& key, const Criterion& value) { m_filterHasBeenSet = true; m_filter.emplace(key, value); return *this; }
68 inline ArchiveRuleSummary& AddFilter(Aws::String&& key, const Criterion& value) { m_filterHasBeenSet = true; m_filter.emplace(std::move(key), value); return *this; }
69 inline ArchiveRuleSummary& AddFilter(const Aws::String& key, Criterion&& value) { m_filterHasBeenSet = true; m_filter.emplace(key, std::move(value)); return *this; }
70 inline ArchiveRuleSummary& AddFilter(Aws::String&& key, Criterion&& value) { m_filterHasBeenSet = true; m_filter.emplace(std::move(key), std::move(value)); return *this; }
71 inline ArchiveRuleSummary& AddFilter(const char* key, Criterion&& value) { m_filterHasBeenSet = true; m_filter.emplace(key, std::move(value)); return *this; }
72 inline ArchiveRuleSummary& AddFilter(const char* key, const Criterion& value) { m_filterHasBeenSet = true; m_filter.emplace(key, value); return *this; }
74
76
79 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
80 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
81 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
82 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
83 inline ArchiveRuleSummary& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
84 inline ArchiveRuleSummary& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
86
88
91 inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; }
92 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
93 inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAtHasBeenSet = true; m_updatedAt = value; }
94 inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::move(value); }
95 inline ArchiveRuleSummary& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;}
96 inline ArchiveRuleSummary& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;}
98 private:
99
100 Aws::String m_ruleName;
101 bool m_ruleNameHasBeenSet = false;
102
104 bool m_filterHasBeenSet = false;
105
106 Aws::Utils::DateTime m_createdAt;
107 bool m_createdAtHasBeenSet = false;
108
109 Aws::Utils::DateTime m_updatedAt;
110 bool m_updatedAtHasBeenSet = false;
111 };
112
113} // namespace Model
114} // namespace AccessAnalyzer
115} // namespace Aws
ArchiveRuleSummary & AddFilter(Aws::String &&key, const Criterion &value)
ArchiveRuleSummary & WithRuleName(const Aws::String &value)
AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetFilter(Aws::Map< Aws::String, Criterion > &&value)
ArchiveRuleSummary & AddFilter(Aws::String &&key, Criterion &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
void SetUpdatedAt(const Aws::Utils::DateTime &value)
void SetCreatedAt(Aws::Utils::DateTime &&value)
ArchiveRuleSummary & AddFilter(const Aws::String &key, const Criterion &value)
ArchiveRuleSummary & WithUpdatedAt(const Aws::Utils::DateTime &value)
ArchiveRuleSummary & WithRuleName(const char *value)
void SetFilter(const Aws::Map< Aws::String, Criterion > &value)
AWS_ACCESSANALYZER_API ArchiveRuleSummary(Aws::Utils::Json::JsonView jsonValue)
ArchiveRuleSummary & WithCreatedAt(Aws::Utils::DateTime &&value)
ArchiveRuleSummary & AddFilter(const char *key, const Criterion &value)
ArchiveRuleSummary & AddFilter(const Aws::String &key, Criterion &&value)
ArchiveRuleSummary & WithFilter(Aws::Map< Aws::String, Criterion > &&value)
ArchiveRuleSummary & WithUpdatedAt(Aws::Utils::DateTime &&value)
ArchiveRuleSummary & AddFilter(const char *key, Criterion &&value)
ArchiveRuleSummary & WithRuleName(Aws::String &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
ArchiveRuleSummary & WithFilter(const Aws::Map< Aws::String, Criterion > &value)
AWS_ACCESSANALYZER_API ArchiveRuleSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
ArchiveRuleSummary & WithCreatedAt(const Aws::Utils::DateTime &value)
const Aws::Map< Aws::String, Criterion > & GetFilter() const
void SetUpdatedAt(Aws::Utils::DateTime &&value)
void SetCreatedAt(const Aws::Utils::DateTime &value)
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