AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CodeFilePath.h
1
6#pragma once
7#include <aws/inspector2/Inspector2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Inspector2
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_INSPECTOR2_API CodeFilePath() = default;
36 AWS_INSPECTOR2_API CodeFilePath(Aws::Utils::Json::JsonView jsonValue);
37 AWS_INSPECTOR2_API CodeFilePath& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
46 inline int GetEndLine() const { return m_endLine; }
47 inline bool EndLineHasBeenSet() const { return m_endLineHasBeenSet; }
48 inline void SetEndLine(int value) { m_endLineHasBeenSet = true; m_endLine = value; }
49 inline CodeFilePath& WithEndLine(int value) { SetEndLine(value); return *this;}
51
53
56 inline const Aws::String& GetFileName() const { return m_fileName; }
57 inline bool FileNameHasBeenSet() const { return m_fileNameHasBeenSet; }
58 template<typename FileNameT = Aws::String>
59 void SetFileName(FileNameT&& value) { m_fileNameHasBeenSet = true; m_fileName = std::forward<FileNameT>(value); }
60 template<typename FileNameT = Aws::String>
61 CodeFilePath& WithFileName(FileNameT&& value) { SetFileName(std::forward<FileNameT>(value)); return *this;}
63
65
68 inline const Aws::String& GetFilePath() const { return m_filePath; }
69 inline bool FilePathHasBeenSet() const { return m_filePathHasBeenSet; }
70 template<typename FilePathT = Aws::String>
71 void SetFilePath(FilePathT&& value) { m_filePathHasBeenSet = true; m_filePath = std::forward<FilePathT>(value); }
72 template<typename FilePathT = Aws::String>
73 CodeFilePath& WithFilePath(FilePathT&& value) { SetFilePath(std::forward<FilePathT>(value)); return *this;}
75
77
81 inline int GetStartLine() const { return m_startLine; }
82 inline bool StartLineHasBeenSet() const { return m_startLineHasBeenSet; }
83 inline void SetStartLine(int value) { m_startLineHasBeenSet = true; m_startLine = value; }
84 inline CodeFilePath& WithStartLine(int value) { SetStartLine(value); return *this;}
86 private:
87
88 int m_endLine{0};
89 bool m_endLineHasBeenSet = false;
90
91 Aws::String m_fileName;
92 bool m_fileNameHasBeenSet = false;
93
94 Aws::String m_filePath;
95 bool m_filePathHasBeenSet = false;
96
97 int m_startLine{0};
98 bool m_startLineHasBeenSet = false;
99 };
100
101} // namespace Model
102} // namespace Inspector2
103} // 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