AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ScanSbomRequest.h
1
6#pragma once
7#include <aws/core/utils/Document.h>
8#include <aws/inspector-scan/InspectorscanRequest.h>
9#include <aws/inspector-scan/Inspectorscan_EXPORTS.h>
10#include <aws/inspector-scan/model/OutputFormat.h>
11
12#include <utility>
13
14namespace Aws {
15namespace inspectorscan {
16namespace Model {
17
21 public:
22 AWS_INSPECTORSCAN_API ScanSbomRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "ScanSbom"; }
29
30 AWS_INSPECTORSCAN_API Aws::String SerializePayload() const override;
31
33
38 inline Aws::Utils::DocumentView GetSbom() const { return m_sbom; }
39 inline bool SbomHasBeenSet() const { return m_sbomHasBeenSet; }
40 template <typename SbomT = Aws::Utils::Document>
41 void SetSbom(SbomT&& value) {
42 m_sbomHasBeenSet = true;
43 m_sbom = std::forward<SbomT>(value);
44 }
45 template <typename SbomT = Aws::Utils::Document>
46 ScanSbomRequest& WithSbom(SbomT&& value) {
47 SetSbom(std::forward<SbomT>(value));
48 return *this;
49 }
51
53
56 inline OutputFormat GetOutputFormat() const { return m_outputFormat; }
57 inline bool OutputFormatHasBeenSet() const { return m_outputFormatHasBeenSet; }
58 inline void SetOutputFormat(OutputFormat value) {
59 m_outputFormatHasBeenSet = true;
60 m_outputFormat = value;
61 }
63 SetOutputFormat(value);
64 return *this;
65 }
67 private:
69
70 OutputFormat m_outputFormat{OutputFormat::NOT_SET};
71 bool m_sbomHasBeenSet = false;
72 bool m_outputFormatHasBeenSet = false;
73};
74
75} // namespace Model
76} // namespace inspectorscan
77} // namespace Aws
ScanSbomRequest & WithOutputFormat(OutputFormat value)
AWS_INSPECTORSCAN_API ScanSbomRequest()=default
virtual const char * GetServiceRequestName() const override
AWS_INSPECTORSCAN_API Aws::String SerializePayload() const override
ScanSbomRequest & WithSbom(SbomT &&value)
Aws::Utils::DocumentView GetSbom() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String