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/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();
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 inline void SetLineRanges(const Aws::Vector<Range>& value) { m_lineRangesHasBeenSet = true; m_lineRanges = value; }
53 inline void SetLineRanges(Aws::Vector<Range>&& value) { m_lineRangesHasBeenSet = true; m_lineRanges = std::move(value); }
54 inline Occurrences& WithLineRanges(const Aws::Vector<Range>& value) { SetLineRanges(value); return *this;}
55 inline Occurrences& WithLineRanges(Aws::Vector<Range>&& value) { SetLineRanges(std::move(value)); return *this;}
56 inline Occurrences& AddLineRanges(const Range& value) { m_lineRangesHasBeenSet = true; m_lineRanges.push_back(value); return *this; }
57 inline Occurrences& AddLineRanges(Range&& value) { m_lineRangesHasBeenSet = true; m_lineRanges.push_back(std::move(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 inline void SetOffsetRanges(const Aws::Vector<Range>& value) { m_offsetRangesHasBeenSet = true; m_offsetRanges = value; }
67 inline void SetOffsetRanges(Aws::Vector<Range>&& value) { m_offsetRangesHasBeenSet = true; m_offsetRanges = std::move(value); }
68 inline Occurrences& WithOffsetRanges(const Aws::Vector<Range>& value) { SetOffsetRanges(value); return *this;}
69 inline Occurrences& WithOffsetRanges(Aws::Vector<Range>&& value) { SetOffsetRanges(std::move(value)); return *this;}
70 inline Occurrences& AddOffsetRanges(const Range& value) { m_offsetRangesHasBeenSet = true; m_offsetRanges.push_back(value); return *this; }
71 inline Occurrences& AddOffsetRanges(Range&& value) { m_offsetRangesHasBeenSet = true; m_offsetRanges.push_back(std::move(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 inline void SetPages(const Aws::Vector<Page>& value) { m_pagesHasBeenSet = true; m_pages = value; }
82 inline void SetPages(Aws::Vector<Page>&& value) { m_pagesHasBeenSet = true; m_pages = std::move(value); }
83 inline Occurrences& WithPages(const Aws::Vector<Page>& value) { SetPages(value); return *this;}
84 inline Occurrences& WithPages(Aws::Vector<Page>&& value) { SetPages(std::move(value)); return *this;}
85 inline Occurrences& AddPages(const Page& value) { m_pagesHasBeenSet = true; m_pages.push_back(value); return *this; }
86 inline Occurrences& AddPages(Page&& value) { m_pagesHasBeenSet = true; m_pages.push_back(std::move(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 inline void SetRecords(const Aws::Vector<Record>& value) { m_recordsHasBeenSet = true; m_records = value; }
97 inline void SetRecords(Aws::Vector<Record>&& value) { m_recordsHasBeenSet = true; m_records = std::move(value); }
98 inline Occurrences& WithRecords(const Aws::Vector<Record>& value) { SetRecords(value); return *this;}
99 inline Occurrences& WithRecords(Aws::Vector<Record>&& value) { SetRecords(std::move(value)); return *this;}
100 inline Occurrences& AddRecords(const Record& value) { m_recordsHasBeenSet = true; m_records.push_back(value); return *this; }
101 inline Occurrences& AddRecords(Record&& value) { m_recordsHasBeenSet = true; m_records.push_back(std::move(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 inline void SetCells(const Aws::Vector<Cell>& value) { m_cellsHasBeenSet = true; m_cells = value; }
112 inline void SetCells(Aws::Vector<Cell>&& value) { m_cellsHasBeenSet = true; m_cells = std::move(value); }
113 inline Occurrences& WithCells(const Aws::Vector<Cell>& value) { SetCells(value); return *this;}
114 inline Occurrences& WithCells(Aws::Vector<Cell>&& value) { SetCells(std::move(value)); return *this;}
115 inline Occurrences& AddCells(const Cell& value) { m_cellsHasBeenSet = true; m_cells.push_back(value); return *this; }
116 inline Occurrences& AddCells(Cell&& value) { m_cellsHasBeenSet = true; m_cells.push_back(std::move(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
void SetLineRanges(const Aws::Vector< Range > &value)
Definition Occurrences.h:52
Occurrences & WithRecords(const Aws::Vector< Record > &value)
Definition Occurrences.h:98
void SetPages(Aws::Vector< Page > &&value)
Definition Occurrences.h:82
void SetOffsetRanges(Aws::Vector< Range > &&value)
Definition Occurrences.h:67
Occurrences & AddRecords(Record &&value)
AWS_SECURITYHUB_API Occurrences()
Occurrences & WithLineRanges(Aws::Vector< Range > &&value)
Definition Occurrences.h:55
Occurrences & AddLineRanges(const Range &value)
Definition Occurrences.h:56
AWS_SECURITYHUB_API Occurrences(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Cell > & GetCells() const
Occurrences & WithCells(const Aws::Vector< Cell > &value)
Occurrences & WithRecords(Aws::Vector< Record > &&value)
Definition Occurrences.h:99
void SetRecords(Aws::Vector< Record > &&value)
Definition Occurrences.h:97
Occurrences & AddOffsetRanges(const Range &value)
Definition Occurrences.h:70
const Aws::Vector< Page > & GetPages() const
Definition Occurrences.h:79
Occurrences & WithPages(Aws::Vector< Page > &&value)
Definition Occurrences.h:84
Occurrences & AddCells(Cell &&value)
Occurrences & WithOffsetRanges(const Aws::Vector< Range > &value)
Definition Occurrences.h:68
void SetCells(const Aws::Vector< Cell > &value)
Occurrences & WithOffsetRanges(Aws::Vector< Range > &&value)
Definition Occurrences.h:69
Occurrences & AddCells(const Cell &value)
Occurrences & AddLineRanges(Range &&value)
Definition Occurrences.h:57
const Aws::Vector< Range > & GetLineRanges() const
Definition Occurrences.h:50
Occurrences & AddOffsetRanges(Range &&value)
Definition Occurrences.h:71
void SetPages(const Aws::Vector< Page > &value)
Definition Occurrences.h:81
Occurrences & WithPages(const Aws::Vector< Page > &value)
Definition Occurrences.h:83
void SetRecords(const Aws::Vector< Record > &value)
Definition Occurrences.h:96
const Aws::Vector< Range > & GetOffsetRanges() const
Definition Occurrences.h:64
void SetOffsetRanges(const Aws::Vector< Range > &value)
Definition Occurrences.h:66
const Aws::Vector< Record > & GetRecords() const
Definition Occurrences.h:94
Occurrences & AddPages(const Page &value)
Definition Occurrences.h:85
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
Occurrences & WithCells(Aws::Vector< Cell > &&value)
AWS_SECURITYHUB_API Occurrences & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCells(Aws::Vector< Cell > &&value)
Occurrences & WithLineRanges(const Aws::Vector< Range > &value)
Definition Occurrences.h:54
void SetLineRanges(Aws::Vector< Range > &&value)
Definition Occurrences.h:53
Occurrences & AddRecords(const Record &value)
Occurrences & AddPages(Page &&value)
Definition Occurrences.h:86
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue