AWS SDK for C++  1.9.106
AWS SDK for C++
Occurrences.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <aws/macie2/model/Range.h>
11 #include <aws/macie2/model/Page.h>
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace Utils
18 {
19 namespace Json
20 {
21  class JsonValue;
22  class JsonView;
23 } // namespace Json
24 } // namespace Utils
25 namespace Macie2
26 {
27 namespace Model
28 {
29 
38  {
39  public:
44 
45 
52  inline const Aws::Vector<Cell>& GetCells() const{ return m_cells; }
53 
60  inline bool CellsHasBeenSet() const { return m_cellsHasBeenSet; }
61 
68  inline void SetCells(const Aws::Vector<Cell>& value) { m_cellsHasBeenSet = true; m_cells = value; }
69 
76  inline void SetCells(Aws::Vector<Cell>&& value) { m_cellsHasBeenSet = true; m_cells = std::move(value); }
77 
84  inline Occurrences& WithCells(const Aws::Vector<Cell>& value) { SetCells(value); return *this;}
85 
92  inline Occurrences& WithCells(Aws::Vector<Cell>&& value) { SetCells(std::move(value)); return *this;}
93 
100  inline Occurrences& AddCells(const Cell& value) { m_cellsHasBeenSet = true; m_cells.push_back(value); return *this; }
101 
108  inline Occurrences& AddCells(Cell&& value) { m_cellsHasBeenSet = true; m_cells.push_back(std::move(value)); return *this; }
109 
110 
122  inline const Aws::Vector<Range>& GetLineRanges() const{ return m_lineRanges; }
123 
135  inline bool LineRangesHasBeenSet() const { return m_lineRangesHasBeenSet; }
136 
148  inline void SetLineRanges(const Aws::Vector<Range>& value) { m_lineRangesHasBeenSet = true; m_lineRanges = value; }
149 
161  inline void SetLineRanges(Aws::Vector<Range>&& value) { m_lineRangesHasBeenSet = true; m_lineRanges = std::move(value); }
162 
174  inline Occurrences& WithLineRanges(const Aws::Vector<Range>& value) { SetLineRanges(value); return *this;}
175 
187  inline Occurrences& WithLineRanges(Aws::Vector<Range>&& value) { SetLineRanges(std::move(value)); return *this;}
188 
200  inline Occurrences& AddLineRanges(const Range& value) { m_lineRangesHasBeenSet = true; m_lineRanges.push_back(value); return *this; }
201 
213  inline Occurrences& AddLineRanges(Range&& value) { m_lineRangesHasBeenSet = true; m_lineRanges.push_back(std::move(value)); return *this; }
214 
215 
219  inline const Aws::Vector<Range>& GetOffsetRanges() const{ return m_offsetRanges; }
220 
224  inline bool OffsetRangesHasBeenSet() const { return m_offsetRangesHasBeenSet; }
225 
229  inline void SetOffsetRanges(const Aws::Vector<Range>& value) { m_offsetRangesHasBeenSet = true; m_offsetRanges = value; }
230 
234  inline void SetOffsetRanges(Aws::Vector<Range>&& value) { m_offsetRangesHasBeenSet = true; m_offsetRanges = std::move(value); }
235 
239  inline Occurrences& WithOffsetRanges(const Aws::Vector<Range>& value) { SetOffsetRanges(value); return *this;}
240 
244  inline Occurrences& WithOffsetRanges(Aws::Vector<Range>&& value) { SetOffsetRanges(std::move(value)); return *this;}
245 
249  inline Occurrences& AddOffsetRanges(const Range& value) { m_offsetRangesHasBeenSet = true; m_offsetRanges.push_back(value); return *this; }
250 
254  inline Occurrences& AddOffsetRanges(Range&& value) { m_offsetRangesHasBeenSet = true; m_offsetRanges.push_back(std::move(value)); return *this; }
255 
256 
263  inline const Aws::Vector<Page>& GetPages() const{ return m_pages; }
264 
271  inline bool PagesHasBeenSet() const { return m_pagesHasBeenSet; }
272 
279  inline void SetPages(const Aws::Vector<Page>& value) { m_pagesHasBeenSet = true; m_pages = value; }
280 
287  inline void SetPages(Aws::Vector<Page>&& value) { m_pagesHasBeenSet = true; m_pages = std::move(value); }
288 
295  inline Occurrences& WithPages(const Aws::Vector<Page>& value) { SetPages(value); return *this;}
296 
303  inline Occurrences& WithPages(Aws::Vector<Page>&& value) { SetPages(std::move(value)); return *this;}
304 
311  inline Occurrences& AddPages(const Page& value) { m_pagesHasBeenSet = true; m_pages.push_back(value); return *this; }
312 
319  inline Occurrences& AddPages(Page&& value) { m_pagesHasBeenSet = true; m_pages.push_back(std::move(value)); return *this; }
320 
321 
332  inline const Aws::Vector<Record>& GetRecords() const{ return m_records; }
333 
344  inline bool RecordsHasBeenSet() const { return m_recordsHasBeenSet; }
345 
356  inline void SetRecords(const Aws::Vector<Record>& value) { m_recordsHasBeenSet = true; m_records = value; }
357 
368  inline void SetRecords(Aws::Vector<Record>&& value) { m_recordsHasBeenSet = true; m_records = std::move(value); }
369 
380  inline Occurrences& WithRecords(const Aws::Vector<Record>& value) { SetRecords(value); return *this;}
381 
392  inline Occurrences& WithRecords(Aws::Vector<Record>&& value) { SetRecords(std::move(value)); return *this;}
393 
404  inline Occurrences& AddRecords(const Record& value) { m_recordsHasBeenSet = true; m_records.push_back(value); return *this; }
405 
416  inline Occurrences& AddRecords(Record&& value) { m_recordsHasBeenSet = true; m_records.push_back(std::move(value)); return *this; }
417 
418  private:
419 
420  Aws::Vector<Cell> m_cells;
421  bool m_cellsHasBeenSet;
422 
423  Aws::Vector<Range> m_lineRanges;
424  bool m_lineRangesHasBeenSet;
425 
426  Aws::Vector<Range> m_offsetRanges;
427  bool m_offsetRangesHasBeenSet;
428 
429  Aws::Vector<Page> m_pages;
430  bool m_pagesHasBeenSet;
431 
432  Aws::Vector<Record> m_records;
433  bool m_recordsHasBeenSet;
434  };
435 
436 } // namespace Model
437 } // namespace Macie2
438 } // namespace Aws
Cell.h
Aws::Macie2::Model::Occurrences::WithLineRanges
Occurrences & WithLineRanges(Aws::Vector< Range > &&value)
Definition: Occurrences.h:187
Aws::Macie2::Model::Occurrences::AddPages
Occurrences & AddPages(Page &&value)
Definition: Occurrences.h:319
Aws::Macie2::Model::Occurrences::WithRecords
Occurrences & WithRecords(const Aws::Vector< Record > &value)
Definition: Occurrences.h:380
Aws::Macie2::Model::Occurrences::AddOffsetRanges
Occurrences & AddOffsetRanges(Range &&value)
Definition: Occurrences.h:254
AWS_MACIE2_API
#define AWS_MACIE2_API
Definition: Macie2_EXPORTS.h:28
Aws::Macie2::Model::Occurrences::GetPages
const Aws::Vector< Page > & GetPages() const
Definition: Occurrences.h:263
Aws::Macie2::Model::Occurrences::WithOffsetRanges
Occurrences & WithOffsetRanges(const Aws::Vector< Range > &value)
Definition: Occurrences.h:239
Aws::Macie2::Model::Occurrences::WithLineRanges
Occurrences & WithLineRanges(const Aws::Vector< Range > &value)
Definition: Occurrences.h:174
Aws::Macie2::Model::Occurrences::GetCells
const Aws::Vector< Cell > & GetCells() const
Definition: Occurrences.h:52
Page.h
Aws::Macie2::Model::Occurrences::AddCells
Occurrences & AddCells(Cell &&value)
Definition: Occurrences.h:108
Aws::Macie2::Model::Occurrences::WithCells
Occurrences & WithCells(Aws::Vector< Cell > &&value)
Definition: Occurrences.h:92
Aws::Macie2::Model::Occurrences::WithCells
Occurrences & WithCells(const Aws::Vector< Cell > &value)
Definition: Occurrences.h:84
Aws::Macie2::Model::Occurrences::AddLineRanges
Occurrences & AddLineRanges(Range &&value)
Definition: Occurrences.h:213
Aws::Macie2::Model::Page
Definition: Page.h:33
Aws::Macie2::Model::Record
Definition: Record.h:34
Aws::Macie2::Model::Occurrences::SetLineRanges
void SetLineRanges(const Aws::Vector< Range > &value)
Definition: Occurrences.h:148
Aws::Macie2::Model::Occurrences::SetOffsetRanges
void SetOffsetRanges(const Aws::Vector< Range > &value)
Definition: Occurrences.h:229
Macie2_EXPORTS.h
Aws::Macie2::Model::Occurrences::SetPages
void SetPages(Aws::Vector< Page > &&value)
Definition: Occurrences.h:287
Record.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Macie2::Model::Occurrences::SetRecords
void SetRecords(const Aws::Vector< Record > &value)
Definition: Occurrences.h:356
Aws::Macie2::Model::Occurrences::SetOffsetRanges
void SetOffsetRanges(Aws::Vector< Range > &&value)
Definition: Occurrences.h:234
AWSVector.h
Aws::Macie2::Model::Occurrences::AddLineRanges
Occurrences & AddLineRanges(const Range &value)
Definition: Occurrences.h:200
Aws::Macie2::Model::Occurrences::AddRecords
Occurrences & AddRecords(const Record &value)
Definition: Occurrences.h:404
Aws::Macie2::Model::Occurrences::SetPages
void SetPages(const Aws::Vector< Page > &value)
Definition: Occurrences.h:279
Aws::Macie2::Model::Occurrences::AddPages
Occurrences & AddPages(const Page &value)
Definition: Occurrences.h:311
Aws::Macie2::Model::Occurrences::Occurrences
Occurrences(Aws::Utils::Json::JsonView jsonValue)
Aws::Macie2::Model::Occurrences::WithOffsetRanges
Occurrences & WithOffsetRanges(Aws::Vector< Range > &&value)
Definition: Occurrences.h:244
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Macie2::Model::Range
Definition: Range.h:31
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Macie2::Model::Occurrences::OffsetRangesHasBeenSet
bool OffsetRangesHasBeenSet() const
Definition: Occurrences.h:224
Aws::Macie2::Model::Occurrences::AddOffsetRanges
Occurrences & AddOffsetRanges(const Range &value)
Definition: Occurrences.h:249
Aws::Macie2::Model::Occurrences::AddCells
Occurrences & AddCells(const Cell &value)
Definition: Occurrences.h:100
Aws::Macie2::Model::Occurrences
Definition: Occurrences.h:38
Aws::Macie2::Model::Occurrences::AddRecords
Occurrences & AddRecords(Record &&value)
Definition: Occurrences.h:416
Range.h
Aws::Macie2::Model::Occurrences::GetOffsetRanges
const Aws::Vector< Range > & GetOffsetRanges() const
Definition: Occurrences.h:219
Aws::Macie2::Model::Occurrences::LineRangesHasBeenSet
bool LineRangesHasBeenSet() const
Definition: Occurrences.h:135
Aws::Macie2::Model::Occurrences::SetCells
void SetCells(Aws::Vector< Cell > &&value)
Definition: Occurrences.h:76
Aws
Definition: AccessManagementClient.h:15
Aws::Macie2::Model::Occurrences::WithRecords
Occurrences & WithRecords(Aws::Vector< Record > &&value)
Definition: Occurrences.h:392
Aws::Macie2::Model::Occurrences::GetRecords
const Aws::Vector< Record > & GetRecords() const
Definition: Occurrences.h:332
Aws::Macie2::Model::Occurrences::SetRecords
void SetRecords(Aws::Vector< Record > &&value)
Definition: Occurrences.h:368
Aws::Macie2::Model::Occurrences::SetLineRanges
void SetLineRanges(Aws::Vector< Range > &&value)
Definition: Occurrences.h:161
Aws::Macie2::Model::Occurrences::WithPages
Occurrences & WithPages(const Aws::Vector< Page > &value)
Definition: Occurrences.h:295
Aws::Macie2::Model::Occurrences::GetLineRanges
const Aws::Vector< Range > & GetLineRanges() const
Definition: Occurrences.h:122
Aws::Macie2::Model::Occurrences::RecordsHasBeenSet
bool RecordsHasBeenSet() const
Definition: Occurrences.h:344
Aws::Macie2::Model::Occurrences::operator=
Occurrences & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Macie2::Model::Occurrences::CellsHasBeenSet
bool CellsHasBeenSet() const
Definition: Occurrences.h:60
Aws::Macie2::Model::Occurrences::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Macie2::Model::Occurrences::Occurrences
Occurrences()
Aws::Macie2::Model::Occurrences::WithPages
Occurrences & WithPages(Aws::Vector< Page > &&value)
Definition: Occurrences.h:303
Aws::Macie2::Model::Occurrences::SetCells
void SetCells(const Aws::Vector< Cell > &value)
Definition: Occurrences.h:68
Aws::Macie2::Model::Cell
Definition: Cell.h:33
Aws::Macie2::Model::Occurrences::PagesHasBeenSet
bool PagesHasBeenSet() const
Definition: Occurrences.h:271