AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetScanName(const Aws::String& value) { m_scanNameHasBeenSet = true; m_scanName = value; }
46 inline void SetScanName(Aws::String&& value) { m_scanNameHasBeenSet = true; m_scanName = std::move(value); }
47 inline void SetScanName(const char* value) { m_scanNameHasBeenSet = true; m_scanName.assign(value); }
48 inline CreateCisScanConfigurationRequest& WithScanName(const Aws::String& value) { SetScanName(value); return *this;}
49 inline CreateCisScanConfigurationRequest& WithScanName(Aws::String&& value) { SetScanName(std::move(value)); return *this;}
50 inline CreateCisScanConfigurationRequest& WithScanName(const char* value) { SetScanName(value); return *this;}
52
54
57 inline const Schedule& GetSchedule() const{ return m_schedule; }
58 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
59 inline void SetSchedule(const Schedule& value) { m_scheduleHasBeenSet = true; m_schedule = value; }
60 inline void SetSchedule(Schedule&& value) { m_scheduleHasBeenSet = true; m_schedule = std::move(value); }
61 inline CreateCisScanConfigurationRequest& WithSchedule(const Schedule& value) { SetSchedule(value); return *this;}
62 inline CreateCisScanConfigurationRequest& WithSchedule(Schedule&& value) { SetSchedule(std::move(value)); return *this;}
64
66
70 inline const CisSecurityLevel& GetSecurityLevel() const{ return m_securityLevel; }
71 inline bool SecurityLevelHasBeenSet() const { return m_securityLevelHasBeenSet; }
72 inline void SetSecurityLevel(const CisSecurityLevel& value) { m_securityLevelHasBeenSet = true; m_securityLevel = value; }
73 inline void SetSecurityLevel(CisSecurityLevel&& value) { m_securityLevelHasBeenSet = true; m_securityLevel = std::move(value); }
75 inline CreateCisScanConfigurationRequest& WithSecurityLevel(CisSecurityLevel&& value) { SetSecurityLevel(std::move(value)); return *this;}
77
79
82 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
83 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
84 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
85 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
87 inline CreateCisScanConfigurationRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
88 inline CreateCisScanConfigurationRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
89 inline CreateCisScanConfigurationRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
90 inline CreateCisScanConfigurationRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
91 inline CreateCisScanConfigurationRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
92 inline CreateCisScanConfigurationRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
93 inline CreateCisScanConfigurationRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
94 inline CreateCisScanConfigurationRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
96
98
101 inline const CreateCisTargets& GetTargets() const{ return m_targets; }
102 inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
103 inline void SetTargets(const CreateCisTargets& value) { m_targetsHasBeenSet = true; m_targets = value; }
104 inline void SetTargets(CreateCisTargets&& value) { m_targetsHasBeenSet = true; m_targets = std::move(value); }
105 inline CreateCisScanConfigurationRequest& WithTargets(const CreateCisTargets& value) { SetTargets(value); return *this;}
106 inline CreateCisScanConfigurationRequest& WithTargets(CreateCisTargets&& value) { SetTargets(std::move(value)); return *this;}
108 private:
109
110 Aws::String m_scanName;
111 bool m_scanNameHasBeenSet = false;
112
113 Schedule m_schedule;
114 bool m_scheduleHasBeenSet = false;
115
116 CisSecurityLevel m_securityLevel;
117 bool m_securityLevelHasBeenSet = false;
118
120 bool m_tagsHasBeenSet = false;
121
122 CreateCisTargets m_targets;
123 bool m_targetsHasBeenSet = false;
124 };
125
126} // namespace Model
127} // namespace Inspector2
128} // namespace Aws
CreateCisScanConfigurationRequest & WithSchedule(const Schedule &value)
CreateCisScanConfigurationRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateCisScanConfigurationRequest & AddTags(Aws::String &&key, const Aws::String &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateCisScanConfigurationRequest & WithSecurityLevel(const CisSecurityLevel &value)
CreateCisScanConfigurationRequest & AddTags(Aws::String &&key, const char *value)
CreateCisScanConfigurationRequest & WithTargets(const CreateCisTargets &value)
CreateCisScanConfigurationRequest & WithSchedule(Schedule &&value)
CreateCisScanConfigurationRequest & AddTags(const Aws::String &key, Aws::String &&value)
AWS_INSPECTOR2_API Aws::String SerializePayload() const override
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateCisScanConfigurationRequest & AddTags(const char *key, const char *value)
CreateCisScanConfigurationRequest & WithTargets(CreateCisTargets &&value)
CreateCisScanConfigurationRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateCisScanConfigurationRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateCisScanConfigurationRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateCisScanConfigurationRequest & AddTags(const char *key, Aws::String &&value)
CreateCisScanConfigurationRequest & WithScanName(const char *value)
CreateCisScanConfigurationRequest & WithScanName(const Aws::String &value)
CreateCisScanConfigurationRequest & WithScanName(Aws::String &&value)
CreateCisScanConfigurationRequest & WithSecurityLevel(CisSecurityLevel &&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