AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CodeLine.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
28class CodeLine {
29 public:
30 AWS_INSPECTOR2_API CodeLine() = default;
31 AWS_INSPECTOR2_API CodeLine(Aws::Utils::Json::JsonView jsonValue);
32 AWS_INSPECTOR2_API CodeLine& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetContent() const { return m_content; }
40 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
41 template <typename ContentT = Aws::String>
42 void SetContent(ContentT&& value) {
43 m_contentHasBeenSet = true;
44 m_content = std::forward<ContentT>(value);
45 }
46 template <typename ContentT = Aws::String>
47 CodeLine& WithContent(ContentT&& value) {
48 SetContent(std::forward<ContentT>(value));
49 return *this;
50 }
52
54
57 inline int GetLineNumber() const { return m_lineNumber; }
58 inline bool LineNumberHasBeenSet() const { return m_lineNumberHasBeenSet; }
59 inline void SetLineNumber(int value) {
60 m_lineNumberHasBeenSet = true;
61 m_lineNumber = value;
62 }
63 inline CodeLine& WithLineNumber(int value) {
64 SetLineNumber(value);
65 return *this;
66 }
68 private:
69 Aws::String m_content;
70
71 int m_lineNumber{0};
72 bool m_contentHasBeenSet = false;
73 bool m_lineNumberHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace Inspector2
78} // namespace Aws
CodeLine & WithLineNumber(int value)
Definition CodeLine.h:63
CodeLine & WithContent(ContentT &&value)
Definition CodeLine.h:47
void SetLineNumber(int value)
Definition CodeLine.h:59
AWS_INSPECTOR2_API CodeLine & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetContent() const
Definition CodeLine.h:39
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_INSPECTOR2_API CodeLine()=default
void SetContent(ContentT &&value)
Definition CodeLine.h:42
AWS_INSPECTOR2_API CodeLine(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue