AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateScanRequest.h
1
6#pragma once
7#include <aws/codeguru-security/CodeGuruSecurity_EXPORTS.h>
8#include <aws/codeguru-security/CodeGuruSecurityRequest.h>
9#include <aws/codeguru-security/model/AnalysisType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/codeguru-security/model/ResourceId.h>
12#include <aws/codeguru-security/model/ScanType.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <utility>
15#include <aws/core/utils/UUID.h>
16
17namespace Aws
18{
19namespace CodeGuruSecurity
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_CODEGURUSECURITY_API CreateScanRequest();
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateScan"; }
36
37 AWS_CODEGURUSECURITY_API Aws::String SerializePayload() const override;
38
39
41
48 inline const AnalysisType& GetAnalysisType() const{ return m_analysisType; }
49 inline bool AnalysisTypeHasBeenSet() const { return m_analysisTypeHasBeenSet; }
50 inline void SetAnalysisType(const AnalysisType& value) { m_analysisTypeHasBeenSet = true; m_analysisType = value; }
51 inline void SetAnalysisType(AnalysisType&& value) { m_analysisTypeHasBeenSet = true; m_analysisType = std::move(value); }
52 inline CreateScanRequest& WithAnalysisType(const AnalysisType& value) { SetAnalysisType(value); return *this;}
53 inline CreateScanRequest& WithAnalysisType(AnalysisType&& value) { SetAnalysisType(std::move(value)); return *this;}
55
57
62 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
63 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
64 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
65 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
66 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
67 inline CreateScanRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
68 inline CreateScanRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
69 inline CreateScanRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
71
73
76 inline const ResourceId& GetResourceId() const{ return m_resourceId; }
77 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
78 inline void SetResourceId(const ResourceId& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
79 inline void SetResourceId(ResourceId&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
80 inline CreateScanRequest& WithResourceId(const ResourceId& value) { SetResourceId(value); return *this;}
81 inline CreateScanRequest& WithResourceId(ResourceId&& value) { SetResourceId(std::move(value)); return *this;}
83
85
90 inline const Aws::String& GetScanName() const{ return m_scanName; }
91 inline bool ScanNameHasBeenSet() const { return m_scanNameHasBeenSet; }
92 inline void SetScanName(const Aws::String& value) { m_scanNameHasBeenSet = true; m_scanName = value; }
93 inline void SetScanName(Aws::String&& value) { m_scanNameHasBeenSet = true; m_scanName = std::move(value); }
94 inline void SetScanName(const char* value) { m_scanNameHasBeenSet = true; m_scanName.assign(value); }
95 inline CreateScanRequest& WithScanName(const Aws::String& value) { SetScanName(value); return *this;}
96 inline CreateScanRequest& WithScanName(Aws::String&& value) { SetScanName(std::move(value)); return *this;}
97 inline CreateScanRequest& WithScanName(const char* value) { SetScanName(value); return *this;}
99
101
108 inline const ScanType& GetScanType() const{ return m_scanType; }
109 inline bool ScanTypeHasBeenSet() const { return m_scanTypeHasBeenSet; }
110 inline void SetScanType(const ScanType& value) { m_scanTypeHasBeenSet = true; m_scanType = value; }
111 inline void SetScanType(ScanType&& value) { m_scanTypeHasBeenSet = true; m_scanType = std::move(value); }
112 inline CreateScanRequest& WithScanType(const ScanType& value) { SetScanType(value); return *this;}
113 inline CreateScanRequest& WithScanType(ScanType&& value) { SetScanType(std::move(value)); return *this;}
115
117
126 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
127 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
128 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
129 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
130 inline CreateScanRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
131 inline CreateScanRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
132 inline CreateScanRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
133 inline CreateScanRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
134 inline CreateScanRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
135 inline CreateScanRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
136 inline CreateScanRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
137 inline CreateScanRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
138 inline CreateScanRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
140 private:
141
142 AnalysisType m_analysisType;
143 bool m_analysisTypeHasBeenSet = false;
144
145 Aws::String m_clientToken;
146 bool m_clientTokenHasBeenSet = false;
147
148 ResourceId m_resourceId;
149 bool m_resourceIdHasBeenSet = false;
150
151 Aws::String m_scanName;
152 bool m_scanNameHasBeenSet = false;
153
154 ScanType m_scanType;
155 bool m_scanTypeHasBeenSet = false;
156
158 bool m_tagsHasBeenSet = false;
159 };
160
161} // namespace Model
162} // namespace CodeGuruSecurity
163} // namespace Aws
CreateScanRequest & AddTags(Aws::String &&key, const Aws::String &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateScanRequest & WithClientToken(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
CreateScanRequest & WithAnalysisType(AnalysisType &&value)
CreateScanRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateScanRequest & WithResourceId(const ResourceId &value)
CreateScanRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateScanRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateScanRequest & WithScanName(Aws::String &&value)
CreateScanRequest & AddTags(const char *key, const char *value)
CreateScanRequest & WithScanType(const ScanType &value)
CreateScanRequest & WithAnalysisType(const AnalysisType &value)
CreateScanRequest & WithScanName(const char *value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateScanRequest & WithClientToken(const char *value)
CreateScanRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateScanRequest & WithResourceId(ResourceId &&value)
CreateScanRequest & WithScanType(ScanType &&value)
CreateScanRequest & AddTags(Aws::String &&key, const char *value)
CreateScanRequest & AddTags(const char *key, Aws::String &&value)
CreateScanRequest & WithClientToken(Aws::String &&value)
CreateScanRequest & WithScanName(const Aws::String &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
AWS_CODEGURUSECURITY_API CreateScanRequest()
AWS_CODEGURUSECURITY_API Aws::String SerializePayload() const override
void SetAnalysisType(const AnalysisType &value)
CreateScanRequest & AddTags(const 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