AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
InlineArchiveRule.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/accessanalyzer/model/Criterion.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace AccessAnalyzer
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_ACCESSANALYZER_API InlineArchiveRule() = default;
38 AWS_ACCESSANALYZER_API InlineArchiveRule(Aws::Utils::Json::JsonView jsonValue);
39 AWS_ACCESSANALYZER_API InlineArchiveRule& 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 template<typename RuleNameT = Aws::String>
50 void SetRuleName(RuleNameT&& value) { m_ruleNameHasBeenSet = true; m_ruleName = std::forward<RuleNameT>(value); }
51 template<typename RuleNameT = Aws::String>
52 InlineArchiveRule& WithRuleName(RuleNameT&& value) { SetRuleName(std::forward<RuleNameT>(value)); return *this;}
54
56
59 inline const Aws::Map<Aws::String, Criterion>& GetFilter() const { return m_filter; }
60 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
61 template<typename FilterT = Aws::Map<Aws::String, Criterion>>
62 void SetFilter(FilterT&& value) { m_filterHasBeenSet = true; m_filter = std::forward<FilterT>(value); }
63 template<typename FilterT = Aws::Map<Aws::String, Criterion>>
64 InlineArchiveRule& WithFilter(FilterT&& value) { SetFilter(std::forward<FilterT>(value)); return *this;}
65 template<typename FilterKeyT = Aws::String, typename FilterValueT = Criterion>
66 InlineArchiveRule& AddFilter(FilterKeyT&& key, FilterValueT&& value) {
67 m_filterHasBeenSet = true; m_filter.emplace(std::forward<FilterKeyT>(key), std::forward<FilterValueT>(value)); return *this;
68 }
70 private:
71
72 Aws::String m_ruleName;
73 bool m_ruleNameHasBeenSet = false;
74
76 bool m_filterHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace AccessAnalyzer
81} // namespace Aws
InlineArchiveRule & WithFilter(FilterT &&value)
InlineArchiveRule & WithRuleName(RuleNameT &&value)
AWS_ACCESSANALYZER_API InlineArchiveRule(Aws::Utils::Json::JsonView jsonValue)
InlineArchiveRule & AddFilter(FilterKeyT &&key, FilterValueT &&value)
const Aws::Map< Aws::String, Criterion > & GetFilter() const
AWS_ACCESSANALYZER_API InlineArchiveRule()=default
AWS_ACCESSANALYZER_API InlineArchiveRule & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() 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