AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
CreateScanRequest.h
1
6#pragma once
7#include <aws/codeguru-security/CodeGuruSecurityRequest.h>
8#include <aws/codeguru-security/CodeGuruSecurity_EXPORTS.h>
9#include <aws/codeguru-security/model/AnalysisType.h>
10#include <aws/codeguru-security/model/ResourceId.h>
11#include <aws/codeguru-security/model/ScanType.h>
12#include <aws/core/utils/UUID.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <aws/core/utils/memory/stl/AWSString.h>
15
16#include <utility>
17
18namespace Aws {
19namespace CodeGuruSecurity {
20namespace Model {
21
25 public:
26 AWS_CODEGURUSECURITY_API CreateScanRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateScan"; }
33
34 AWS_CODEGURUSECURITY_API Aws::String SerializePayload() const override;
35
37
42 inline const Aws::String& GetClientToken() const { return m_clientToken; }
43 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
44 template <typename ClientTokenT = Aws::String>
45 void SetClientToken(ClientTokenT&& value) {
46 m_clientTokenHasBeenSet = true;
47 m_clientToken = std::forward<ClientTokenT>(value);
48 }
49 template <typename ClientTokenT = Aws::String>
50 CreateScanRequest& WithClientToken(ClientTokenT&& value) {
51 SetClientToken(std::forward<ClientTokenT>(value));
52 return *this;
53 }
55
57
60 inline const ResourceId& GetResourceId() const { return m_resourceId; }
61 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
62 template <typename ResourceIdT = ResourceId>
63 void SetResourceId(ResourceIdT&& value) {
64 m_resourceIdHasBeenSet = true;
65 m_resourceId = std::forward<ResourceIdT>(value);
66 }
67 template <typename ResourceIdT = ResourceId>
68 CreateScanRequest& WithResourceId(ResourceIdT&& value) {
69 SetResourceId(std::forward<ResourceIdT>(value));
70 return *this;
71 }
73
75
80 inline const Aws::String& GetScanName() const { return m_scanName; }
81 inline bool ScanNameHasBeenSet() const { return m_scanNameHasBeenSet; }
82 template <typename ScanNameT = Aws::String>
83 void SetScanName(ScanNameT&& value) {
84 m_scanNameHasBeenSet = true;
85 m_scanName = std::forward<ScanNameT>(value);
86 }
87 template <typename ScanNameT = Aws::String>
88 CreateScanRequest& WithScanName(ScanNameT&& value) {
89 SetScanName(std::forward<ScanNameT>(value));
90 return *this;
91 }
93
95
102 inline ScanType GetScanType() const { return m_scanType; }
103 inline bool ScanTypeHasBeenSet() const { return m_scanTypeHasBeenSet; }
104 inline void SetScanType(ScanType value) {
105 m_scanTypeHasBeenSet = true;
106 m_scanType = value;
107 }
109 SetScanType(value);
110 return *this;
111 }
113
115
122 inline AnalysisType GetAnalysisType() const { return m_analysisType; }
123 inline bool AnalysisTypeHasBeenSet() const { return m_analysisTypeHasBeenSet; }
124 inline void SetAnalysisType(AnalysisType value) {
125 m_analysisTypeHasBeenSet = true;
126 m_analysisType = value;
127 }
129 SetAnalysisType(value);
130 return *this;
131 }
133
135
144 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
145 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
146 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
147 void SetTags(TagsT&& value) {
148 m_tagsHasBeenSet = true;
149 m_tags = std::forward<TagsT>(value);
150 }
151 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
152 CreateScanRequest& WithTags(TagsT&& value) {
153 SetTags(std::forward<TagsT>(value));
154 return *this;
155 }
156 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
157 CreateScanRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
158 m_tagsHasBeenSet = true;
159 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
160 return *this;
161 }
163 private:
165
166 ResourceId m_resourceId;
167
168 Aws::String m_scanName;
169
170 ScanType m_scanType{ScanType::NOT_SET};
171
172 AnalysisType m_analysisType{AnalysisType::NOT_SET};
173
175 bool m_clientTokenHasBeenSet = true;
176 bool m_resourceIdHasBeenSet = false;
177 bool m_scanNameHasBeenSet = false;
178 bool m_scanTypeHasBeenSet = false;
179 bool m_analysisTypeHasBeenSet = false;
180 bool m_tagsHasBeenSet = false;
181};
182
183} // namespace Model
184} // namespace CodeGuruSecurity
185} // namespace Aws
virtual const char * GetServiceRequestName() const override
CreateScanRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateScanRequest & WithResourceId(ResourceIdT &&value)
CreateScanRequest & WithScanName(ScanNameT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateScanRequest & WithClientToken(ClientTokenT &&value)
CreateScanRequest & WithAnalysisType(AnalysisType value)
CreateScanRequest & WithTags(TagsT &&value)
AWS_CODEGURUSECURITY_API CreateScanRequest()=default
AWS_CODEGURUSECURITY_API Aws::String SerializePayload() const override
CreateScanRequest & WithScanType(ScanType value)
static Aws::Utils::UUID PseudoRandomUUID()
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