AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateCisScanConfigurationRequest.h
1
6#pragma once
7#include <aws/inspector2/Inspector2_EXPORTS.h>
8#include <aws/inspector2/Inspector2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/inspector2/model/Schedule.h>
11#include <aws/inspector2/model/CisSecurityLevel.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/inspector2/model/CreateCisTargets.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Inspector2
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_INSPECTOR2_API CreateCisScanConfigurationRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateCisScanConfiguration"; }
35
36 AWS_INSPECTOR2_API Aws::String SerializePayload() const override;
37
38
40
43 inline const Aws::String& GetScanName() const { return m_scanName; }
44 inline bool ScanNameHasBeenSet() const { return m_scanNameHasBeenSet; }
45 template<typename ScanNameT = Aws::String>
46 void SetScanName(ScanNameT&& value) { m_scanNameHasBeenSet = true; m_scanName = std::forward<ScanNameT>(value); }
47 template<typename ScanNameT = Aws::String>
48 CreateCisScanConfigurationRequest& WithScanName(ScanNameT&& value) { SetScanName(std::forward<ScanNameT>(value)); return *this;}
50
52
55 inline const Schedule& GetSchedule() const { return m_schedule; }
56 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
57 template<typename ScheduleT = Schedule>
58 void SetSchedule(ScheduleT&& value) { m_scheduleHasBeenSet = true; m_schedule = std::forward<ScheduleT>(value); }
59 template<typename ScheduleT = Schedule>
60 CreateCisScanConfigurationRequest& WithSchedule(ScheduleT&& value) { SetSchedule(std::forward<ScheduleT>(value)); return *this;}
62
64
68 inline CisSecurityLevel GetSecurityLevel() const { return m_securityLevel; }
69 inline bool SecurityLevelHasBeenSet() const { return m_securityLevelHasBeenSet; }
70 inline void SetSecurityLevel(CisSecurityLevel value) { m_securityLevelHasBeenSet = true; m_securityLevel = value; }
73
75
78 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
79 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
80 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
81 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
82 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
83 CreateCisScanConfigurationRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
84 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
85 CreateCisScanConfigurationRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
86 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
87 }
89
91
94 inline const CreateCisTargets& GetTargets() const { return m_targets; }
95 inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
96 template<typename TargetsT = CreateCisTargets>
97 void SetTargets(TargetsT&& value) { m_targetsHasBeenSet = true; m_targets = std::forward<TargetsT>(value); }
98 template<typename TargetsT = CreateCisTargets>
99 CreateCisScanConfigurationRequest& WithTargets(TargetsT&& value) { SetTargets(std::forward<TargetsT>(value)); return *this;}
101 private:
102
103 Aws::String m_scanName;
104 bool m_scanNameHasBeenSet = false;
105
106 Schedule m_schedule;
107 bool m_scheduleHasBeenSet = false;
108
110 bool m_securityLevelHasBeenSet = false;
111
113 bool m_tagsHasBeenSet = false;
114
115 CreateCisTargets m_targets;
116 bool m_targetsHasBeenSet = false;
117 };
118
119} // namespace Model
120} // namespace Inspector2
121} // namespace Aws
CreateCisScanConfigurationRequest & WithSecurityLevel(CisSecurityLevel value)
AWS_INSPECTOR2_API CreateCisScanConfigurationRequest()=default
CreateCisScanConfigurationRequest & WithTags(TagsT &&value)
AWS_INSPECTOR2_API Aws::String SerializePayload() const override
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateCisScanConfigurationRequest & WithSchedule(ScheduleT &&value)
CreateCisScanConfigurationRequest & WithTargets(TargetsT &&value)
CreateCisScanConfigurationRequest & WithScanName(ScanNameT &&value)
CreateCisScanConfigurationRequest & AddTags(TagsKeyT &&key, TagsValueT &&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