AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetCodeSecurityScanRequest.h
1
6#pragma once
7#include <aws/inspector2/Inspector2_EXPORTS.h>
8#include <aws/inspector2/Inspector2Request.h>
9#include <aws/inspector2/model/CodeSecurityResource.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Inspector2
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_INSPECTOR2_API GetCodeSecurityScanRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "GetCodeSecurityScan"; }
32
33 AWS_INSPECTOR2_API Aws::String SerializePayload() const override;
34
35
37
40 inline const CodeSecurityResource& GetResource() const { return m_resource; }
41 inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; }
42 template<typename ResourceT = CodeSecurityResource>
43 void SetResource(ResourceT&& value) { m_resourceHasBeenSet = true; m_resource = std::forward<ResourceT>(value); }
44 template<typename ResourceT = CodeSecurityResource>
45 GetCodeSecurityScanRequest& WithResource(ResourceT&& value) { SetResource(std::forward<ResourceT>(value)); return *this;}
47
49
52 inline const Aws::String& GetScanId() const { return m_scanId; }
53 inline bool ScanIdHasBeenSet() const { return m_scanIdHasBeenSet; }
54 template<typename ScanIdT = Aws::String>
55 void SetScanId(ScanIdT&& value) { m_scanIdHasBeenSet = true; m_scanId = std::forward<ScanIdT>(value); }
56 template<typename ScanIdT = Aws::String>
57 GetCodeSecurityScanRequest& WithScanId(ScanIdT&& value) { SetScanId(std::forward<ScanIdT>(value)); return *this;}
59 private:
60
61 CodeSecurityResource m_resource;
62 bool m_resourceHasBeenSet = false;
63
64 Aws::String m_scanId;
65 bool m_scanIdHasBeenSet = false;
66 };
67
68} // namespace Model
69} // namespace Inspector2
70} // namespace Aws
GetCodeSecurityScanRequest & WithScanId(ScanIdT &&value)
AWS_INSPECTOR2_API GetCodeSecurityScanRequest()=default
AWS_INSPECTOR2_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
GetCodeSecurityScanRequest & WithResource(ResourceT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String