AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CodeSecurityScanConfigurationSummary.h
1
6#pragma once
7#include <aws/inspector2/Inspector2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/inspector2/model/PeriodicScanFrequency.h>
11#include <aws/inspector2/model/ScopeSettings.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/inspector2/model/ContinuousIntegrationScanEvent.h>
14#include <aws/inspector2/model/RuleSetCategory.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace Inspector2
28{
29namespace Model
30{
31
39 {
40 public:
41 AWS_INSPECTOR2_API CodeSecurityScanConfigurationSummary() = default;
44 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
51 inline const Aws::Vector<ContinuousIntegrationScanEvent>& GetContinuousIntegrationScanSupportedEvents() const { return m_continuousIntegrationScanSupportedEvents; }
52 inline bool ContinuousIntegrationScanSupportedEventsHasBeenSet() const { return m_continuousIntegrationScanSupportedEventsHasBeenSet; }
53 template<typename ContinuousIntegrationScanSupportedEventsT = Aws::Vector<ContinuousIntegrationScanEvent>>
54 void SetContinuousIntegrationScanSupportedEvents(ContinuousIntegrationScanSupportedEventsT&& value) { m_continuousIntegrationScanSupportedEventsHasBeenSet = true; m_continuousIntegrationScanSupportedEvents = std::forward<ContinuousIntegrationScanSupportedEventsT>(value); }
55 template<typename ContinuousIntegrationScanSupportedEventsT = Aws::Vector<ContinuousIntegrationScanEvent>>
56 CodeSecurityScanConfigurationSummary& WithContinuousIntegrationScanSupportedEvents(ContinuousIntegrationScanSupportedEventsT&& value) { SetContinuousIntegrationScanSupportedEvents(std::forward<ContinuousIntegrationScanSupportedEventsT>(value)); return *this;}
57 inline CodeSecurityScanConfigurationSummary& AddContinuousIntegrationScanSupportedEvents(ContinuousIntegrationScanEvent value) { m_continuousIntegrationScanSupportedEventsHasBeenSet = true; m_continuousIntegrationScanSupportedEvents.push_back(value); return *this; }
59
61
64 inline const Aws::String& GetFrequencyExpression() const { return m_frequencyExpression; }
65 inline bool FrequencyExpressionHasBeenSet() const { return m_frequencyExpressionHasBeenSet; }
66 template<typename FrequencyExpressionT = Aws::String>
67 void SetFrequencyExpression(FrequencyExpressionT&& value) { m_frequencyExpressionHasBeenSet = true; m_frequencyExpression = std::forward<FrequencyExpressionT>(value); }
68 template<typename FrequencyExpressionT = Aws::String>
69 CodeSecurityScanConfigurationSummary& WithFrequencyExpression(FrequencyExpressionT&& value) { SetFrequencyExpression(std::forward<FrequencyExpressionT>(value)); return *this;}
71
73
76 inline const Aws::String& GetName() const { return m_name; }
77 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
78 template<typename NameT = Aws::String>
79 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
80 template<typename NameT = Aws::String>
81 CodeSecurityScanConfigurationSummary& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
83
85
88 inline const Aws::String& GetOwnerAccountId() const { return m_ownerAccountId; }
89 inline bool OwnerAccountIdHasBeenSet() const { return m_ownerAccountIdHasBeenSet; }
90 template<typename OwnerAccountIdT = Aws::String>
91 void SetOwnerAccountId(OwnerAccountIdT&& value) { m_ownerAccountIdHasBeenSet = true; m_ownerAccountId = std::forward<OwnerAccountIdT>(value); }
92 template<typename OwnerAccountIdT = Aws::String>
93 CodeSecurityScanConfigurationSummary& WithOwnerAccountId(OwnerAccountIdT&& value) { SetOwnerAccountId(std::forward<OwnerAccountIdT>(value)); return *this;}
95
97
100 inline PeriodicScanFrequency GetPeriodicScanFrequency() const { return m_periodicScanFrequency; }
101 inline bool PeriodicScanFrequencyHasBeenSet() const { return m_periodicScanFrequencyHasBeenSet; }
102 inline void SetPeriodicScanFrequency(PeriodicScanFrequency value) { m_periodicScanFrequencyHasBeenSet = true; m_periodicScanFrequency = value; }
105
107
110 inline const Aws::Vector<RuleSetCategory>& GetRuleSetCategories() const { return m_ruleSetCategories; }
111 inline bool RuleSetCategoriesHasBeenSet() const { return m_ruleSetCategoriesHasBeenSet; }
112 template<typename RuleSetCategoriesT = Aws::Vector<RuleSetCategory>>
113 void SetRuleSetCategories(RuleSetCategoriesT&& value) { m_ruleSetCategoriesHasBeenSet = true; m_ruleSetCategories = std::forward<RuleSetCategoriesT>(value); }
114 template<typename RuleSetCategoriesT = Aws::Vector<RuleSetCategory>>
115 CodeSecurityScanConfigurationSummary& WithRuleSetCategories(RuleSetCategoriesT&& value) { SetRuleSetCategories(std::forward<RuleSetCategoriesT>(value)); return *this;}
116 inline CodeSecurityScanConfigurationSummary& AddRuleSetCategories(RuleSetCategory value) { m_ruleSetCategoriesHasBeenSet = true; m_ruleSetCategories.push_back(value); return *this; }
118
120
123 inline const Aws::String& GetScanConfigurationArn() const { return m_scanConfigurationArn; }
124 inline bool ScanConfigurationArnHasBeenSet() const { return m_scanConfigurationArnHasBeenSet; }
125 template<typename ScanConfigurationArnT = Aws::String>
126 void SetScanConfigurationArn(ScanConfigurationArnT&& value) { m_scanConfigurationArnHasBeenSet = true; m_scanConfigurationArn = std::forward<ScanConfigurationArnT>(value); }
127 template<typename ScanConfigurationArnT = Aws::String>
128 CodeSecurityScanConfigurationSummary& WithScanConfigurationArn(ScanConfigurationArnT&& value) { SetScanConfigurationArn(std::forward<ScanConfigurationArnT>(value)); return *this;}
130
132
137 inline const ScopeSettings& GetScopeSettings() const { return m_scopeSettings; }
138 inline bool ScopeSettingsHasBeenSet() const { return m_scopeSettingsHasBeenSet; }
139 template<typename ScopeSettingsT = ScopeSettings>
140 void SetScopeSettings(ScopeSettingsT&& value) { m_scopeSettingsHasBeenSet = true; m_scopeSettings = std::forward<ScopeSettingsT>(value); }
141 template<typename ScopeSettingsT = ScopeSettings>
142 CodeSecurityScanConfigurationSummary& WithScopeSettings(ScopeSettingsT&& value) { SetScopeSettings(std::forward<ScopeSettingsT>(value)); return *this;}
144
146
149 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
150 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
151 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
152 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
153 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
154 CodeSecurityScanConfigurationSummary& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
155 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
156 CodeSecurityScanConfigurationSummary& AddTags(TagsKeyT&& key, TagsValueT&& value) {
157 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
158 }
160 private:
161
162 Aws::Vector<ContinuousIntegrationScanEvent> m_continuousIntegrationScanSupportedEvents;
163 bool m_continuousIntegrationScanSupportedEventsHasBeenSet = false;
164
165 Aws::String m_frequencyExpression;
166 bool m_frequencyExpressionHasBeenSet = false;
167
168 Aws::String m_name;
169 bool m_nameHasBeenSet = false;
170
171 Aws::String m_ownerAccountId;
172 bool m_ownerAccountIdHasBeenSet = false;
173
175 bool m_periodicScanFrequencyHasBeenSet = false;
176
177 Aws::Vector<RuleSetCategory> m_ruleSetCategories;
178 bool m_ruleSetCategoriesHasBeenSet = false;
179
180 Aws::String m_scanConfigurationArn;
181 bool m_scanConfigurationArnHasBeenSet = false;
182
183 ScopeSettings m_scopeSettings;
184 bool m_scopeSettingsHasBeenSet = false;
185
187 bool m_tagsHasBeenSet = false;
188 };
189
190} // namespace Model
191} // namespace Inspector2
192} // namespace Aws
CodeSecurityScanConfigurationSummary & WithScopeSettings(ScopeSettingsT &&value)
CodeSecurityScanConfigurationSummary & WithOwnerAccountId(OwnerAccountIdT &&value)
CodeSecurityScanConfigurationSummary & WithFrequencyExpression(FrequencyExpressionT &&value)
CodeSecurityScanConfigurationSummary & AddTags(TagsKeyT &&key, TagsValueT &&value)
CodeSecurityScanConfigurationSummary & AddContinuousIntegrationScanSupportedEvents(ContinuousIntegrationScanEvent value)
void SetContinuousIntegrationScanSupportedEvents(ContinuousIntegrationScanSupportedEventsT &&value)
AWS_INSPECTOR2_API CodeSecurityScanConfigurationSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
CodeSecurityScanConfigurationSummary & WithPeriodicScanFrequency(PeriodicScanFrequency value)
CodeSecurityScanConfigurationSummary & WithRuleSetCategories(RuleSetCategoriesT &&value)
const Aws::Vector< ContinuousIntegrationScanEvent > & GetContinuousIntegrationScanSupportedEvents() const
CodeSecurityScanConfigurationSummary & WithScanConfigurationArn(ScanConfigurationArnT &&value)
CodeSecurityScanConfigurationSummary & AddRuleSetCategories(RuleSetCategory value)
AWS_INSPECTOR2_API CodeSecurityScanConfigurationSummary(Aws::Utils::Json::JsonView jsonValue)
CodeSecurityScanConfigurationSummary & WithContinuousIntegrationScanSupportedEvents(ContinuousIntegrationScanSupportedEventsT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue