AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreateFindingsReportRequest.h
1
6#pragma once
7#include <aws/inspector2/Inspector2_EXPORTS.h>
8#include <aws/inspector2/Inspector2Request.h>
9#include <aws/inspector2/model/FilterCriteria.h>
10#include <aws/inspector2/model/ReportFormat.h>
11#include <aws/inspector2/model/Destination.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Inspector2
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_INSPECTOR2_API CreateFindingsReportRequest() = 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 "CreateFindingsReport"; }
33
34 AWS_INSPECTOR2_API Aws::String SerializePayload() const override;
35
36
38
41 inline const FilterCriteria& GetFilterCriteria() const { return m_filterCriteria; }
42 inline bool FilterCriteriaHasBeenSet() const { return m_filterCriteriaHasBeenSet; }
43 template<typename FilterCriteriaT = FilterCriteria>
44 void SetFilterCriteria(FilterCriteriaT&& value) { m_filterCriteriaHasBeenSet = true; m_filterCriteria = std::forward<FilterCriteriaT>(value); }
45 template<typename FilterCriteriaT = FilterCriteria>
46 CreateFindingsReportRequest& WithFilterCriteria(FilterCriteriaT&& value) { SetFilterCriteria(std::forward<FilterCriteriaT>(value)); return *this;}
48
50
53 inline ReportFormat GetReportFormat() const { return m_reportFormat; }
54 inline bool ReportFormatHasBeenSet() const { return m_reportFormatHasBeenSet; }
55 inline void SetReportFormat(ReportFormat value) { m_reportFormatHasBeenSet = true; m_reportFormat = value; }
58
60
63 inline const Destination& GetS3Destination() const { return m_s3Destination; }
64 inline bool S3DestinationHasBeenSet() const { return m_s3DestinationHasBeenSet; }
65 template<typename S3DestinationT = Destination>
66 void SetS3Destination(S3DestinationT&& value) { m_s3DestinationHasBeenSet = true; m_s3Destination = std::forward<S3DestinationT>(value); }
67 template<typename S3DestinationT = Destination>
68 CreateFindingsReportRequest& WithS3Destination(S3DestinationT&& value) { SetS3Destination(std::forward<S3DestinationT>(value)); return *this;}
70 private:
71
72 FilterCriteria m_filterCriteria;
73 bool m_filterCriteriaHasBeenSet = false;
74
75 ReportFormat m_reportFormat{ReportFormat::NOT_SET};
76 bool m_reportFormatHasBeenSet = false;
77
78 Destination m_s3Destination;
79 bool m_s3DestinationHasBeenSet = false;
80 };
81
82} // namespace Model
83} // namespace Inspector2
84} // namespace Aws
AWS_INSPECTOR2_API CreateFindingsReportRequest()=default
CreateFindingsReportRequest & WithReportFormat(ReportFormat value)
CreateFindingsReportRequest & WithS3Destination(S3DestinationT &&value)
AWS_INSPECTOR2_API Aws::String SerializePayload() const override
CreateFindingsReportRequest & WithFilterCriteria(FilterCriteriaT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String