AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
UpdateCisScanConfigurationRequest.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/inspector2/model/UpdateCisTargets.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Inspector2
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_INSPECTOR2_API UpdateCisScanConfigurationRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "UpdateCisScanConfiguration"; }
34
35 AWS_INSPECTOR2_API Aws::String SerializePayload() const override;
36
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) { m_scanConfigurationArnHasBeenSet = true; m_scanConfigurationArn = std::forward<ScanConfigurationArnT>(value); }
46 template<typename ScanConfigurationArnT = Aws::String>
47 UpdateCisScanConfigurationRequest& WithScanConfigurationArn(ScanConfigurationArnT&& value) { SetScanConfigurationArn(std::forward<ScanConfigurationArnT>(value)); return *this;}
49
51
54 inline const Aws::String& GetScanName() const { return m_scanName; }
55 inline bool ScanNameHasBeenSet() const { return m_scanNameHasBeenSet; }
56 template<typename ScanNameT = Aws::String>
57 void SetScanName(ScanNameT&& value) { m_scanNameHasBeenSet = true; m_scanName = std::forward<ScanNameT>(value); }
58 template<typename ScanNameT = Aws::String>
59 UpdateCisScanConfigurationRequest& WithScanName(ScanNameT&& value) { SetScanName(std::forward<ScanNameT>(value)); return *this;}
61
63
66 inline const Schedule& GetSchedule() const { return m_schedule; }
67 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
68 template<typename ScheduleT = Schedule>
69 void SetSchedule(ScheduleT&& value) { m_scheduleHasBeenSet = true; m_schedule = std::forward<ScheduleT>(value); }
70 template<typename ScheduleT = Schedule>
71 UpdateCisScanConfigurationRequest& WithSchedule(ScheduleT&& value) { SetSchedule(std::forward<ScheduleT>(value)); return *this;}
73
75
79 inline CisSecurityLevel GetSecurityLevel() const { return m_securityLevel; }
80 inline bool SecurityLevelHasBeenSet() const { return m_securityLevelHasBeenSet; }
81 inline void SetSecurityLevel(CisSecurityLevel value) { m_securityLevelHasBeenSet = true; m_securityLevel = value; }
84
86
89 inline const UpdateCisTargets& GetTargets() const { return m_targets; }
90 inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
91 template<typename TargetsT = UpdateCisTargets>
92 void SetTargets(TargetsT&& value) { m_targetsHasBeenSet = true; m_targets = std::forward<TargetsT>(value); }
93 template<typename TargetsT = UpdateCisTargets>
94 UpdateCisScanConfigurationRequest& WithTargets(TargetsT&& value) { SetTargets(std::forward<TargetsT>(value)); return *this;}
96 private:
97
98 Aws::String m_scanConfigurationArn;
99 bool m_scanConfigurationArnHasBeenSet = false;
100
101 Aws::String m_scanName;
102 bool m_scanNameHasBeenSet = false;
103
104 Schedule m_schedule;
105 bool m_scheduleHasBeenSet = false;
106
108 bool m_securityLevelHasBeenSet = false;
109
110 UpdateCisTargets m_targets;
111 bool m_targetsHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace Inspector2
116} // namespace Aws
UpdateCisScanConfigurationRequest & WithSecurityLevel(CisSecurityLevel value)
UpdateCisScanConfigurationRequest & WithTargets(TargetsT &&value)
UpdateCisScanConfigurationRequest & WithScanName(ScanNameT &&value)
UpdateCisScanConfigurationRequest & WithScanConfigurationArn(ScanConfigurationArnT &&value)
AWS_INSPECTOR2_API UpdateCisScanConfigurationRequest()=default
UpdateCisScanConfigurationRequest & WithSchedule(ScheduleT &&value)
AWS_INSPECTOR2_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String