AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetOwnerId(const Aws::String& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; }
51 inline void SetOwnerId(Aws::String&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::move(value); }
52 inline void SetOwnerId(const char* value) { m_ownerIdHasBeenSet = true; m_ownerId.assign(value); }
53 inline CisScanConfiguration& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;}
54 inline CisScanConfiguration& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;}
55 inline CisScanConfiguration& WithOwnerId(const char* value) { SetOwnerId(value); return *this;}
57
59
62 inline const Aws::String& GetScanConfigurationArn() const{ return m_scanConfigurationArn; }
63 inline bool ScanConfigurationArnHasBeenSet() const { return m_scanConfigurationArnHasBeenSet; }
64 inline void SetScanConfigurationArn(const Aws::String& value) { m_scanConfigurationArnHasBeenSet = true; m_scanConfigurationArn = value; }
65 inline void SetScanConfigurationArn(Aws::String&& value) { m_scanConfigurationArnHasBeenSet = true; m_scanConfigurationArn = std::move(value); }
66 inline void SetScanConfigurationArn(const char* value) { m_scanConfigurationArnHasBeenSet = true; m_scanConfigurationArn.assign(value); }
68 inline CisScanConfiguration& WithScanConfigurationArn(Aws::String&& value) { SetScanConfigurationArn(std::move(value)); return *this;}
69 inline CisScanConfiguration& WithScanConfigurationArn(const char* value) { SetScanConfigurationArn(value); return *this;}
71
73
76 inline const Aws::String& GetScanName() const{ return m_scanName; }
77 inline bool ScanNameHasBeenSet() const { return m_scanNameHasBeenSet; }
78 inline void SetScanName(const Aws::String& value) { m_scanNameHasBeenSet = true; m_scanName = value; }
79 inline void SetScanName(Aws::String&& value) { m_scanNameHasBeenSet = true; m_scanName = std::move(value); }
80 inline void SetScanName(const char* value) { m_scanNameHasBeenSet = true; m_scanName.assign(value); }
81 inline CisScanConfiguration& WithScanName(const Aws::String& value) { SetScanName(value); return *this;}
82 inline CisScanConfiguration& WithScanName(Aws::String&& value) { SetScanName(std::move(value)); return *this;}
83 inline CisScanConfiguration& WithScanName(const char* value) { SetScanName(value); return *this;}
85
87
90 inline const Schedule& GetSchedule() const{ return m_schedule; }
91 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
92 inline void SetSchedule(const Schedule& value) { m_scheduleHasBeenSet = true; m_schedule = value; }
93 inline void SetSchedule(Schedule&& value) { m_scheduleHasBeenSet = true; m_schedule = std::move(value); }
94 inline CisScanConfiguration& WithSchedule(const Schedule& value) { SetSchedule(value); return *this;}
95 inline CisScanConfiguration& WithSchedule(Schedule&& value) { SetSchedule(std::move(value)); return *this;}
97
99
102 inline const CisSecurityLevel& GetSecurityLevel() const{ return m_securityLevel; }
103 inline bool SecurityLevelHasBeenSet() const { return m_securityLevelHasBeenSet; }
104 inline void SetSecurityLevel(const CisSecurityLevel& value) { m_securityLevelHasBeenSet = true; m_securityLevel = value; }
105 inline void SetSecurityLevel(CisSecurityLevel&& value) { m_securityLevelHasBeenSet = true; m_securityLevel = std::move(value); }
106 inline CisScanConfiguration& WithSecurityLevel(const CisSecurityLevel& value) { SetSecurityLevel(value); return *this;}
107 inline CisScanConfiguration& WithSecurityLevel(CisSecurityLevel&& value) { SetSecurityLevel(std::move(value)); return *this;}
109
111
114 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
115 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
116 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
117 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
118 inline CisScanConfiguration& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
119 inline CisScanConfiguration& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
120 inline CisScanConfiguration& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
121 inline CisScanConfiguration& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
122 inline CisScanConfiguration& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
123 inline CisScanConfiguration& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
124 inline CisScanConfiguration& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
125 inline CisScanConfiguration& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
126 inline CisScanConfiguration& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
128
130
133 inline const CisTargets& GetTargets() const{ return m_targets; }
134 inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
135 inline void SetTargets(const CisTargets& value) { m_targetsHasBeenSet = true; m_targets = value; }
136 inline void SetTargets(CisTargets&& value) { m_targetsHasBeenSet = true; m_targets = std::move(value); }
137 inline CisScanConfiguration& WithTargets(const CisTargets& value) { SetTargets(value); return *this;}
138 inline CisScanConfiguration& WithTargets(CisTargets&& value) { SetTargets(std::move(value)); return *this;}
140 private:
141
142 Aws::String m_ownerId;
143 bool m_ownerIdHasBeenSet = false;
144
145 Aws::String m_scanConfigurationArn;
146 bool m_scanConfigurationArnHasBeenSet = false;
147
148 Aws::String m_scanName;
149 bool m_scanNameHasBeenSet = false;
150
151 Schedule m_schedule;
152 bool m_scheduleHasBeenSet = false;
153
154 CisSecurityLevel m_securityLevel;
155 bool m_securityLevelHasBeenSet = false;
156
158 bool m_tagsHasBeenSet = false;
159
160 CisTargets m_targets;
161 bool m_targetsHasBeenSet = false;
162 };
163
164} // namespace Model
165} // namespace Inspector2
166} // namespace Aws
CisScanConfiguration & WithScanConfigurationArn(const char *value)
CisScanConfiguration & WithSchedule(Schedule &&value)
CisScanConfiguration & AddTags(const char *key, Aws::String &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
AWS_INSPECTOR2_API CisScanConfiguration(Aws::Utils::Json::JsonView jsonValue)
CisScanConfiguration & WithScanName(const char *value)
CisScanConfiguration & WithOwnerId(Aws::String &&value)
CisScanConfiguration & AddTags(const Aws::String &key, Aws::String &&value)
void SetSecurityLevel(const CisSecurityLevel &value)
CisScanConfiguration & WithScanName(const Aws::String &value)
CisScanConfiguration & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CisScanConfiguration & AddTags(const Aws::String &key, const Aws::String &value)
CisScanConfiguration & AddTags(Aws::String &&key, const Aws::String &value)
CisScanConfiguration & WithOwnerId(const Aws::String &value)
CisScanConfiguration & WithSchedule(const Schedule &value)
CisScanConfiguration & WithTargets(const CisTargets &value)
const CisSecurityLevel & GetSecurityLevel() const
CisScanConfiguration & WithOwnerId(const char *value)
CisScanConfiguration & WithScanConfigurationArn(Aws::String &&value)
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
CisScanConfiguration & AddTags(const char *key, const char *value)
CisScanConfiguration & WithSecurityLevel(const CisSecurityLevel &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CisScanConfiguration & AddTags(Aws::String &&key, const char *value)
CisScanConfiguration & WithScanConfigurationArn(const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CisScanConfiguration & WithSecurityLevel(CisSecurityLevel &&value)
CisScanConfiguration & WithTargets(CisTargets &&value)
CisScanConfiguration & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CisScanConfiguration & WithScanName(Aws::String &&value)
AWS_INSPECTOR2_API CisScanConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetScanConfigurationArn(const Aws::String &value)
CisScanConfiguration & AddTags(Aws::String &&key, Aws::String &&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
Aws::Utils::Json::JsonValue JsonValue