AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CisScanConfiguration.h
1
6#pragma once
7#include <aws/inspector2/Inspector2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/inspector2/model/Schedule.h>
10#include <aws/inspector2/model/CisSecurityLevel.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/inspector2/model/CisTargets.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Inspector2
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_INSPECTOR2_API CisScanConfiguration() = default;
39 AWS_INSPECTOR2_API CisScanConfiguration(Aws::Utils::Json::JsonView jsonValue);
41 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetOwnerId() const { return m_ownerId; }
49 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
50 template<typename OwnerIdT = Aws::String>
51 void SetOwnerId(OwnerIdT&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::forward<OwnerIdT>(value); }
52 template<typename OwnerIdT = Aws::String>
53 CisScanConfiguration& WithOwnerId(OwnerIdT&& value) { SetOwnerId(std::forward<OwnerIdT>(value)); return *this;}
55
57
60 inline const Aws::String& GetScanConfigurationArn() const { return m_scanConfigurationArn; }
61 inline bool ScanConfigurationArnHasBeenSet() const { return m_scanConfigurationArnHasBeenSet; }
62 template<typename ScanConfigurationArnT = Aws::String>
63 void SetScanConfigurationArn(ScanConfigurationArnT&& value) { m_scanConfigurationArnHasBeenSet = true; m_scanConfigurationArn = std::forward<ScanConfigurationArnT>(value); }
64 template<typename ScanConfigurationArnT = Aws::String>
65 CisScanConfiguration& WithScanConfigurationArn(ScanConfigurationArnT&& value) { SetScanConfigurationArn(std::forward<ScanConfigurationArnT>(value)); return *this;}
67
69
72 inline const Aws::String& GetScanName() const { return m_scanName; }
73 inline bool ScanNameHasBeenSet() const { return m_scanNameHasBeenSet; }
74 template<typename ScanNameT = Aws::String>
75 void SetScanName(ScanNameT&& value) { m_scanNameHasBeenSet = true; m_scanName = std::forward<ScanNameT>(value); }
76 template<typename ScanNameT = Aws::String>
77 CisScanConfiguration& WithScanName(ScanNameT&& value) { SetScanName(std::forward<ScanNameT>(value)); return *this;}
79
81
84 inline const Schedule& GetSchedule() const { return m_schedule; }
85 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
86 template<typename ScheduleT = Schedule>
87 void SetSchedule(ScheduleT&& value) { m_scheduleHasBeenSet = true; m_schedule = std::forward<ScheduleT>(value); }
88 template<typename ScheduleT = Schedule>
89 CisScanConfiguration& WithSchedule(ScheduleT&& value) { SetSchedule(std::forward<ScheduleT>(value)); return *this;}
91
93
96 inline CisSecurityLevel GetSecurityLevel() const { return m_securityLevel; }
97 inline bool SecurityLevelHasBeenSet() const { return m_securityLevelHasBeenSet; }
98 inline void SetSecurityLevel(CisSecurityLevel value) { m_securityLevelHasBeenSet = true; m_securityLevel = value; }
101
103
106 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
107 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
108 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
109 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
110 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
111 CisScanConfiguration& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
112 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
113 CisScanConfiguration& AddTags(TagsKeyT&& key, TagsValueT&& value) {
114 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
115 }
117
119
122 inline const CisTargets& GetTargets() const { return m_targets; }
123 inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
124 template<typename TargetsT = CisTargets>
125 void SetTargets(TargetsT&& value) { m_targetsHasBeenSet = true; m_targets = std::forward<TargetsT>(value); }
126 template<typename TargetsT = CisTargets>
127 CisScanConfiguration& WithTargets(TargetsT&& value) { SetTargets(std::forward<TargetsT>(value)); return *this;}
129 private:
130
131 Aws::String m_ownerId;
132 bool m_ownerIdHasBeenSet = false;
133
134 Aws::String m_scanConfigurationArn;
135 bool m_scanConfigurationArnHasBeenSet = false;
136
137 Aws::String m_scanName;
138 bool m_scanNameHasBeenSet = false;
139
140 Schedule m_schedule;
141 bool m_scheduleHasBeenSet = false;
142
144 bool m_securityLevelHasBeenSet = false;
145
147 bool m_tagsHasBeenSet = false;
148
149 CisTargets m_targets;
150 bool m_targetsHasBeenSet = false;
151 };
152
153} // namespace Model
154} // namespace Inspector2
155} // 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