AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CodeFilePath.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/inspector2/Inspector2_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Inspector2 {
20namespace Model {
21
29 public:
30 AWS_INSPECTOR2_API CodeFilePath() = default;
31 AWS_INSPECTOR2_API CodeFilePath(Aws::Utils::Json::JsonView jsonValue);
32 AWS_INSPECTOR2_API CodeFilePath& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetFileName() const { return m_fileName; }
40 inline bool FileNameHasBeenSet() const { return m_fileNameHasBeenSet; }
41 template <typename FileNameT = Aws::String>
42 void SetFileName(FileNameT&& value) {
43 m_fileNameHasBeenSet = true;
44 m_fileName = std::forward<FileNameT>(value);
45 }
46 template <typename FileNameT = Aws::String>
47 CodeFilePath& WithFileName(FileNameT&& value) {
48 SetFileName(std::forward<FileNameT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetFilePath() const { return m_filePath; }
58 inline bool FilePathHasBeenSet() const { return m_filePathHasBeenSet; }
59 template <typename FilePathT = Aws::String>
60 void SetFilePath(FilePathT&& value) {
61 m_filePathHasBeenSet = true;
62 m_filePath = std::forward<FilePathT>(value);
63 }
64 template <typename FilePathT = Aws::String>
65 CodeFilePath& WithFilePath(FilePathT&& value) {
66 SetFilePath(std::forward<FilePathT>(value));
67 return *this;
68 }
70
72
76 inline int GetStartLine() const { return m_startLine; }
77 inline bool StartLineHasBeenSet() const { return m_startLineHasBeenSet; }
78 inline void SetStartLine(int value) {
79 m_startLineHasBeenSet = true;
80 m_startLine = value;
81 }
82 inline CodeFilePath& WithStartLine(int value) {
83 SetStartLine(value);
84 return *this;
85 }
87
89
93 inline int GetEndLine() const { return m_endLine; }
94 inline bool EndLineHasBeenSet() const { return m_endLineHasBeenSet; }
95 inline void SetEndLine(int value) {
96 m_endLineHasBeenSet = true;
97 m_endLine = value;
98 }
99 inline CodeFilePath& WithEndLine(int value) {
100 SetEndLine(value);
101 return *this;
102 }
104 private:
105 Aws::String m_fileName;
106
107 Aws::String m_filePath;
108
109 int m_startLine{0};
110
111 int m_endLine{0};
112 bool m_fileNameHasBeenSet = false;
113 bool m_filePathHasBeenSet = false;
114 bool m_startLineHasBeenSet = false;
115 bool m_endLineHasBeenSet = false;
116};
117
118} // namespace Model
119} // namespace Inspector2
120} // namespace Aws
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
CodeFilePath & WithEndLine(int value)
AWS_INSPECTOR2_API CodeFilePath & operator=(Aws::Utils::Json::JsonView jsonValue)
CodeFilePath & WithStartLine(int value)
CodeFilePath & WithFileName(FileNameT &&value)
AWS_INSPECTOR2_API CodeFilePath()=default
void SetFileName(FileNameT &&value)
void SetFilePath(FilePathT &&value)
CodeFilePath & WithFilePath(FilePathT &&value)
const Aws::String & GetFileName() const
AWS_INSPECTOR2_API CodeFilePath(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetFilePath() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue