AWS SDK for C++  1.9.129
AWS SDK for C++
FindingCriteria.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 GuardDuty
24 {
25 namespace Model
26 {
27 
35  {
36  public:
41 
42 
47  inline const Aws::Map<Aws::String, Condition>& GetCriterion() const{ return m_criterion; }
48 
53  inline bool CriterionHasBeenSet() const { return m_criterionHasBeenSet; }
54 
59  inline void SetCriterion(const Aws::Map<Aws::String, Condition>& value) { m_criterionHasBeenSet = true; m_criterion = value; }
60 
65  inline void SetCriterion(Aws::Map<Aws::String, Condition>&& value) { m_criterionHasBeenSet = true; m_criterion = std::move(value); }
66 
71  inline FindingCriteria& WithCriterion(const Aws::Map<Aws::String, Condition>& value) { SetCriterion(value); return *this;}
72 
77  inline FindingCriteria& WithCriterion(Aws::Map<Aws::String, Condition>&& value) { SetCriterion(std::move(value)); return *this;}
78 
83  inline FindingCriteria& AddCriterion(const Aws::String& key, const Condition& value) { m_criterionHasBeenSet = true; m_criterion.emplace(key, value); return *this; }
84 
89  inline FindingCriteria& AddCriterion(Aws::String&& key, const Condition& value) { m_criterionHasBeenSet = true; m_criterion.emplace(std::move(key), value); return *this; }
90 
95  inline FindingCriteria& AddCriterion(const Aws::String& key, Condition&& value) { m_criterionHasBeenSet = true; m_criterion.emplace(key, std::move(value)); return *this; }
96 
101  inline FindingCriteria& AddCriterion(Aws::String&& key, Condition&& value) { m_criterionHasBeenSet = true; m_criterion.emplace(std::move(key), std::move(value)); return *this; }
102 
107  inline FindingCriteria& AddCriterion(const char* key, Condition&& value) { m_criterionHasBeenSet = true; m_criterion.emplace(key, std::move(value)); return *this; }
108 
113  inline FindingCriteria& AddCriterion(const char* key, const Condition& value) { m_criterionHasBeenSet = true; m_criterion.emplace(key, value); return *this; }
114 
115  private:
116 
118  bool m_criterionHasBeenSet;
119  };
120 
121 } // namespace Model
122 } // namespace GuardDuty
123 } // namespace Aws
Aws::GuardDuty::Model::FindingCriteria::CriterionHasBeenSet
bool CriterionHasBeenSet() const
Definition: FindingCriteria.h:53
Aws::GuardDuty::Model::FindingCriteria::WithCriterion
FindingCriteria & WithCriterion(const Aws::Map< Aws::String, Condition > &value)
Definition: FindingCriteria.h:71
Aws::GuardDuty::Model::FindingCriteria::WithCriterion
FindingCriteria & WithCriterion(Aws::Map< Aws::String, Condition > &&value)
Definition: FindingCriteria.h:77
Aws::GuardDuty::Model::FindingCriteria::AddCriterion
FindingCriteria & AddCriterion(Aws::String &&key, Condition &&value)
Definition: FindingCriteria.h:101
Aws::GuardDuty::Model::FindingCriteria::FindingCriteria
FindingCriteria(Aws::Utils::Json::JsonView jsonValue)
Aws::GuardDuty::Model::FindingCriteria
Definition: FindingCriteria.h:35
Condition.h
Aws::GuardDuty::Model::FindingCriteria::operator=
FindingCriteria & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::GuardDuty::Model::FindingCriteria::AddCriterion
FindingCriteria & AddCriterion(const Aws::String &key, const Condition &value)
Definition: FindingCriteria.h:83
GuardDuty_EXPORTS.h
Aws::GuardDuty::Model::FindingCriteria::AddCriterion
FindingCriteria & AddCriterion(const char *key, Condition &&value)
Definition: FindingCriteria.h:107
AWS_GUARDDUTY_API
#define AWS_GUARDDUTY_API
Definition: GuardDuty_EXPORTS.h:28
Aws::GuardDuty::Model::FindingCriteria::AddCriterion
FindingCriteria & AddCriterion(const char *key, const Condition &value)
Definition: FindingCriteria.h:113
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::GuardDuty::Model::FindingCriteria::SetCriterion
void SetCriterion(const Aws::Map< Aws::String, Condition > &value)
Definition: FindingCriteria.h:59
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::GuardDuty::Model::FindingCriteria::SetCriterion
void SetCriterion(Aws::Map< Aws::String, Condition > &&value)
Definition: FindingCriteria.h:65
Aws
Definition: AccessManagementClient.h:15
Aws::GuardDuty::Model::FindingCriteria::AddCriterion
FindingCriteria & AddCriterion(Aws::String &&key, const Condition &value)
Definition: FindingCriteria.h:89
Aws::GuardDuty::Model::FindingCriteria::FindingCriteria
FindingCriteria()
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GuardDuty::Model::Condition
Definition: Condition.h:33
Aws::GuardDuty::Model::FindingCriteria::GetCriterion
const Aws::Map< Aws::String, Condition > & GetCriterion() const
Definition: FindingCriteria.h:47
Aws::GuardDuty::Model::FindingCriteria::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
AWSMap.h
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::GuardDuty::Model::FindingCriteria::AddCriterion
FindingCriteria & AddCriterion(const Aws::String &key, Condition &&value)
Definition: FindingCriteria.h:95