AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
CisScanConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/inspector2/Inspector2_EXPORTS.h>
10#include <aws/inspector2/model/CisSecurityLevel.h>
11#include <aws/inspector2/model/CisTargets.h>
12#include <aws/inspector2/model/Schedule.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Inspector2 {
24namespace Model {
25
32 public:
33 AWS_INSPECTOR2_API CisScanConfiguration() = default;
34 AWS_INSPECTOR2_API CisScanConfiguration(Aws::Utils::Json::JsonView jsonValue);
36 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetScanConfigurationArn() const { return m_scanConfigurationArn; }
43 inline bool ScanConfigurationArnHasBeenSet() const { return m_scanConfigurationArnHasBeenSet; }
44 template <typename ScanConfigurationArnT = Aws::String>
45 void SetScanConfigurationArn(ScanConfigurationArnT&& value) {
46 m_scanConfigurationArnHasBeenSet = true;
47 m_scanConfigurationArn = std::forward<ScanConfigurationArnT>(value);
48 }
49 template <typename ScanConfigurationArnT = Aws::String>
50 CisScanConfiguration& WithScanConfigurationArn(ScanConfigurationArnT&& value) {
51 SetScanConfigurationArn(std::forward<ScanConfigurationArnT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetOwnerId() const { return m_ownerId; }
61 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
62 template <typename OwnerIdT = Aws::String>
63 void SetOwnerId(OwnerIdT&& value) {
64 m_ownerIdHasBeenSet = true;
65 m_ownerId = std::forward<OwnerIdT>(value);
66 }
67 template <typename OwnerIdT = Aws::String>
68 CisScanConfiguration& WithOwnerId(OwnerIdT&& value) {
69 SetOwnerId(std::forward<OwnerIdT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetScanName() const { return m_scanName; }
79 inline bool ScanNameHasBeenSet() const { return m_scanNameHasBeenSet; }
80 template <typename ScanNameT = Aws::String>
81 void SetScanName(ScanNameT&& value) {
82 m_scanNameHasBeenSet = true;
83 m_scanName = std::forward<ScanNameT>(value);
84 }
85 template <typename ScanNameT = Aws::String>
86 CisScanConfiguration& WithScanName(ScanNameT&& value) {
87 SetScanName(std::forward<ScanNameT>(value));
88 return *this;
89 }
91
93
96 inline CisSecurityLevel GetSecurityLevel() const { return m_securityLevel; }
97 inline bool SecurityLevelHasBeenSet() const { return m_securityLevelHasBeenSet; }
99 m_securityLevelHasBeenSet = true;
100 m_securityLevel = value;
101 }
103 SetSecurityLevel(value);
104 return *this;
105 }
107
109
112 inline const Schedule& GetSchedule() const { return m_schedule; }
113 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
114 template <typename ScheduleT = Schedule>
115 void SetSchedule(ScheduleT&& value) {
116 m_scheduleHasBeenSet = true;
117 m_schedule = std::forward<ScheduleT>(value);
118 }
119 template <typename ScheduleT = Schedule>
120 CisScanConfiguration& WithSchedule(ScheduleT&& value) {
121 SetSchedule(std::forward<ScheduleT>(value));
122 return *this;
123 }
125
127
130 inline const CisTargets& GetTargets() const { return m_targets; }
131 inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
132 template <typename TargetsT = CisTargets>
133 void SetTargets(TargetsT&& value) {
134 m_targetsHasBeenSet = true;
135 m_targets = std::forward<TargetsT>(value);
136 }
137 template <typename TargetsT = CisTargets>
139 SetTargets(std::forward<TargetsT>(value));
140 return *this;
141 }
143
145
148 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
149 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
150 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
151 void SetTags(TagsT&& value) {
152 m_tagsHasBeenSet = true;
153 m_tags = std::forward<TagsT>(value);
154 }
155 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
157 SetTags(std::forward<TagsT>(value));
158 return *this;
159 }
160 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
161 CisScanConfiguration& AddTags(TagsKeyT&& key, TagsValueT&& value) {
162 m_tagsHasBeenSet = true;
163 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
164 return *this;
165 }
167 private:
168 Aws::String m_scanConfigurationArn;
169
170 Aws::String m_ownerId;
171
172 Aws::String m_scanName;
173
175
176 Schedule m_schedule;
177
178 CisTargets m_targets;
179
181 bool m_scanConfigurationArnHasBeenSet = false;
182 bool m_ownerIdHasBeenSet = false;
183 bool m_scanNameHasBeenSet = false;
184 bool m_securityLevelHasBeenSet = false;
185 bool m_scheduleHasBeenSet = false;
186 bool m_targetsHasBeenSet = false;
187 bool m_tagsHasBeenSet = false;
188};
189
190} // namespace Model
191} // namespace Inspector2
192} // namespace Aws
CisScanConfiguration & WithTargets(TargetsT &&value)
void SetScanConfigurationArn(ScanConfigurationArnT &&value)
CisScanConfiguration & WithTags(TagsT &&value)
AWS_INSPECTOR2_API CisScanConfiguration(Aws::Utils::Json::JsonView jsonValue)
CisScanConfiguration & AddTags(TagsKeyT &&key, TagsValueT &&value)
CisScanConfiguration & WithSchedule(ScheduleT &&value)
CisScanConfiguration & WithOwnerId(OwnerIdT &&value)
CisScanConfiguration & WithSecurityLevel(CisSecurityLevel value)
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
CisScanConfiguration & WithScanName(ScanNameT &&value)
CisScanConfiguration & WithScanConfigurationArn(ScanConfigurationArnT &&value)
AWS_INSPECTOR2_API CisScanConfiguration()=default
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_INSPECTOR2_API CisScanConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
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
Aws::Utils::Json::JsonValue JsonValue