AWS SDK for C++  0.14.3
AWS SDK for C++
FindingsFilter.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Json
26 {
27  class JsonValue;
28 } // namespace Json
29 } // namespace Utils
30 namespace Inspector
31 {
32 namespace Model
33 {
34 
40  {
41  public:
44  FindingsFilter& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
45  Aws::Utils::Json::JsonValue Jsonize() const;
46 
52  inline const Aws::Vector<Aws::String>& GetRulesPackageArns() const{ return m_rulesPackageArns; }
53 
59  inline void SetRulesPackageArns(const Aws::Vector<Aws::String>& value) { m_rulesPackageArnsHasBeenSet = true; m_rulesPackageArns = value; }
60 
66  inline void SetRulesPackageArns(Aws::Vector<Aws::String>&& value) { m_rulesPackageArnsHasBeenSet = true; m_rulesPackageArns = value; }
67 
73  inline FindingsFilter& WithRulesPackageArns(const Aws::Vector<Aws::String>& value) { SetRulesPackageArns(value); return *this;}
74 
80  inline FindingsFilter& WithRulesPackageArns(Aws::Vector<Aws::String>&& value) { SetRulesPackageArns(value); return *this;}
81 
87  inline FindingsFilter& AddRulesPackageArns(const Aws::String& value) { m_rulesPackageArnsHasBeenSet = true; m_rulesPackageArns.push_back(value); return *this; }
88 
94  inline FindingsFilter& AddRulesPackageArns(Aws::String&& value) { m_rulesPackageArnsHasBeenSet = true; m_rulesPackageArns.push_back(value); return *this; }
95 
101  inline FindingsFilter& AddRulesPackageArns(const char* value) { m_rulesPackageArnsHasBeenSet = true; m_rulesPackageArns.push_back(value); return *this; }
102 
108  inline const Aws::Vector<Aws::String>& GetRuleNames() const{ return m_ruleNames; }
109 
115  inline void SetRuleNames(const Aws::Vector<Aws::String>& value) { m_ruleNamesHasBeenSet = true; m_ruleNames = value; }
116 
122  inline void SetRuleNames(Aws::Vector<Aws::String>&& value) { m_ruleNamesHasBeenSet = true; m_ruleNames = value; }
123 
129  inline FindingsFilter& WithRuleNames(const Aws::Vector<Aws::String>& value) { SetRuleNames(value); return *this;}
130 
136  inline FindingsFilter& WithRuleNames(Aws::Vector<Aws::String>&& value) { SetRuleNames(value); return *this;}
137 
143  inline FindingsFilter& AddRuleNames(const Aws::String& value) { m_ruleNamesHasBeenSet = true; m_ruleNames.push_back(value); return *this; }
144 
150  inline FindingsFilter& AddRuleNames(Aws::String&& value) { m_ruleNamesHasBeenSet = true; m_ruleNames.push_back(value); return *this; }
151 
157  inline FindingsFilter& AddRuleNames(const char* value) { m_ruleNamesHasBeenSet = true; m_ruleNames.push_back(value); return *this; }
158 
164  inline const Aws::Vector<Aws::String>& GetSeverities() const{ return m_severities; }
165 
171  inline void SetSeverities(const Aws::Vector<Aws::String>& value) { m_severitiesHasBeenSet = true; m_severities = value; }
172 
178  inline void SetSeverities(Aws::Vector<Aws::String>&& value) { m_severitiesHasBeenSet = true; m_severities = value; }
179 
185  inline FindingsFilter& WithSeverities(const Aws::Vector<Aws::String>& value) { SetSeverities(value); return *this;}
186 
192  inline FindingsFilter& WithSeverities(Aws::Vector<Aws::String>&& value) { SetSeverities(value); return *this;}
193 
199  inline FindingsFilter& AddSeverities(const Aws::String& value) { m_severitiesHasBeenSet = true; m_severities.push_back(value); return *this; }
200 
206  inline FindingsFilter& AddSeverities(Aws::String&& value) { m_severitiesHasBeenSet = true; m_severities.push_back(value); return *this; }
207 
213  inline FindingsFilter& AddSeverities(const char* value) { m_severitiesHasBeenSet = true; m_severities.push_back(value); return *this; }
214 
220  inline const Aws::Vector<Attribute>& GetAttributes() const{ return m_attributes; }
221 
227  inline void SetAttributes(const Aws::Vector<Attribute>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
228 
234  inline void SetAttributes(Aws::Vector<Attribute>&& value) { m_attributesHasBeenSet = true; m_attributes = value; }
235 
241  inline FindingsFilter& WithAttributes(const Aws::Vector<Attribute>& value) { SetAttributes(value); return *this;}
242 
248  inline FindingsFilter& WithAttributes(Aws::Vector<Attribute>&& value) { SetAttributes(value); return *this;}
249 
255  inline FindingsFilter& AddAttributes(const Attribute& value) { m_attributesHasBeenSet = true; m_attributes.push_back(value); return *this; }
256 
262  inline FindingsFilter& AddAttributes(Attribute&& value) { m_attributesHasBeenSet = true; m_attributes.push_back(value); return *this; }
263 
269  inline const Aws::Vector<Attribute>& GetUserAttributes() const{ return m_userAttributes; }
270 
276  inline void SetUserAttributes(const Aws::Vector<Attribute>& value) { m_userAttributesHasBeenSet = true; m_userAttributes = value; }
277 
283  inline void SetUserAttributes(Aws::Vector<Attribute>&& value) { m_userAttributesHasBeenSet = true; m_userAttributes = value; }
284 
290  inline FindingsFilter& WithUserAttributes(const Aws::Vector<Attribute>& value) { SetUserAttributes(value); return *this;}
291 
297  inline FindingsFilter& WithUserAttributes(Aws::Vector<Attribute>&& value) { SetUserAttributes(value); return *this;}
298 
304  inline FindingsFilter& AddUserAttributes(const Attribute& value) { m_userAttributesHasBeenSet = true; m_userAttributes.push_back(value); return *this; }
305 
311  inline FindingsFilter& AddUserAttributes(Attribute&& value) { m_userAttributesHasBeenSet = true; m_userAttributes.push_back(value); return *this; }
312 
313  private:
314  Aws::Vector<Aws::String> m_rulesPackageArns;
315  bool m_rulesPackageArnsHasBeenSet;
316  Aws::Vector<Aws::String> m_ruleNames;
317  bool m_ruleNamesHasBeenSet;
318  Aws::Vector<Aws::String> m_severities;
319  bool m_severitiesHasBeenSet;
320  Aws::Vector<Attribute> m_attributes;
321  bool m_attributesHasBeenSet;
322  Aws::Vector<Attribute> m_userAttributes;
323  bool m_userAttributesHasBeenSet;
324  };
325 
326 } // namespace Model
327 } // namespace Inspector
328 } // namespace Aws
FindingsFilter & AddAttributes(const Attribute &value)
FindingsFilter & AddSeverities(const char *value)
void SetRuleNames(const Aws::Vector< Aws::String > &value)
void SetAttributes(const Aws::Vector< Attribute > &value)
FindingsFilter & AddRulesPackageArns(const char *value)
void SetSeverities(Aws::Vector< Aws::String > &&value)
void SetRulesPackageArns(Aws::Vector< Aws::String > &&value)
FindingsFilter & AddRuleNames(Aws::String &&value)
#define AWS_INSPECTOR_API
FindingsFilter & AddUserAttributes(const Attribute &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
FindingsFilter & AddRuleNames(const Aws::String &value)
FindingsFilter & AddUserAttributes(Attribute &&value)
FindingsFilter & WithUserAttributes(const Aws::Vector< Attribute > &value)
void SetRuleNames(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Attribute > & GetUserAttributes() const
FindingsFilter & AddAttributes(Attribute &&value)
FindingsFilter & WithSeverities(const Aws::Vector< Aws::String > &value)
FindingsFilter & WithRuleNames(const Aws::Vector< Aws::String > &value)
FindingsFilter & AddRulesPackageArns(const Aws::String &value)
void SetUserAttributes(Aws::Vector< Attribute > &&value)
FindingsFilter & WithRulesPackageArns(const Aws::Vector< Aws::String > &value)
void SetRulesPackageArns(const Aws::Vector< Aws::String > &value)
FindingsFilter & AddRulesPackageArns(Aws::String &&value)
FindingsFilter & WithRuleNames(Aws::Vector< Aws::String > &&value)
FindingsFilter & WithRulesPackageArns(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Attribute > & GetAttributes() const
FindingsFilter & AddRuleNames(const char *value)
FindingsFilter & WithUserAttributes(Aws::Vector< Attribute > &&value)
void SetUserAttributes(const Aws::Vector< Attribute > &value)
const Aws::Vector< Aws::String > & GetRulesPackageArns() const
FindingsFilter & AddSeverities(const Aws::String &value)
FindingsFilter & WithSeverities(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetSeverities() const
const Aws::Vector< Aws::String > & GetRuleNames() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetSeverities(const Aws::Vector< Aws::String > &value)
FindingsFilter & AddSeverities(Aws::String &&value)
FindingsFilter & WithAttributes(Aws::Vector< Attribute > &&value)
void SetAttributes(Aws::Vector< Attribute > &&value)
FindingsFilter & WithAttributes(const Aws::Vector< Attribute > &value)
JSON (JavaScript Object Notation).