AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Occurrences.h
1
6#pragma once
7#include <aws/macie2/Macie2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/macie2/model/Cell.h>
10#include <aws/macie2/model/Range.h>
11#include <aws/macie2/model/Page.h>
12#include <aws/macie2/model/Record.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Macie2
26{
27namespace Model
28{
29
38 {
39 public:
40 AWS_MACIE2_API Occurrences();
41 AWS_MACIE2_API Occurrences(Aws::Utils::Json::JsonView jsonValue);
43 AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
53 inline const Aws::Vector<Cell>& GetCells() const{ return m_cells; }
54 inline bool CellsHasBeenSet() const { return m_cellsHasBeenSet; }
55 inline void SetCells(const Aws::Vector<Cell>& value) { m_cellsHasBeenSet = true; m_cells = value; }
56 inline void SetCells(Aws::Vector<Cell>&& value) { m_cellsHasBeenSet = true; m_cells = std::move(value); }
57 inline Occurrences& WithCells(const Aws::Vector<Cell>& value) { SetCells(value); return *this;}
58 inline Occurrences& WithCells(Aws::Vector<Cell>&& value) { SetCells(std::move(value)); return *this;}
59 inline Occurrences& AddCells(const Cell& value) { m_cellsHasBeenSet = true; m_cells.push_back(value); return *this; }
60 inline Occurrences& AddCells(Cell&& value) { m_cellsHasBeenSet = true; m_cells.push_back(std::move(value)); return *this; }
62
64
75 inline const Aws::Vector<Range>& GetLineRanges() const{ return m_lineRanges; }
76 inline bool LineRangesHasBeenSet() const { return m_lineRangesHasBeenSet; }
77 inline void SetLineRanges(const Aws::Vector<Range>& value) { m_lineRangesHasBeenSet = true; m_lineRanges = value; }
78 inline void SetLineRanges(Aws::Vector<Range>&& value) { m_lineRangesHasBeenSet = true; m_lineRanges = std::move(value); }
79 inline Occurrences& WithLineRanges(const Aws::Vector<Range>& value) { SetLineRanges(value); return *this;}
80 inline Occurrences& WithLineRanges(Aws::Vector<Range>&& value) { SetLineRanges(std::move(value)); return *this;}
81 inline Occurrences& AddLineRanges(const Range& value) { m_lineRangesHasBeenSet = true; m_lineRanges.push_back(value); return *this; }
82 inline Occurrences& AddLineRanges(Range&& value) { m_lineRangesHasBeenSet = true; m_lineRanges.push_back(std::move(value)); return *this; }
84
86
89 inline const Aws::Vector<Range>& GetOffsetRanges() const{ return m_offsetRanges; }
90 inline bool OffsetRangesHasBeenSet() const { return m_offsetRangesHasBeenSet; }
91 inline void SetOffsetRanges(const Aws::Vector<Range>& value) { m_offsetRangesHasBeenSet = true; m_offsetRanges = value; }
92 inline void SetOffsetRanges(Aws::Vector<Range>&& value) { m_offsetRangesHasBeenSet = true; m_offsetRanges = std::move(value); }
93 inline Occurrences& WithOffsetRanges(const Aws::Vector<Range>& value) { SetOffsetRanges(value); return *this;}
94 inline Occurrences& WithOffsetRanges(Aws::Vector<Range>&& value) { SetOffsetRanges(std::move(value)); return *this;}
95 inline Occurrences& AddOffsetRanges(const Range& value) { m_offsetRangesHasBeenSet = true; m_offsetRanges.push_back(value); return *this; }
96 inline Occurrences& AddOffsetRanges(Range&& value) { m_offsetRangesHasBeenSet = true; m_offsetRanges.push_back(std::move(value)); return *this; }
98
100
106 inline const Aws::Vector<Page>& GetPages() const{ return m_pages; }
107 inline bool PagesHasBeenSet() const { return m_pagesHasBeenSet; }
108 inline void SetPages(const Aws::Vector<Page>& value) { m_pagesHasBeenSet = true; m_pages = value; }
109 inline void SetPages(Aws::Vector<Page>&& value) { m_pagesHasBeenSet = true; m_pages = std::move(value); }
110 inline Occurrences& WithPages(const Aws::Vector<Page>& value) { SetPages(value); return *this;}
111 inline Occurrences& WithPages(Aws::Vector<Page>&& value) { SetPages(std::move(value)); return *this;}
112 inline Occurrences& AddPages(const Page& value) { m_pagesHasBeenSet = true; m_pages.push_back(value); return *this; }
113 inline Occurrences& AddPages(Page&& value) { m_pagesHasBeenSet = true; m_pages.push_back(std::move(value)); return *this; }
115
117
127 inline const Aws::Vector<Record>& GetRecords() const{ return m_records; }
128 inline bool RecordsHasBeenSet() const { return m_recordsHasBeenSet; }
129 inline void SetRecords(const Aws::Vector<Record>& value) { m_recordsHasBeenSet = true; m_records = value; }
130 inline void SetRecords(Aws::Vector<Record>&& value) { m_recordsHasBeenSet = true; m_records = std::move(value); }
131 inline Occurrences& WithRecords(const Aws::Vector<Record>& value) { SetRecords(value); return *this;}
132 inline Occurrences& WithRecords(Aws::Vector<Record>&& value) { SetRecords(std::move(value)); return *this;}
133 inline Occurrences& AddRecords(const Record& value) { m_recordsHasBeenSet = true; m_records.push_back(value); return *this; }
134 inline Occurrences& AddRecords(Record&& value) { m_recordsHasBeenSet = true; m_records.push_back(std::move(value)); return *this; }
136 private:
137
138 Aws::Vector<Cell> m_cells;
139 bool m_cellsHasBeenSet = false;
140
141 Aws::Vector<Range> m_lineRanges;
142 bool m_lineRangesHasBeenSet = false;
143
144 Aws::Vector<Range> m_offsetRanges;
145 bool m_offsetRangesHasBeenSet = false;
146
147 Aws::Vector<Page> m_pages;
148 bool m_pagesHasBeenSet = false;
149
150 Aws::Vector<Record> m_records;
151 bool m_recordsHasBeenSet = false;
152 };
153
154} // namespace Model
155} // namespace Macie2
156} // namespace Aws
void SetOffsetRanges(const Aws::Vector< Range > &value)
Definition Occurrences.h:91
void SetCells(const Aws::Vector< Cell > &value)
Definition Occurrences.h:55
Occurrences & AddRecords(const Record &value)
void SetPages(Aws::Vector< Page > &&value)
const Aws::Vector< Cell > & GetCells() const
Definition Occurrences.h:53
void SetLineRanges(Aws::Vector< Range > &&value)
Definition Occurrences.h:78
Occurrences & AddCells(Cell &&value)
Definition Occurrences.h:60
Occurrences & WithOffsetRanges(Aws::Vector< Range > &&value)
Definition Occurrences.h:94
Occurrences & WithPages(const Aws::Vector< Page > &value)
Occurrences & AddOffsetRanges(const Range &value)
Definition Occurrences.h:95
void SetOffsetRanges(Aws::Vector< Range > &&value)
Definition Occurrences.h:92
void SetRecords(const Aws::Vector< Record > &value)
AWS_MACIE2_API Occurrences & operator=(Aws::Utils::Json::JsonView jsonValue)
Occurrences & WithRecords(Aws::Vector< Record > &&value)
void SetLineRanges(const Aws::Vector< Range > &value)
Definition Occurrences.h:77
Occurrences & WithCells(Aws::Vector< Cell > &&value)
Definition Occurrences.h:58
AWS_MACIE2_API Occurrences(Aws::Utils::Json::JsonView jsonValue)
Occurrences & AddLineRanges(const Range &value)
Definition Occurrences.h:81
const Aws::Vector< Record > & GetRecords() const
Occurrences & WithCells(const Aws::Vector< Cell > &value)
Definition Occurrences.h:57
Occurrences & AddOffsetRanges(Range &&value)
Definition Occurrences.h:96
Occurrences & WithLineRanges(Aws::Vector< Range > &&value)
Definition Occurrences.h:80
Occurrences & AddPages(Page &&value)
Occurrences & WithRecords(const Aws::Vector< Record > &value)
AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const
Occurrences & WithOffsetRanges(const Aws::Vector< Range > &value)
Definition Occurrences.h:93
void SetCells(Aws::Vector< Cell > &&value)
Definition Occurrences.h:56
Occurrences & AddCells(const Cell &value)
Definition Occurrences.h:59
Occurrences & AddRecords(Record &&value)
Occurrences & WithLineRanges(const Aws::Vector< Range > &value)
Definition Occurrences.h:79
const Aws::Vector< Range > & GetLineRanges() const
Definition Occurrences.h:75
void SetPages(const Aws::Vector< Page > &value)
const Aws::Vector< Page > & GetPages() const
void SetRecords(Aws::Vector< Record > &&value)
Occurrences & AddPages(const Page &value)
Occurrences & AddLineRanges(Range &&value)
Definition Occurrences.h:82
Occurrences & WithPages(Aws::Vector< Page > &&value)
const Aws::Vector< Range > & GetOffsetRanges() const
Definition Occurrences.h:89
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue