AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
AnalysisReport.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/crt/cbor/Cbor.h>
10#include <aws/network-firewall/NetworkFirewall_EXPORTS.h>
11#include <aws/network-firewall/model/EnabledAnalysisType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Cbor {
18class CborValue;
19} // namespace Cbor
20} // namespace Utils
21namespace NetworkFirewall {
22namespace Model {
23
36 public:
37 AWS_NETWORKFIREWALL_API AnalysisReport() = default;
38 AWS_NETWORKFIREWALL_API AnalysisReport(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
39 AWS_NETWORKFIREWALL_API AnalysisReport& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
40 AWS_NETWORKFIREWALL_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
41
43
47 inline const Aws::String& GetAnalysisReportId() const { return m_analysisReportId; }
48 inline bool AnalysisReportIdHasBeenSet() const { return m_analysisReportIdHasBeenSet; }
49 template <typename AnalysisReportIdT = Aws::String>
50 void SetAnalysisReportId(AnalysisReportIdT&& value) {
51 m_analysisReportIdHasBeenSet = true;
52 m_analysisReportId = std::forward<AnalysisReportIdT>(value);
53 }
54 template <typename AnalysisReportIdT = Aws::String>
55 AnalysisReport& WithAnalysisReportId(AnalysisReportIdT&& value) {
56 SetAnalysisReportId(std::forward<AnalysisReportIdT>(value));
57 return *this;
58 }
60
62
65 inline EnabledAnalysisType GetAnalysisType() const { return m_analysisType; }
66 inline bool AnalysisTypeHasBeenSet() const { return m_analysisTypeHasBeenSet; }
68 m_analysisTypeHasBeenSet = true;
69 m_analysisType = value;
70 }
72 SetAnalysisType(value);
73 return *this;
74 }
76
78
81 inline const Aws::Utils::DateTime& GetReportTime() const { return m_reportTime; }
82 inline bool ReportTimeHasBeenSet() const { return m_reportTimeHasBeenSet; }
83 template <typename ReportTimeT = Aws::Utils::DateTime>
84 void SetReportTime(ReportTimeT&& value) {
85 m_reportTimeHasBeenSet = true;
86 m_reportTime = std::forward<ReportTimeT>(value);
87 }
88 template <typename ReportTimeT = Aws::Utils::DateTime>
89 AnalysisReport& WithReportTime(ReportTimeT&& value) {
90 SetReportTime(std::forward<ReportTimeT>(value));
91 return *this;
92 }
94
96
100 inline const Aws::String& GetStatus() const { return m_status; }
101 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
102 template <typename StatusT = Aws::String>
103 void SetStatus(StatusT&& value) {
104 m_statusHasBeenSet = true;
105 m_status = std::forward<StatusT>(value);
106 }
107 template <typename StatusT = Aws::String>
108 AnalysisReport& WithStatus(StatusT&& value) {
109 SetStatus(std::forward<StatusT>(value));
110 return *this;
111 }
113 private:
114 Aws::String m_analysisReportId;
115
117
118 Aws::Utils::DateTime m_reportTime{};
119
120 Aws::String m_status;
121 bool m_analysisReportIdHasBeenSet = false;
122 bool m_analysisTypeHasBeenSet = false;
123 bool m_reportTimeHasBeenSet = false;
124 bool m_statusHasBeenSet = false;
125};
126
127} // namespace Model
128} // namespace NetworkFirewall
129} // namespace Aws
AnalysisReport & WithStatus(StatusT &&value)
const Aws::String & GetAnalysisReportId() const
AWS_NETWORKFIREWALL_API AnalysisReport(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AnalysisReport & WithAnalysisType(EnabledAnalysisType value)
AnalysisReport & WithReportTime(ReportTimeT &&value)
AWS_NETWORKFIREWALL_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_NETWORKFIREWALL_API AnalysisReport()=default
AnalysisReport & WithAnalysisReportId(AnalysisReportIdT &&value)
const Aws::Utils::DateTime & GetReportTime() const
void SetAnalysisType(EnabledAnalysisType value)
void SetAnalysisReportId(AnalysisReportIdT &&value)
EnabledAnalysisType GetAnalysisType() const
AWS_NETWORKFIREWALL_API AnalysisReport & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String