AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetScanConfigurationArn(const Aws::String& value) { m_scanConfigurationArnHasBeenSet = true; m_scanConfigurationArn = value; }
45 inline void SetScanConfigurationArn(Aws::String&& value) { m_scanConfigurationArnHasBeenSet = true; m_scanConfigurationArn = std::move(value); }
46 inline void SetScanConfigurationArn(const char* value) { m_scanConfigurationArnHasBeenSet = true; m_scanConfigurationArn.assign(value); }
51
53
56 inline const Aws::String& GetScanName() const{ return m_scanName; }
57 inline bool ScanNameHasBeenSet() const { return m_scanNameHasBeenSet; }
58 inline void SetScanName(const Aws::String& value) { m_scanNameHasBeenSet = true; m_scanName = value; }
59 inline void SetScanName(Aws::String&& value) { m_scanNameHasBeenSet = true; m_scanName = std::move(value); }
60 inline void SetScanName(const char* value) { m_scanNameHasBeenSet = true; m_scanName.assign(value); }
61 inline UpdateCisScanConfigurationRequest& WithScanName(const Aws::String& value) { SetScanName(value); return *this;}
62 inline UpdateCisScanConfigurationRequest& WithScanName(Aws::String&& value) { SetScanName(std::move(value)); return *this;}
63 inline UpdateCisScanConfigurationRequest& WithScanName(const char* value) { SetScanName(value); return *this;}
65
67
70 inline const Schedule& GetSchedule() const{ return m_schedule; }
71 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
72 inline void SetSchedule(const Schedule& value) { m_scheduleHasBeenSet = true; m_schedule = value; }
73 inline void SetSchedule(Schedule&& value) { m_scheduleHasBeenSet = true; m_schedule = std::move(value); }
74 inline UpdateCisScanConfigurationRequest& WithSchedule(const Schedule& value) { SetSchedule(value); return *this;}
75 inline UpdateCisScanConfigurationRequest& WithSchedule(Schedule&& value) { SetSchedule(std::move(value)); return *this;}
77
79
83 inline const CisSecurityLevel& GetSecurityLevel() const{ return m_securityLevel; }
84 inline bool SecurityLevelHasBeenSet() const { return m_securityLevelHasBeenSet; }
85 inline void SetSecurityLevel(const CisSecurityLevel& value) { m_securityLevelHasBeenSet = true; m_securityLevel = value; }
86 inline void SetSecurityLevel(CisSecurityLevel&& value) { m_securityLevelHasBeenSet = true; m_securityLevel = std::move(value); }
88 inline UpdateCisScanConfigurationRequest& WithSecurityLevel(CisSecurityLevel&& value) { SetSecurityLevel(std::move(value)); return *this;}
90
92
95 inline const UpdateCisTargets& GetTargets() const{ return m_targets; }
96 inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
97 inline void SetTargets(const UpdateCisTargets& value) { m_targetsHasBeenSet = true; m_targets = value; }
98 inline void SetTargets(UpdateCisTargets&& value) { m_targetsHasBeenSet = true; m_targets = std::move(value); }
99 inline UpdateCisScanConfigurationRequest& WithTargets(const UpdateCisTargets& value) { SetTargets(value); return *this;}
100 inline UpdateCisScanConfigurationRequest& WithTargets(UpdateCisTargets&& value) { SetTargets(std::move(value)); return *this;}
102 private:
103
104 Aws::String m_scanConfigurationArn;
105 bool m_scanConfigurationArnHasBeenSet = false;
106
107 Aws::String m_scanName;
108 bool m_scanNameHasBeenSet = false;
109
110 Schedule m_schedule;
111 bool m_scheduleHasBeenSet = false;
112
113 CisSecurityLevel m_securityLevel;
114 bool m_securityLevelHasBeenSet = false;
115
116 UpdateCisTargets m_targets;
117 bool m_targetsHasBeenSet = false;
118 };
119
120} // namespace Model
121} // namespace Inspector2
122} // namespace Aws
UpdateCisScanConfigurationRequest & WithScanConfigurationArn(const char *value)
UpdateCisScanConfigurationRequest & WithSchedule(const Schedule &value)
UpdateCisScanConfigurationRequest & WithScanName(const Aws::String &value)
UpdateCisScanConfigurationRequest & WithScanName(const char *value)
UpdateCisScanConfigurationRequest & WithSchedule(Schedule &&value)
UpdateCisScanConfigurationRequest & WithScanConfigurationArn(const Aws::String &value)
UpdateCisScanConfigurationRequest & WithSecurityLevel(CisSecurityLevel &&value)
UpdateCisScanConfigurationRequest & WithTargets(UpdateCisTargets &&value)
UpdateCisScanConfigurationRequest & WithScanName(Aws::String &&value)
UpdateCisScanConfigurationRequest & WithTargets(const UpdateCisTargets &value)
UpdateCisScanConfigurationRequest & WithSecurityLevel(const CisSecurityLevel &value)
UpdateCisScanConfigurationRequest & WithScanConfigurationArn(Aws::String &&value)
AWS_INSPECTOR2_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String