AWS SDK for C++

AWS SDK for C++ Version 1.11.851

Loading...
Searching...
No Matches
CodeLocation.h
1
6#pragma once
7#include <aws/application-signals/ApplicationSignals_EXPORTS.h>
8#include <aws/application-signals/model/ProgrammingLanguage.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ApplicationSignals {
21namespace Model {
22
31 public:
32 AWS_APPLICATIONSIGNALS_API CodeLocation() = default;
33 AWS_APPLICATIONSIGNALS_API CodeLocation(Aws::Utils::Json::JsonView jsonValue);
34 AWS_APPLICATIONSIGNALS_API CodeLocation& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline ProgrammingLanguage GetLanguage() const { return m_language; }
43 inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; }
44 inline void SetLanguage(ProgrammingLanguage value) {
45 m_languageHasBeenSet = true;
46 m_language = value;
47 }
49 SetLanguage(value);
50 return *this;
51 }
53
55
59 inline const Aws::String& GetCodeUnit() const { return m_codeUnit; }
60 inline bool CodeUnitHasBeenSet() const { return m_codeUnitHasBeenSet; }
61 template <typename CodeUnitT = Aws::String>
62 void SetCodeUnit(CodeUnitT&& value) {
63 m_codeUnitHasBeenSet = true;
64 m_codeUnit = std::forward<CodeUnitT>(value);
65 }
66 template <typename CodeUnitT = Aws::String>
67 CodeLocation& WithCodeUnit(CodeUnitT&& value) {
68 SetCodeUnit(std::forward<CodeUnitT>(value));
69 return *this;
70 }
72
74
78 inline const Aws::String& GetClassName() const { return m_className; }
79 inline bool ClassNameHasBeenSet() const { return m_classNameHasBeenSet; }
80 template <typename ClassNameT = Aws::String>
81 void SetClassName(ClassNameT&& value) {
82 m_classNameHasBeenSet = true;
83 m_className = std::forward<ClassNameT>(value);
84 }
85 template <typename ClassNameT = Aws::String>
86 CodeLocation& WithClassName(ClassNameT&& value) {
87 SetClassName(std::forward<ClassNameT>(value));
88 return *this;
89 }
91
93
97 inline const Aws::String& GetMethodName() const { return m_methodName; }
98 inline bool MethodNameHasBeenSet() const { return m_methodNameHasBeenSet; }
99 template <typename MethodNameT = Aws::String>
100 void SetMethodName(MethodNameT&& value) {
101 m_methodNameHasBeenSet = true;
102 m_methodName = std::forward<MethodNameT>(value);
103 }
104 template <typename MethodNameT = Aws::String>
105 CodeLocation& WithMethodName(MethodNameT&& value) {
106 SetMethodName(std::forward<MethodNameT>(value));
107 return *this;
108 }
110
112
117 inline const Aws::String& GetFilePath() const { return m_filePath; }
118 inline bool FilePathHasBeenSet() const { return m_filePathHasBeenSet; }
119 template <typename FilePathT = Aws::String>
120 void SetFilePath(FilePathT&& value) {
121 m_filePathHasBeenSet = true;
122 m_filePath = std::forward<FilePathT>(value);
123 }
124 template <typename FilePathT = Aws::String>
125 CodeLocation& WithFilePath(FilePathT&& value) {
126 SetFilePath(std::forward<FilePathT>(value));
127 return *this;
128 }
130
132
136 inline int GetLineNumber() const { return m_lineNumber; }
137 inline bool LineNumberHasBeenSet() const { return m_lineNumberHasBeenSet; }
138 inline void SetLineNumber(int value) {
139 m_lineNumberHasBeenSet = true;
140 m_lineNumber = value;
141 }
142 inline CodeLocation& WithLineNumber(int value) {
143 SetLineNumber(value);
144 return *this;
145 }
147 private:
149
150 Aws::String m_codeUnit;
151
152 Aws::String m_className;
153
154 Aws::String m_methodName;
155
156 Aws::String m_filePath;
157
158 int m_lineNumber{0};
159 bool m_languageHasBeenSet = false;
160 bool m_codeUnitHasBeenSet = false;
161 bool m_classNameHasBeenSet = false;
162 bool m_methodNameHasBeenSet = false;
163 bool m_filePathHasBeenSet = false;
164 bool m_lineNumberHasBeenSet = false;
165};
166
167} // namespace Model
168} // namespace ApplicationSignals
169} // namespace Aws
const Aws::String & GetCodeUnit() const
CodeLocation & WithFilePath(FilePathT &&value)
AWS_APPLICATIONSIGNALS_API CodeLocation()=default
CodeLocation & WithClassName(ClassNameT &&value)
const Aws::String & GetMethodName() const
AWS_APPLICATIONSIGNALS_API CodeLocation & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetLanguage(ProgrammingLanguage value)
CodeLocation & WithMethodName(MethodNameT &&value)
CodeLocation & WithCodeUnit(CodeUnitT &&value)
ProgrammingLanguage GetLanguage() const
const Aws::String & GetFilePath() const
CodeLocation & WithLanguage(ProgrammingLanguage value)
AWS_APPLICATIONSIGNALS_API CodeLocation(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetClassName() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue