AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename CellsT = Aws::Vector<Cell>>
56 void SetCells(CellsT&& value) { m_cellsHasBeenSet = true; m_cells = std::forward<CellsT>(value); }
57 template<typename CellsT = Aws::Vector<Cell>>
58 Occurrences& WithCells(CellsT&& value) { SetCells(std::forward<CellsT>(value)); return *this;}
59 template<typename CellsT = Cell>
60 Occurrences& AddCells(CellsT&& value) { m_cellsHasBeenSet = true; m_cells.emplace_back(std::forward<CellsT>(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 template<typename LineRangesT = Aws::Vector<Range>>
78 void SetLineRanges(LineRangesT&& value) { m_lineRangesHasBeenSet = true; m_lineRanges = std::forward<LineRangesT>(value); }
79 template<typename LineRangesT = Aws::Vector<Range>>
80 Occurrences& WithLineRanges(LineRangesT&& value) { SetLineRanges(std::forward<LineRangesT>(value)); return *this;}
81 template<typename LineRangesT = Range>
82 Occurrences& AddLineRanges(LineRangesT&& value) { m_lineRangesHasBeenSet = true; m_lineRanges.emplace_back(std::forward<LineRangesT>(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 template<typename OffsetRangesT = Aws::Vector<Range>>
92 void SetOffsetRanges(OffsetRangesT&& value) { m_offsetRangesHasBeenSet = true; m_offsetRanges = std::forward<OffsetRangesT>(value); }
93 template<typename OffsetRangesT = Aws::Vector<Range>>
94 Occurrences& WithOffsetRanges(OffsetRangesT&& value) { SetOffsetRanges(std::forward<OffsetRangesT>(value)); return *this;}
95 template<typename OffsetRangesT = Range>
96 Occurrences& AddOffsetRanges(OffsetRangesT&& value) { m_offsetRangesHasBeenSet = true; m_offsetRanges.emplace_back(std::forward<OffsetRangesT>(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 template<typename PagesT = Aws::Vector<Page>>
109 void SetPages(PagesT&& value) { m_pagesHasBeenSet = true; m_pages = std::forward<PagesT>(value); }
110 template<typename PagesT = Aws::Vector<Page>>
111 Occurrences& WithPages(PagesT&& value) { SetPages(std::forward<PagesT>(value)); return *this;}
112 template<typename PagesT = Page>
113 Occurrences& AddPages(PagesT&& value) { m_pagesHasBeenSet = true; m_pages.emplace_back(std::forward<PagesT>(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 template<typename RecordsT = Aws::Vector<Record>>
130 void SetRecords(RecordsT&& value) { m_recordsHasBeenSet = true; m_records = std::forward<RecordsT>(value); }
131 template<typename RecordsT = Aws::Vector<Record>>
132 Occurrences& WithRecords(RecordsT&& value) { SetRecords(std::forward<RecordsT>(value)); return *this;}
133 template<typename RecordsT = Record>
134 Occurrences& AddRecords(RecordsT&& value) { m_recordsHasBeenSet = true; m_records.emplace_back(std::forward<RecordsT>(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
const Aws::Vector< Cell > & GetCells() const
Definition Occurrences.h:53
Occurrences & WithCells(CellsT &&value)
Definition Occurrences.h:58
Occurrences & AddOffsetRanges(OffsetRangesT &&value)
Definition Occurrences.h:96
AWS_MACIE2_API Occurrences & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_MACIE2_API Occurrences()=default
AWS_MACIE2_API Occurrences(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Record > & GetRecords() const
Occurrences & WithLineRanges(LineRangesT &&value)
Definition Occurrences.h:80
void SetCells(CellsT &&value)
Definition Occurrences.h:56
AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const
Occurrences & AddCells(CellsT &&value)
Definition Occurrences.h:60
Occurrences & WithRecords(RecordsT &&value)
Occurrences & WithOffsetRanges(OffsetRangesT &&value)
Definition Occurrences.h:94
Occurrences & WithPages(PagesT &&value)
const Aws::Vector< Range > & GetLineRanges() const
Definition Occurrences.h:75
Occurrences & AddRecords(RecordsT &&value)
void SetOffsetRanges(OffsetRangesT &&value)
Definition Occurrences.h:92
void SetLineRanges(LineRangesT &&value)
Definition Occurrences.h:78
Occurrences & AddLineRanges(LineRangesT &&value)
Definition Occurrences.h:82
const Aws::Vector< Page > & GetPages() const
void SetPages(PagesT &&value)
Occurrences & AddPages(PagesT &&value)
void SetRecords(RecordsT &&value)
const Aws::Vector< Range > & GetOffsetRanges() const
Definition Occurrences.h:89
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue