AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
Record.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/macie2/Macie2_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Macie2 {
20namespace Model {
21
29class Record {
30 public:
31 AWS_MACIE2_API Record() = default;
32 AWS_MACIE2_API Record(Aws::Utils::Json::JsonView jsonValue);
33 AWS_MACIE2_API Record& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
50 inline const Aws::String& GetJsonPath() const { return m_jsonPath; }
51 inline bool JsonPathHasBeenSet() const { return m_jsonPathHasBeenSet; }
52 template <typename JsonPathT = Aws::String>
53 void SetJsonPath(JsonPathT&& value) {
54 m_jsonPathHasBeenSet = true;
55 m_jsonPath = std::forward<JsonPathT>(value);
56 }
57 template <typename JsonPathT = Aws::String>
58 Record& WithJsonPath(JsonPathT&& value) {
59 SetJsonPath(std::forward<JsonPathT>(value));
60 return *this;
61 }
63
65
71 inline long long GetRecordIndex() const { return m_recordIndex; }
72 inline bool RecordIndexHasBeenSet() const { return m_recordIndexHasBeenSet; }
73 inline void SetRecordIndex(long long value) {
74 m_recordIndexHasBeenSet = true;
75 m_recordIndex = value;
76 }
77 inline Record& WithRecordIndex(long long value) {
78 SetRecordIndex(value);
79 return *this;
80 }
82 private:
83 Aws::String m_jsonPath;
84
85 long long m_recordIndex{0};
86 bool m_jsonPathHasBeenSet = false;
87 bool m_recordIndexHasBeenSet = false;
88};
89
90} // namespace Model
91} // namespace Macie2
92} // namespace Aws
AWS_MACIE2_API Record()=default
AWS_MACIE2_API Record(Aws::Utils::Json::JsonView jsonValue)
AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const
bool RecordIndexHasBeenSet() const
Definition Record.h:72
Record & WithRecordIndex(long long value)
Definition Record.h:77
long long GetRecordIndex() const
Definition Record.h:71
void SetRecordIndex(long long value)
Definition Record.h:73
bool JsonPathHasBeenSet() const
Definition Record.h:51
AWS_MACIE2_API Record & operator=(Aws::Utils::Json::JsonView jsonValue)
Record & WithJsonPath(JsonPathT &&value)
Definition Record.h:58
const Aws::String & GetJsonPath() const
Definition Record.h:50
void SetJsonPath(JsonPathT &&value)
Definition Record.h:53
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue