AWS SDK for C++  1.9.157
AWS SDK for C++
InlineArchiveRule.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace AccessAnalyzer
24 {
25 namespace Model
26 {
27 
35  {
36  public:
41 
42 
46  inline const Aws::Map<Aws::String, Criterion>& GetFilter() const{ return m_filter; }
47 
51  inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
52 
56  inline void SetFilter(const Aws::Map<Aws::String, Criterion>& value) { m_filterHasBeenSet = true; m_filter = value; }
57 
61  inline void SetFilter(Aws::Map<Aws::String, Criterion>&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }
62 
66  inline InlineArchiveRule& WithFilter(const Aws::Map<Aws::String, Criterion>& value) { SetFilter(value); return *this;}
67 
71  inline InlineArchiveRule& WithFilter(Aws::Map<Aws::String, Criterion>&& value) { SetFilter(std::move(value)); return *this;}
72 
76  inline InlineArchiveRule& AddFilter(const Aws::String& key, const Criterion& value) { m_filterHasBeenSet = true; m_filter.emplace(key, value); return *this; }
77 
81  inline InlineArchiveRule& AddFilter(Aws::String&& key, const Criterion& value) { m_filterHasBeenSet = true; m_filter.emplace(std::move(key), value); return *this; }
82 
86  inline InlineArchiveRule& AddFilter(const Aws::String& key, Criterion&& value) { m_filterHasBeenSet = true; m_filter.emplace(key, std::move(value)); return *this; }
87 
91  inline InlineArchiveRule& AddFilter(Aws::String&& key, Criterion&& value) { m_filterHasBeenSet = true; m_filter.emplace(std::move(key), std::move(value)); return *this; }
92 
96  inline InlineArchiveRule& AddFilter(const char* key, Criterion&& value) { m_filterHasBeenSet = true; m_filter.emplace(key, std::move(value)); return *this; }
97 
101  inline InlineArchiveRule& AddFilter(const char* key, const Criterion& value) { m_filterHasBeenSet = true; m_filter.emplace(key, value); return *this; }
102 
103 
107  inline const Aws::String& GetRuleName() const{ return m_ruleName; }
108 
112  inline bool RuleNameHasBeenSet() const { return m_ruleNameHasBeenSet; }
113 
117  inline void SetRuleName(const Aws::String& value) { m_ruleNameHasBeenSet = true; m_ruleName = value; }
118 
122  inline void SetRuleName(Aws::String&& value) { m_ruleNameHasBeenSet = true; m_ruleName = std::move(value); }
123 
127  inline void SetRuleName(const char* value) { m_ruleNameHasBeenSet = true; m_ruleName.assign(value); }
128 
132  inline InlineArchiveRule& WithRuleName(const Aws::String& value) { SetRuleName(value); return *this;}
133 
137  inline InlineArchiveRule& WithRuleName(Aws::String&& value) { SetRuleName(std::move(value)); return *this;}
138 
142  inline InlineArchiveRule& WithRuleName(const char* value) { SetRuleName(value); return *this;}
143 
144  private:
145 
147  bool m_filterHasBeenSet;
148 
149  Aws::String m_ruleName;
150  bool m_ruleNameHasBeenSet;
151  };
152 
153 } // namespace Model
154 } // namespace AccessAnalyzer
155 } // namespace Aws
Aws::AccessAnalyzer::Model::InlineArchiveRule::SetRuleName
void SetRuleName(const char *value)
Definition: InlineArchiveRule.h:127
Aws::AccessAnalyzer::Model::InlineArchiveRule::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
AccessAnalyzer_EXPORTS.h
Aws::AccessAnalyzer::Model::InlineArchiveRule::SetRuleName
void SetRuleName(Aws::String &&value)
Definition: InlineArchiveRule.h:122
Aws::AccessAnalyzer::Model::InlineArchiveRule::SetFilter
void SetFilter(Aws::Map< Aws::String, Criterion > &&value)
Definition: InlineArchiveRule.h:61
Aws::AccessAnalyzer::Model::InlineArchiveRule
Definition: InlineArchiveRule.h:35
Aws::AccessAnalyzer::Model::InlineArchiveRule::operator=
InlineArchiveRule & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::AccessAnalyzer::Model::InlineArchiveRule::WithRuleName
InlineArchiveRule & WithRuleName(const char *value)
Definition: InlineArchiveRule.h:142
Aws::AccessAnalyzer::Model::Criterion
Definition: Criterion.h:34
Aws::AccessAnalyzer::Model::InlineArchiveRule::WithFilter
InlineArchiveRule & WithFilter(const Aws::Map< Aws::String, Criterion > &value)
Definition: InlineArchiveRule.h:66
Criterion.h
Aws::AccessAnalyzer::Model::InlineArchiveRule::AddFilter
InlineArchiveRule & AddFilter(Aws::String &&key, Criterion &&value)
Definition: InlineArchiveRule.h:91
Aws::AccessAnalyzer::Model::InlineArchiveRule::AddFilter
InlineArchiveRule & AddFilter(const Aws::String &key, const Criterion &value)
Definition: InlineArchiveRule.h:76
Aws::AccessAnalyzer::Model::InlineArchiveRule::SetFilter
void SetFilter(const Aws::Map< Aws::String, Criterion > &value)
Definition: InlineArchiveRule.h:56
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::AccessAnalyzer::Model::InlineArchiveRule::AddFilter
InlineArchiveRule & AddFilter(const char *key, Criterion &&value)
Definition: InlineArchiveRule.h:96
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::AccessAnalyzer::Model::InlineArchiveRule::GetRuleName
const Aws::String & GetRuleName() const
Definition: InlineArchiveRule.h:107
Aws::AccessAnalyzer::Model::InlineArchiveRule::WithRuleName
InlineArchiveRule & WithRuleName(const Aws::String &value)
Definition: InlineArchiveRule.h:132
Aws::AccessAnalyzer::Model::InlineArchiveRule::InlineArchiveRule
InlineArchiveRule()
Aws::AccessAnalyzer::Model::InlineArchiveRule::InlineArchiveRule
InlineArchiveRule(Aws::Utils::Json::JsonView jsonValue)
Aws::AccessAnalyzer::Model::InlineArchiveRule::FilterHasBeenSet
bool FilterHasBeenSet() const
Definition: InlineArchiveRule.h:51
Aws::AccessAnalyzer::Model::InlineArchiveRule::GetFilter
const Aws::Map< Aws::String, Criterion > & GetFilter() const
Definition: InlineArchiveRule.h:46
Aws::AccessAnalyzer::Model::InlineArchiveRule::WithRuleName
InlineArchiveRule & WithRuleName(Aws::String &&value)
Definition: InlineArchiveRule.h:137
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws::AccessAnalyzer::Model::InlineArchiveRule::WithFilter
InlineArchiveRule & WithFilter(Aws::Map< Aws::String, Criterion > &&value)
Definition: InlineArchiveRule.h:71
Aws
Definition: AccessManagementClient.h:15
Aws::AccessAnalyzer::Model::InlineArchiveRule::SetRuleName
void SetRuleName(const Aws::String &value)
Definition: InlineArchiveRule.h:117
Aws::AccessAnalyzer::Model::InlineArchiveRule::AddFilter
InlineArchiveRule & AddFilter(Aws::String &&key, const Criterion &value)
Definition: InlineArchiveRule.h:81
AWS_ACCESSANALYZER_API
#define AWS_ACCESSANALYZER_API
Definition: AccessAnalyzer_EXPORTS.h:28
Aws::AccessAnalyzer::Model::InlineArchiveRule::RuleNameHasBeenSet
bool RuleNameHasBeenSet() const
Definition: InlineArchiveRule.h:112
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AccessAnalyzer::Model::InlineArchiveRule::AddFilter
InlineArchiveRule & AddFilter(const Aws::String &key, Criterion &&value)
Definition: InlineArchiveRule.h:86
AWSMap.h
Aws::AccessAnalyzer::Model::InlineArchiveRule::AddFilter
InlineArchiveRule & AddFilter(const char *key, const Criterion &value)
Definition: InlineArchiveRule.h:101
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19