AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 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 InlineArchiveRule& WithRuleName(const Aws::String& value) { SetRuleName(value); return *this;}
53 inline InlineArchiveRule& WithRuleName(Aws::String&& value) { SetRuleName(std::move(value)); return *this;}
54 inline InlineArchiveRule& 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 InlineArchiveRule& WithFilter(const Aws::Map<Aws::String, Criterion>& value) { SetFilter(value); return *this;}
66 inline InlineArchiveRule& WithFilter(Aws::Map<Aws::String, Criterion>&& value) { SetFilter(std::move(value)); return *this;}
67 inline InlineArchiveRule& AddFilter(const Aws::String& key, const Criterion& value) { m_filterHasBeenSet = true; m_filter.emplace(key, value); return *this; }
68 inline InlineArchiveRule& AddFilter(Aws::String&& key, const Criterion& value) { m_filterHasBeenSet = true; m_filter.emplace(std::move(key), value); return *this; }
69 inline InlineArchiveRule& AddFilter(const Aws::String& key, Criterion&& value) { m_filterHasBeenSet = true; m_filter.emplace(key, std::move(value)); return *this; }
70 inline InlineArchiveRule& AddFilter(Aws::String&& key, Criterion&& value) { m_filterHasBeenSet = true; m_filter.emplace(std::move(key), std::move(value)); return *this; }
71 inline InlineArchiveRule& AddFilter(const char* key, Criterion&& value) { m_filterHasBeenSet = true; m_filter.emplace(key, std::move(value)); return *this; }
72 inline InlineArchiveRule& AddFilter(const char* key, const Criterion& value) { m_filterHasBeenSet = true; m_filter.emplace(key, value); return *this; }
74 private:
75
76 Aws::String m_ruleName;
77 bool m_ruleNameHasBeenSet = false;
78
80 bool m_filterHasBeenSet = false;
81 };
82
83} // namespace Model
84} // namespace AccessAnalyzer
85} // namespace Aws
InlineArchiveRule & WithFilter(const Aws::Map< Aws::String, Criterion > &value)
InlineArchiveRule & AddFilter(const Aws::String &key, const Criterion &value)
InlineArchiveRule & AddFilter(const char *key, Criterion &&value)
void SetFilter(Aws::Map< Aws::String, Criterion > &&value)
AWS_ACCESSANALYZER_API InlineArchiveRule(Aws::Utils::Json::JsonView jsonValue)
InlineArchiveRule & AddFilter(const char *key, const Criterion &value)
InlineArchiveRule & WithFilter(Aws::Map< Aws::String, Criterion > &&value)
const Aws::Map< Aws::String, Criterion > & GetFilter() const
InlineArchiveRule & AddFilter(Aws::String &&key, Criterion &&value)
InlineArchiveRule & WithRuleName(const Aws::String &value)
AWS_ACCESSANALYZER_API InlineArchiveRule & operator=(Aws::Utils::Json::JsonView jsonValue)
InlineArchiveRule & AddFilter(const Aws::String &key, Criterion &&value)
void SetFilter(const Aws::Map< Aws::String, Criterion > &value)
AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const
InlineArchiveRule & AddFilter(Aws::String &&key, const Criterion &value)
InlineArchiveRule & WithRuleName(const char *value)
InlineArchiveRule & WithRuleName(Aws::String &&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