AWS SDK for C++

AWS SDK for C++ Version 1.11.939

Loading...
Searching...
No Matches
SupportingData.h
1
6#pragma once
7#include <aws/guardduty/GuardDuty_EXPORTS.h>
8#include <aws/guardduty/model/AnalysisRecord.h>
9#include <aws/guardduty/model/FetchRecord.h>
10#include <aws/guardduty/model/MetadataRecord.h>
11#include <aws/guardduty/model/ObservationRecord.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace GuardDuty {
23namespace Model {
24
32 public:
33 AWS_GUARDDUTY_API SupportingData() = default;
34 AWS_GUARDDUTY_API SupportingData(Aws::Utils::Json::JsonView jsonValue);
36 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline const FetchRecord& GetFetch() const { return m_fetch; }
44 inline bool FetchHasBeenSet() const { return m_fetchHasBeenSet; }
45 template <typename FetchT = FetchRecord>
46 void SetFetch(FetchT&& value) {
47 m_fetchHasBeenSet = true;
48 m_fetch = std::forward<FetchT>(value);
49 }
50 template <typename FetchT = FetchRecord>
51 SupportingData& WithFetch(FetchT&& value) {
52 SetFetch(std::forward<FetchT>(value));
53 return *this;
54 }
56
58
62 inline const AnalysisRecord& GetAnalysis() const { return m_analysis; }
63 inline bool AnalysisHasBeenSet() const { return m_analysisHasBeenSet; }
64 template <typename AnalysisT = AnalysisRecord>
65 void SetAnalysis(AnalysisT&& value) {
66 m_analysisHasBeenSet = true;
67 m_analysis = std::forward<AnalysisT>(value);
68 }
69 template <typename AnalysisT = AnalysisRecord>
70 SupportingData& WithAnalysis(AnalysisT&& value) {
71 SetAnalysis(std::forward<AnalysisT>(value));
72 return *this;
73 }
75
77
81 inline const ObservationRecord& GetObservation() const { return m_observation; }
82 inline bool ObservationHasBeenSet() const { return m_observationHasBeenSet; }
83 template <typename ObservationT = ObservationRecord>
84 void SetObservation(ObservationT&& value) {
85 m_observationHasBeenSet = true;
86 m_observation = std::forward<ObservationT>(value);
87 }
88 template <typename ObservationT = ObservationRecord>
89 SupportingData& WithObservation(ObservationT&& value) {
90 SetObservation(std::forward<ObservationT>(value));
91 return *this;
92 }
94
96
100 inline const MetadataRecord& GetMetadata() const { return m_metadata; }
101 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
102 template <typename MetadataT = MetadataRecord>
103 void SetMetadata(MetadataT&& value) {
104 m_metadataHasBeenSet = true;
105 m_metadata = std::forward<MetadataT>(value);
106 }
107 template <typename MetadataT = MetadataRecord>
108 SupportingData& WithMetadata(MetadataT&& value) {
109 SetMetadata(std::forward<MetadataT>(value));
110 return *this;
111 }
113 private:
114 FetchRecord m_fetch;
115
116 AnalysisRecord m_analysis;
117
118 ObservationRecord m_observation;
119
120 MetadataRecord m_metadata;
121 bool m_fetchHasBeenSet = false;
122 bool m_analysisHasBeenSet = false;
123 bool m_observationHasBeenSet = false;
124 bool m_metadataHasBeenSet = false;
125};
126
127} // namespace Model
128} // namespace GuardDuty
129} // namespace Aws
SupportingData & WithFetch(FetchT &&value)
SupportingData & WithAnalysis(AnalysisT &&value)
const ObservationRecord & GetObservation() const
AWS_GUARDDUTY_API SupportingData & operator=(Aws::Utils::Json::JsonView jsonValue)
SupportingData & WithMetadata(MetadataT &&value)
AWS_GUARDDUTY_API SupportingData()=default
AWS_GUARDDUTY_API SupportingData(Aws::Utils::Json::JsonView jsonValue)
const AnalysisRecord & GetAnalysis() const
const FetchRecord & GetFetch() const
void SetAnalysis(AnalysisT &&value)
SupportingData & WithObservation(ObservationT &&value)
const MetadataRecord & GetMetadata() const
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetObservation(ObservationT &&value)
Aws::Utils::Json::JsonValue JsonValue