AWS SDK for C++

AWS SDK for C++ Version 1.11.761

Loading...
Searching...
No Matches
ProjectPeriodicScanConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/inspector2/Inspector2_EXPORTS.h>
10#include <aws/inspector2/model/RuleSetCategory.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Inspector2 {
22namespace Model {
23
31 public:
32 AWS_INSPECTOR2_API ProjectPeriodicScanConfiguration() = default;
35 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const Aws::String& GetFrequencyExpression() const { return m_frequencyExpression; }
43 inline bool FrequencyExpressionHasBeenSet() const { return m_frequencyExpressionHasBeenSet; }
44 template <typename FrequencyExpressionT = Aws::String>
45 void SetFrequencyExpression(FrequencyExpressionT&& value) {
46 m_frequencyExpressionHasBeenSet = true;
47 m_frequencyExpression = std::forward<FrequencyExpressionT>(value);
48 }
49 template <typename FrequencyExpressionT = Aws::String>
51 SetFrequencyExpression(std::forward<FrequencyExpressionT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::Vector<RuleSetCategory>& GetRuleSetCategories() const { return m_ruleSetCategories; }
62 inline bool RuleSetCategoriesHasBeenSet() const { return m_ruleSetCategoriesHasBeenSet; }
63 template <typename RuleSetCategoriesT = Aws::Vector<RuleSetCategory>>
64 void SetRuleSetCategories(RuleSetCategoriesT&& value) {
65 m_ruleSetCategoriesHasBeenSet = true;
66 m_ruleSetCategories = std::forward<RuleSetCategoriesT>(value);
67 }
68 template <typename RuleSetCategoriesT = Aws::Vector<RuleSetCategory>>
70 SetRuleSetCategories(std::forward<RuleSetCategoriesT>(value));
71 return *this;
72 }
74 m_ruleSetCategoriesHasBeenSet = true;
75 m_ruleSetCategories.push_back(value);
76 return *this;
77 }
79 private:
80 Aws::String m_frequencyExpression;
81
82 Aws::Vector<RuleSetCategory> m_ruleSetCategories;
83 bool m_frequencyExpressionHasBeenSet = false;
84 bool m_ruleSetCategoriesHasBeenSet = false;
85};
86
87} // namespace Model
88} // namespace Inspector2
89} // namespace Aws
ProjectPeriodicScanConfiguration & WithFrequencyExpression(FrequencyExpressionT &&value)
ProjectPeriodicScanConfiguration & AddRuleSetCategories(RuleSetCategory value)
AWS_INSPECTOR2_API ProjectPeriodicScanConfiguration()=default
const Aws::Vector< RuleSetCategory > & GetRuleSetCategories() const
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_INSPECTOR2_API ProjectPeriodicScanConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
ProjectPeriodicScanConfiguration & WithRuleSetCategories(RuleSetCategoriesT &&value)
AWS_INSPECTOR2_API ProjectPeriodicScanConfiguration(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue