AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
Position.h
1
6#pragma once
7#include <aws/accessanalyzer/AccessAnalyzer_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace AccessAnalyzer {
17namespace Model {
18
24class Position {
25 public:
26 AWS_ACCESSANALYZER_API Position() = default;
27 AWS_ACCESSANALYZER_API Position(Aws::Utils::Json::JsonView jsonValue);
28 AWS_ACCESSANALYZER_API Position& operator=(Aws::Utils::Json::JsonView jsonValue);
29 AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const;
30
32
35 inline int GetLine() const { return m_line; }
36 inline bool LineHasBeenSet() const { return m_lineHasBeenSet; }
37 inline void SetLine(int value) {
38 m_lineHasBeenSet = true;
39 m_line = value;
40 }
41 inline Position& WithLine(int value) {
42 SetLine(value);
43 return *this;
44 }
46
48
51 inline int GetColumn() const { return m_column; }
52 inline bool ColumnHasBeenSet() const { return m_columnHasBeenSet; }
53 inline void SetColumn(int value) {
54 m_columnHasBeenSet = true;
55 m_column = value;
56 }
57 inline Position& WithColumn(int value) {
58 SetColumn(value);
59 return *this;
60 }
62
64
68 inline int GetOffset() const { return m_offset; }
69 inline bool OffsetHasBeenSet() const { return m_offsetHasBeenSet; }
70 inline void SetOffset(int value) {
71 m_offsetHasBeenSet = true;
72 m_offset = value;
73 }
74 inline Position& WithOffset(int value) {
75 SetOffset(value);
76 return *this;
77 }
79 private:
80 int m_line{0};
81
82 int m_column{0};
83
84 int m_offset{0};
85 bool m_lineHasBeenSet = false;
86 bool m_columnHasBeenSet = false;
87 bool m_offsetHasBeenSet = false;
88};
89
90} // namespace Model
91} // namespace AccessAnalyzer
92} // namespace Aws
Position & WithColumn(int value)
Definition Position.h:57
Position & WithLine(int value)
Definition Position.h:41
Position & WithOffset(int value)
Definition Position.h:74
AWS_ACCESSANALYZER_API Position(Aws::Utils::Json::JsonView jsonValue)
AWS_ACCESSANALYZER_API Position & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ACCESSANALYZER_API Position()=default
AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue