AWS SDK for C++

AWS SDK for C++ Version 1.11.939

Loading...
Searching...
No Matches
InvestigationRecord.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/guardduty/GuardDuty_EXPORTS.h>
10#include <aws/guardduty/model/RecordType.h>
11#include <aws/guardduty/model/SupportingData.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 InvestigationRecord() = default;
34 AWS_GUARDDUTY_API InvestigationRecord(Aws::Utils::Json::JsonView jsonValue);
36 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetRecordId() const { return m_recordId; }
43 inline bool RecordIdHasBeenSet() const { return m_recordIdHasBeenSet; }
44 template <typename RecordIdT = Aws::String>
45 void SetRecordId(RecordIdT&& value) {
46 m_recordIdHasBeenSet = true;
47 m_recordId = std::forward<RecordIdT>(value);
48 }
49 template <typename RecordIdT = Aws::String>
50 InvestigationRecord& WithRecordId(RecordIdT&& value) {
51 SetRecordId(std::forward<RecordIdT>(value));
52 return *this;
53 }
55
57
72 inline RecordType GetType() const { return m_type; }
73 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
74 inline void SetType(RecordType value) {
75 m_typeHasBeenSet = true;
76 m_type = value;
77 }
79 SetType(value);
80 return *this;
81 }
83
85
88 inline const Aws::String& GetTitle() const { return m_title; }
89 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
90 template <typename TitleT = Aws::String>
91 void SetTitle(TitleT&& value) {
92 m_titleHasBeenSet = true;
93 m_title = std::forward<TitleT>(value);
94 }
95 template <typename TitleT = Aws::String>
96 InvestigationRecord& WithTitle(TitleT&& value) {
97 SetTitle(std::forward<TitleT>(value));
98 return *this;
99 }
101
103
107 inline const Aws::String& GetNarrative() const { return m_narrative; }
108 inline bool NarrativeHasBeenSet() const { return m_narrativeHasBeenSet; }
109 template <typename NarrativeT = Aws::String>
110 void SetNarrative(NarrativeT&& value) {
111 m_narrativeHasBeenSet = true;
112 m_narrative = std::forward<NarrativeT>(value);
113 }
114 template <typename NarrativeT = Aws::String>
115 InvestigationRecord& WithNarrative(NarrativeT&& value) {
116 SetNarrative(std::forward<NarrativeT>(value));
117 return *this;
118 }
120
122
125 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
126 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
127 template <typename CreatedAtT = Aws::Utils::DateTime>
128 void SetCreatedAt(CreatedAtT&& value) {
129 m_createdAtHasBeenSet = true;
130 m_createdAt = std::forward<CreatedAtT>(value);
131 }
132 template <typename CreatedAtT = Aws::Utils::DateTime>
133 InvestigationRecord& WithCreatedAt(CreatedAtT&& value) {
134 SetCreatedAt(std::forward<CreatedAtT>(value));
135 return *this;
136 }
138
140
145 inline const SupportingData& GetSupportingData() const { return m_supportingData; }
146 inline bool SupportingDataHasBeenSet() const { return m_supportingDataHasBeenSet; }
147 template <typename SupportingDataT = SupportingData>
148 void SetSupportingData(SupportingDataT&& value) {
149 m_supportingDataHasBeenSet = true;
150 m_supportingData = std::forward<SupportingDataT>(value);
151 }
152 template <typename SupportingDataT = SupportingData>
153 InvestigationRecord& WithSupportingData(SupportingDataT&& value) {
154 SetSupportingData(std::forward<SupportingDataT>(value));
155 return *this;
156 }
158 private:
159 Aws::String m_recordId;
160
162
163 Aws::String m_title;
164
165 Aws::String m_narrative;
166
167 Aws::Utils::DateTime m_createdAt{};
168
169 SupportingData m_supportingData;
170 bool m_recordIdHasBeenSet = false;
171 bool m_typeHasBeenSet = false;
172 bool m_titleHasBeenSet = false;
173 bool m_narrativeHasBeenSet = false;
174 bool m_createdAtHasBeenSet = false;
175 bool m_supportingDataHasBeenSet = false;
176};
177
178} // namespace Model
179} // namespace GuardDuty
180} // namespace Aws
void SetSupportingData(SupportingDataT &&value)
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GUARDDUTY_API InvestigationRecord()=default
InvestigationRecord & WithSupportingData(SupportingDataT &&value)
InvestigationRecord & WithCreatedAt(CreatedAtT &&value)
const SupportingData & GetSupportingData() const
const Aws::Utils::DateTime & GetCreatedAt() const
InvestigationRecord & WithRecordId(RecordIdT &&value)
InvestigationRecord & WithNarrative(NarrativeT &&value)
AWS_GUARDDUTY_API InvestigationRecord & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GUARDDUTY_API InvestigationRecord(Aws::Utils::Json::JsonView jsonValue)
InvestigationRecord & WithType(RecordType value)
InvestigationRecord & WithTitle(TitleT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue