AWS SDK for C++

AWS SDK for C++ Version 1.11.817

Loading...
Searching...
No Matches
CodeLocation.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/securityagent/SecurityAgent_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace SecurityAgent {
20namespace Model {
21
29 public:
30 AWS_SECURITYAGENT_API CodeLocation() = default;
31 AWS_SECURITYAGENT_API CodeLocation(Aws::Utils::Json::JsonView jsonValue);
32 AWS_SECURITYAGENT_API CodeLocation& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_SECURITYAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetFilePath() const { return m_filePath; }
40 inline bool FilePathHasBeenSet() const { return m_filePathHasBeenSet; }
41 template <typename FilePathT = Aws::String>
42 void SetFilePath(FilePathT&& value) {
43 m_filePathHasBeenSet = true;
44 m_filePath = std::forward<FilePathT>(value);
45 }
46 template <typename FilePathT = Aws::String>
47 CodeLocation& WithFilePath(FilePathT&& value) {
48 SetFilePath(std::forward<FilePathT>(value));
49 return *this;
50 }
52
54
57 inline int GetLineStart() const { return m_lineStart; }
58 inline bool LineStartHasBeenSet() const { return m_lineStartHasBeenSet; }
59 inline void SetLineStart(int value) {
60 m_lineStartHasBeenSet = true;
61 m_lineStart = value;
62 }
63 inline CodeLocation& WithLineStart(int value) {
64 SetLineStart(value);
65 return *this;
66 }
68
70
73 inline int GetLineEnd() const { return m_lineEnd; }
74 inline bool LineEndHasBeenSet() const { return m_lineEndHasBeenSet; }
75 inline void SetLineEnd(int value) {
76 m_lineEndHasBeenSet = true;
77 m_lineEnd = value;
78 }
79 inline CodeLocation& WithLineEnd(int value) {
80 SetLineEnd(value);
81 return *this;
82 }
84
86
89 inline const Aws::String& GetLabel() const { return m_label; }
90 inline bool LabelHasBeenSet() const { return m_labelHasBeenSet; }
91 template <typename LabelT = Aws::String>
92 void SetLabel(LabelT&& value) {
93 m_labelHasBeenSet = true;
94 m_label = std::forward<LabelT>(value);
95 }
96 template <typename LabelT = Aws::String>
97 CodeLocation& WithLabel(LabelT&& value) {
98 SetLabel(std::forward<LabelT>(value));
99 return *this;
100 }
102 private:
103 Aws::String m_filePath;
104
105 int m_lineStart{0};
106
107 int m_lineEnd{0};
108
109 Aws::String m_label;
110 bool m_filePathHasBeenSet = false;
111 bool m_lineStartHasBeenSet = false;
112 bool m_lineEndHasBeenSet = false;
113 bool m_labelHasBeenSet = false;
114};
115
116} // namespace Model
117} // namespace SecurityAgent
118} // namespace Aws
void SetFilePath(FilePathT &&value)
CodeLocation & WithLineStart(int value)
CodeLocation & WithLabel(LabelT &&value)
const Aws::String & GetLabel() const
const Aws::String & GetFilePath() const
CodeLocation & WithLineEnd(int value)
AWS_SECURITYAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SECURITYAGENT_API CodeLocation(Aws::Utils::Json::JsonView jsonValue)
CodeLocation & WithFilePath(FilePathT &&value)
AWS_SECURITYAGENT_API CodeLocation & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYAGENT_API CodeLocation()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue