AWS SDK for C++  1.9.157
AWS SDK for C++
ArchiveRuleSummary.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21  class JsonView;
22 } // namespace Json
23 } // namespace Utils
24 namespace AccessAnalyzer
25 {
26 namespace Model
27 {
28 
35  {
36  public:
41 
42 
46  inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
47 
51  inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
52 
56  inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
57 
61  inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
62 
66  inline ArchiveRuleSummary& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
67 
71  inline ArchiveRuleSummary& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
72 
73 
77  inline const Aws::Map<Aws::String, Criterion>& GetFilter() const{ return m_filter; }
78 
82  inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
83 
87  inline void SetFilter(const Aws::Map<Aws::String, Criterion>& value) { m_filterHasBeenSet = true; m_filter = value; }
88 
92  inline void SetFilter(Aws::Map<Aws::String, Criterion>&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }
93 
97  inline ArchiveRuleSummary& WithFilter(const Aws::Map<Aws::String, Criterion>& value) { SetFilter(value); return *this;}
98 
102  inline ArchiveRuleSummary& WithFilter(Aws::Map<Aws::String, Criterion>&& value) { SetFilter(std::move(value)); return *this;}
103 
107  inline ArchiveRuleSummary& AddFilter(const Aws::String& key, const Criterion& value) { m_filterHasBeenSet = true; m_filter.emplace(key, value); return *this; }
108 
112  inline ArchiveRuleSummary& AddFilter(Aws::String&& key, const Criterion& value) { m_filterHasBeenSet = true; m_filter.emplace(std::move(key), value); return *this; }
113 
117  inline ArchiveRuleSummary& AddFilter(const Aws::String& key, Criterion&& value) { m_filterHasBeenSet = true; m_filter.emplace(key, std::move(value)); return *this; }
118 
122  inline ArchiveRuleSummary& AddFilter(Aws::String&& key, Criterion&& value) { m_filterHasBeenSet = true; m_filter.emplace(std::move(key), std::move(value)); return *this; }
123 
127  inline ArchiveRuleSummary& AddFilter(const char* key, Criterion&& value) { m_filterHasBeenSet = true; m_filter.emplace(key, std::move(value)); return *this; }
128 
132  inline ArchiveRuleSummary& AddFilter(const char* key, const Criterion& value) { m_filterHasBeenSet = true; m_filter.emplace(key, value); return *this; }
133 
134 
138  inline const Aws::String& GetRuleName() const{ return m_ruleName; }
139 
143  inline bool RuleNameHasBeenSet() const { return m_ruleNameHasBeenSet; }
144 
148  inline void SetRuleName(const Aws::String& value) { m_ruleNameHasBeenSet = true; m_ruleName = value; }
149 
153  inline void SetRuleName(Aws::String&& value) { m_ruleNameHasBeenSet = true; m_ruleName = std::move(value); }
154 
158  inline void SetRuleName(const char* value) { m_ruleNameHasBeenSet = true; m_ruleName.assign(value); }
159 
163  inline ArchiveRuleSummary& WithRuleName(const Aws::String& value) { SetRuleName(value); return *this;}
164 
168  inline ArchiveRuleSummary& WithRuleName(Aws::String&& value) { SetRuleName(std::move(value)); return *this;}
169 
173  inline ArchiveRuleSummary& WithRuleName(const char* value) { SetRuleName(value); return *this;}
174 
175 
179  inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; }
180 
184  inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
185 
189  inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAtHasBeenSet = true; m_updatedAt = value; }
190 
194  inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::move(value); }
195 
199  inline ArchiveRuleSummary& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;}
200 
204  inline ArchiveRuleSummary& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;}
205 
206  private:
207 
208  Aws::Utils::DateTime m_createdAt;
209  bool m_createdAtHasBeenSet;
210 
212  bool m_filterHasBeenSet;
213 
214  Aws::String m_ruleName;
215  bool m_ruleNameHasBeenSet;
216 
217  Aws::Utils::DateTime m_updatedAt;
218  bool m_updatedAtHasBeenSet;
219  };
220 
221 } // namespace Model
222 } // namespace AccessAnalyzer
223 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
AccessAnalyzer_EXPORTS.h
Aws::AccessAnalyzer::Model::ArchiveRuleSummary::GetFilter
const Aws::Map< Aws::String, Criterion > & GetFilter() const
Definition: ArchiveRuleSummary.h:77
Aws::AccessAnalyzer::Model::ArchiveRuleSummary::CreatedAtHasBeenSet
bool CreatedAtHasBeenSet() const
Definition: ArchiveRuleSummary.h:51
Aws::AccessAnalyzer::Model::ArchiveRuleSummary::WithRuleName
ArchiveRuleSummary & WithRuleName(const Aws::String &value)
Definition: ArchiveRuleSummary.h:163
DateTime.h
Aws::AccessAnalyzer::Model::ArchiveRuleSummary::WithFilter
ArchiveRuleSummary & WithFilter(const Aws::Map< Aws::String, Criterion > &value)
Definition: ArchiveRuleSummary.h:97
Aws::AccessAnalyzer::Model::ArchiveRuleSummary::FilterHasBeenSet
bool FilterHasBeenSet() const
Definition: ArchiveRuleSummary.h:82
Aws::AccessAnalyzer::Model::ArchiveRuleSummary::AddFilter
ArchiveRuleSummary & AddFilter(const char *key, Criterion &&value)
Definition: ArchiveRuleSummary.h:127
Aws::AccessAnalyzer::Model::ArchiveRuleSummary::ArchiveRuleSummary
ArchiveRuleSummary(Aws::Utils::Json::JsonView jsonValue)
Aws::AccessAnalyzer::Model::Criterion
Definition: Criterion.h:34
Criterion.h
Aws::AccessAnalyzer::Model::ArchiveRuleSummary::AddFilter
ArchiveRuleSummary & AddFilter(const char *key, const Criterion &value)
Definition: ArchiveRuleSummary.h:132
Aws::AccessAnalyzer::Model::ArchiveRuleSummary::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::AccessAnalyzer::Model::ArchiveRuleSummary::SetCreatedAt
void SetCreatedAt(const Aws::Utils::DateTime &value)
Definition: ArchiveRuleSummary.h:56
Aws::AccessAnalyzer::Model::ArchiveRuleSummary::GetRuleName
const Aws::String & GetRuleName() const
Definition: ArchiveRuleSummary.h:138
Aws::AccessAnalyzer::Model::ArchiveRuleSummary::ArchiveRuleSummary
ArchiveRuleSummary()
Aws::AccessAnalyzer::Model::ArchiveRuleSummary::SetUpdatedAt
void SetUpdatedAt(Aws::Utils::DateTime &&value)
Definition: ArchiveRuleSummary.h:194
Aws::AccessAnalyzer::Model::ArchiveRuleSummary::SetRuleName
void SetRuleName(const Aws::String &value)
Definition: ArchiveRuleSummary.h:148
Aws::AccessAnalyzer::Model::ArchiveRuleSummary::WithCreatedAt
ArchiveRuleSummary & WithCreatedAt(Aws::Utils::DateTime &&value)
Definition: ArchiveRuleSummary.h:71
Aws::AccessAnalyzer::Model::ArchiveRuleSummary::SetRuleName
void SetRuleName(const char *value)
Definition: ArchiveRuleSummary.h:158
Aws::AccessAnalyzer::Model::ArchiveRuleSummary::AddFilter
ArchiveRuleSummary & AddFilter(Aws::String &&key, const Criterion &value)
Definition: ArchiveRuleSummary.h:112
Aws::AccessAnalyzer::Model::ArchiveRuleSummary::RuleNameHasBeenSet
bool RuleNameHasBeenSet() const
Definition: ArchiveRuleSummary.h:143
Aws::AccessAnalyzer::Model::ArchiveRuleSummary::AddFilter
ArchiveRuleSummary & AddFilter(const Aws::String &key, Criterion &&value)
Definition: ArchiveRuleSummary.h:117
Aws::AccessAnalyzer::Model::ArchiveRuleSummary::AddFilter
ArchiveRuleSummary & AddFilter(const Aws::String &key, const Criterion &value)
Definition: ArchiveRuleSummary.h:107
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::AccessAnalyzer::Model::ArchiveRuleSummary::AddFilter
ArchiveRuleSummary & AddFilter(Aws::String &&key, Criterion &&value)
Definition: ArchiveRuleSummary.h:122
Aws::AccessAnalyzer::Model::ArchiveRuleSummary
Definition: ArchiveRuleSummary.h:35
Aws::AccessAnalyzer::Model::ArchiveRuleSummary::WithUpdatedAt
ArchiveRuleSummary & WithUpdatedAt(Aws::Utils::DateTime &&value)
Definition: ArchiveRuleSummary.h:204
Aws::AccessAnalyzer::Model::ArchiveRuleSummary::SetCreatedAt
void SetCreatedAt(Aws::Utils::DateTime &&value)
Definition: ArchiveRuleSummary.h:61
Aws::AccessAnalyzer::Model::ArchiveRuleSummary::WithRuleName
ArchiveRuleSummary & WithRuleName(const char *value)
Definition: ArchiveRuleSummary.h:173
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws::AccessAnalyzer::Model::ArchiveRuleSummary::WithCreatedAt
ArchiveRuleSummary & WithCreatedAt(const Aws::Utils::DateTime &value)
Definition: ArchiveRuleSummary.h:66
Aws::AccessAnalyzer::Model::ArchiveRuleSummary::SetUpdatedAt
void SetUpdatedAt(const Aws::Utils::DateTime &value)
Definition: ArchiveRuleSummary.h:189
Aws
Definition: AccessManagementClient.h:15
AWS_ACCESSANALYZER_API
#define AWS_ACCESSANALYZER_API
Definition: AccessAnalyzer_EXPORTS.h:28
Aws::AccessAnalyzer::Model::ArchiveRuleSummary::GetUpdatedAt
const Aws::Utils::DateTime & GetUpdatedAt() const
Definition: ArchiveRuleSummary.h:179
Aws::AccessAnalyzer::Model::ArchiveRuleSummary::GetCreatedAt
const Aws::Utils::DateTime & GetCreatedAt() const
Definition: ArchiveRuleSummary.h:46
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AccessAnalyzer::Model::ArchiveRuleSummary::operator=
ArchiveRuleSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::AccessAnalyzer::Model::ArchiveRuleSummary::SetFilter
void SetFilter(const Aws::Map< Aws::String, Criterion > &value)
Definition: ArchiveRuleSummary.h:87
Aws::AccessAnalyzer::Model::ArchiveRuleSummary::SetFilter
void SetFilter(Aws::Map< Aws::String, Criterion > &&value)
Definition: ArchiveRuleSummary.h:92
Aws::AccessAnalyzer::Model::ArchiveRuleSummary::WithUpdatedAt
ArchiveRuleSummary & WithUpdatedAt(const Aws::Utils::DateTime &value)
Definition: ArchiveRuleSummary.h:199
Aws::AccessAnalyzer::Model::ArchiveRuleSummary::WithFilter
ArchiveRuleSummary & WithFilter(Aws::Map< Aws::String, Criterion > &&value)
Definition: ArchiveRuleSummary.h:102
Aws::AccessAnalyzer::Model::ArchiveRuleSummary::UpdatedAtHasBeenSet
bool UpdatedAtHasBeenSet() const
Definition: ArchiveRuleSummary.h:184
AWSMap.h
Aws::AccessAnalyzer::Model::ArchiveRuleSummary::WithRuleName
ArchiveRuleSummary & WithRuleName(Aws::String &&value)
Definition: ArchiveRuleSummary.h:168
Aws::AccessAnalyzer::Model::ArchiveRuleSummary::SetRuleName
void SetRuleName(Aws::String &&value)
Definition: ArchiveRuleSummary.h:153
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19