AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
AnalysisResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/crt/cbor/Cbor.h>
10#include <aws/network-firewall/NetworkFirewall_EXPORTS.h>
11#include <aws/network-firewall/model/IdentifiedType.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
40 public:
41 AWS_NETWORKFIREWALL_API AnalysisResult() = default;
42 AWS_NETWORKFIREWALL_API AnalysisResult(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
43 AWS_NETWORKFIREWALL_API AnalysisResult& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
44 AWS_NETWORKFIREWALL_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
45
47
50 inline const Aws::Vector<Aws::String>& GetIdentifiedRuleIds() const { return m_identifiedRuleIds; }
51 inline bool IdentifiedRuleIdsHasBeenSet() const { return m_identifiedRuleIdsHasBeenSet; }
52 template <typename IdentifiedRuleIdsT = Aws::Vector<Aws::String>>
53 void SetIdentifiedRuleIds(IdentifiedRuleIdsT&& value) {
54 m_identifiedRuleIdsHasBeenSet = true;
55 m_identifiedRuleIds = std::forward<IdentifiedRuleIdsT>(value);
56 }
57 template <typename IdentifiedRuleIdsT = Aws::Vector<Aws::String>>
58 AnalysisResult& WithIdentifiedRuleIds(IdentifiedRuleIdsT&& value) {
59 SetIdentifiedRuleIds(std::forward<IdentifiedRuleIdsT>(value));
60 return *this;
61 }
62 template <typename IdentifiedRuleIdsT = Aws::String>
63 AnalysisResult& AddIdentifiedRuleIds(IdentifiedRuleIdsT&& value) {
64 m_identifiedRuleIdsHasBeenSet = true;
65 m_identifiedRuleIds.emplace_back(std::forward<IdentifiedRuleIdsT>(value));
66 return *this;
67 }
69
71
93 inline IdentifiedType GetIdentifiedType() const { return m_identifiedType; }
94 inline bool IdentifiedTypeHasBeenSet() const { return m_identifiedTypeHasBeenSet; }
95 inline void SetIdentifiedType(IdentifiedType value) {
96 m_identifiedTypeHasBeenSet = true;
97 m_identifiedType = value;
98 }
100 SetIdentifiedType(value);
101 return *this;
102 }
104
106
109 inline const Aws::String& GetAnalysisDetail() const { return m_analysisDetail; }
110 inline bool AnalysisDetailHasBeenSet() const { return m_analysisDetailHasBeenSet; }
111 template <typename AnalysisDetailT = Aws::String>
112 void SetAnalysisDetail(AnalysisDetailT&& value) {
113 m_analysisDetailHasBeenSet = true;
114 m_analysisDetail = std::forward<AnalysisDetailT>(value);
115 }
116 template <typename AnalysisDetailT = Aws::String>
117 AnalysisResult& WithAnalysisDetail(AnalysisDetailT&& value) {
118 SetAnalysisDetail(std::forward<AnalysisDetailT>(value));
119 return *this;
120 }
122 private:
123 Aws::Vector<Aws::String> m_identifiedRuleIds;
124
125 IdentifiedType m_identifiedType{IdentifiedType::NOT_SET};
126
127 Aws::String m_analysisDetail;
128 bool m_identifiedRuleIdsHasBeenSet = false;
129 bool m_identifiedTypeHasBeenSet = false;
130 bool m_analysisDetailHasBeenSet = false;
131};
132
133} // namespace Model
134} // namespace NetworkFirewall
135} // namespace Aws
AWS_NETWORKFIREWALL_API AnalysisResult & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const Aws::Vector< Aws::String > & GetIdentifiedRuleIds() const
void SetAnalysisDetail(AnalysisDetailT &&value)
AWS_NETWORKFIREWALL_API AnalysisResult(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AnalysisResult & WithAnalysisDetail(AnalysisDetailT &&value)
AWS_NETWORKFIREWALL_API AnalysisResult()=default
void SetIdentifiedRuleIds(IdentifiedRuleIdsT &&value)
AnalysisResult & WithIdentifiedRuleIds(IdentifiedRuleIdsT &&value)
AWS_NETWORKFIREWALL_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AnalysisResult & WithIdentifiedType(IdentifiedType value)
AnalysisResult & AddIdentifiedRuleIds(IdentifiedRuleIdsT &&value)
const Aws::String & GetAnalysisDetail() const
void SetIdentifiedType(IdentifiedType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector