AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Occurrences.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/securityhub/model/Range.h>
10#include <aws/securityhub/model/Page.h>
11#include <aws/securityhub/model/Record.h>
12#include <aws/securityhub/model/Cell.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 SecurityHub
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_SECURITYHUB_API Occurrences() = default;
39 AWS_SECURITYHUB_API Occurrences(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SECURITYHUB_API Occurrences& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
50 inline const Aws::Vector<Range>& GetLineRanges() const { return m_lineRanges; }
51 inline bool LineRangesHasBeenSet() const { return m_lineRangesHasBeenSet; }
52 template<typename LineRangesT = Aws::Vector<Range>>
53 void SetLineRanges(LineRangesT&& value) { m_lineRangesHasBeenSet = true; m_lineRanges = std::forward<LineRangesT>(value); }
54 template<typename LineRangesT = Aws::Vector<Range>>
55 Occurrences& WithLineRanges(LineRangesT&& value) { SetLineRanges(std::forward<LineRangesT>(value)); return *this;}
56 template<typename LineRangesT = Range>
57 Occurrences& AddLineRanges(LineRangesT&& value) { m_lineRangesHasBeenSet = true; m_lineRanges.emplace_back(std::forward<LineRangesT>(value)); return *this; }
59
61
64 inline const Aws::Vector<Range>& GetOffsetRanges() const { return m_offsetRanges; }
65 inline bool OffsetRangesHasBeenSet() const { return m_offsetRangesHasBeenSet; }
66 template<typename OffsetRangesT = Aws::Vector<Range>>
67 void SetOffsetRanges(OffsetRangesT&& value) { m_offsetRangesHasBeenSet = true; m_offsetRanges = std::forward<OffsetRangesT>(value); }
68 template<typename OffsetRangesT = Aws::Vector<Range>>
69 Occurrences& WithOffsetRanges(OffsetRangesT&& value) { SetOffsetRanges(std::forward<OffsetRangesT>(value)); return *this;}
70 template<typename OffsetRangesT = Range>
71 Occurrences& AddOffsetRanges(OffsetRangesT&& value) { m_offsetRangesHasBeenSet = true; m_offsetRanges.emplace_back(std::forward<OffsetRangesT>(value)); return *this; }
73
75
79 inline const Aws::Vector<Page>& GetPages() const { return m_pages; }
80 inline bool PagesHasBeenSet() const { return m_pagesHasBeenSet; }
81 template<typename PagesT = Aws::Vector<Page>>
82 void SetPages(PagesT&& value) { m_pagesHasBeenSet = true; m_pages = std::forward<PagesT>(value); }
83 template<typename PagesT = Aws::Vector<Page>>
84 Occurrences& WithPages(PagesT&& value) { SetPages(std::forward<PagesT>(value)); return *this;}
85 template<typename PagesT = Page>
86 Occurrences& AddPages(PagesT&& value) { m_pagesHasBeenSet = true; m_pages.emplace_back(std::forward<PagesT>(value)); return *this; }
88
90
94 inline const Aws::Vector<Record>& GetRecords() const { return m_records; }
95 inline bool RecordsHasBeenSet() const { return m_recordsHasBeenSet; }
96 template<typename RecordsT = Aws::Vector<Record>>
97 void SetRecords(RecordsT&& value) { m_recordsHasBeenSet = true; m_records = std::forward<RecordsT>(value); }
98 template<typename RecordsT = Aws::Vector<Record>>
99 Occurrences& WithRecords(RecordsT&& value) { SetRecords(std::forward<RecordsT>(value)); return *this;}
100 template<typename RecordsT = Record>
101 Occurrences& AddRecords(RecordsT&& value) { m_recordsHasBeenSet = true; m_records.emplace_back(std::forward<RecordsT>(value)); return *this; }
103
105
109 inline const Aws::Vector<Cell>& GetCells() const { return m_cells; }
110 inline bool CellsHasBeenSet() const { return m_cellsHasBeenSet; }
111 template<typename CellsT = Aws::Vector<Cell>>
112 void SetCells(CellsT&& value) { m_cellsHasBeenSet = true; m_cells = std::forward<CellsT>(value); }
113 template<typename CellsT = Aws::Vector<Cell>>
114 Occurrences& WithCells(CellsT&& value) { SetCells(std::forward<CellsT>(value)); return *this;}
115 template<typename CellsT = Cell>
116 Occurrences& AddCells(CellsT&& value) { m_cellsHasBeenSet = true; m_cells.emplace_back(std::forward<CellsT>(value)); return *this; }
118 private:
119
120 Aws::Vector<Range> m_lineRanges;
121 bool m_lineRangesHasBeenSet = false;
122
123 Aws::Vector<Range> m_offsetRanges;
124 bool m_offsetRangesHasBeenSet = false;
125
126 Aws::Vector<Page> m_pages;
127 bool m_pagesHasBeenSet = false;
128
129 Aws::Vector<Record> m_records;
130 bool m_recordsHasBeenSet = false;
131
132 Aws::Vector<Cell> m_cells;
133 bool m_cellsHasBeenSet = false;
134 };
135
136} // namespace Model
137} // namespace SecurityHub
138} // namespace Aws
Occurrences & AddLineRanges(LineRangesT &&value)
Definition Occurrences.h:57
Occurrences & WithRecords(RecordsT &&value)
Definition Occurrences.h:99
Occurrences & WithPages(PagesT &&value)
Definition Occurrences.h:84
void SetOffsetRanges(OffsetRangesT &&value)
Definition Occurrences.h:67
AWS_SECURITYHUB_API Occurrences(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Cell > & GetCells() const
void SetLineRanges(LineRangesT &&value)
Definition Occurrences.h:53
Occurrences & AddCells(CellsT &&value)
const Aws::Vector< Page > & GetPages() const
Definition Occurrences.h:79
Occurrences & WithCells(CellsT &&value)
const Aws::Vector< Range > & GetLineRanges() const
Definition Occurrences.h:50
Occurrences & AddRecords(RecordsT &&value)
Occurrences & AddPages(PagesT &&value)
Definition Occurrences.h:86
void SetRecords(RecordsT &&value)
Definition Occurrences.h:97
Occurrences & AddOffsetRanges(OffsetRangesT &&value)
Definition Occurrences.h:71
const Aws::Vector< Range > & GetOffsetRanges() const
Definition Occurrences.h:64
const Aws::Vector< Record > & GetRecords() const
Definition Occurrences.h:94
Occurrences & WithLineRanges(LineRangesT &&value)
Definition Occurrences.h:55
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SECURITYHUB_API Occurrences()=default
Occurrences & WithOffsetRanges(OffsetRangesT &&value)
Definition Occurrences.h:69
AWS_SECURITYHUB_API Occurrences & operator=(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue