AWS SDK for C++

AWS SDK for C++ Version 1.11.924

Loading...
Searching...
No Matches
FindingLocation.h
1
6#pragma once
7#include <aws/continuum/Continuum_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Continuum {
20namespace Model {
21
28 public:
29 AWS_CONTINUUM_API FindingLocation() = default;
30 AWS_CONTINUUM_API FindingLocation(Aws::Utils::Json::JsonView jsonValue);
32 AWS_CONTINUUM_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::String& GetFilePath() const { return m_filePath; }
39 inline bool FilePathHasBeenSet() const { return m_filePathHasBeenSet; }
40 template <typename FilePathT = Aws::String>
41 void SetFilePath(FilePathT&& value) {
42 m_filePathHasBeenSet = true;
43 m_filePath = std::forward<FilePathT>(value);
44 }
45 template <typename FilePathT = Aws::String>
46 FindingLocation& WithFilePath(FilePathT&& value) {
47 SetFilePath(std::forward<FilePathT>(value));
48 return *this;
49 }
51
53
56 inline int GetStartLine() const { return m_startLine; }
57 inline bool StartLineHasBeenSet() const { return m_startLineHasBeenSet; }
58 inline void SetStartLine(int value) {
59 m_startLineHasBeenSet = true;
60 m_startLine = value;
61 }
62 inline FindingLocation& WithStartLine(int value) {
63 SetStartLine(value);
64 return *this;
65 }
67
69
72 inline int GetEndLine() const { return m_endLine; }
73 inline bool EndLineHasBeenSet() const { return m_endLineHasBeenSet; }
74 inline void SetEndLine(int value) {
75 m_endLineHasBeenSet = true;
76 m_endLine = value;
77 }
78 inline FindingLocation& WithEndLine(int value) {
79 SetEndLine(value);
80 return *this;
81 }
83 private:
84 Aws::String m_filePath;
85
86 int m_startLine{0};
87
88 int m_endLine{0};
89 bool m_filePathHasBeenSet = false;
90 bool m_startLineHasBeenSet = false;
91 bool m_endLineHasBeenSet = false;
92};
93
94} // namespace Model
95} // namespace Continuum
96} // namespace Aws
FindingLocation & WithFilePath(FilePathT &&value)
const Aws::String & GetFilePath() const
AWS_CONTINUUM_API FindingLocation & operator=(Aws::Utils::Json::JsonView jsonValue)
FindingLocation & WithStartLine(int value)
AWS_CONTINUUM_API FindingLocation()=default
AWS_CONTINUUM_API FindingLocation(Aws::Utils::Json::JsonView jsonValue)
FindingLocation & WithEndLine(int value)
AWS_CONTINUUM_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue