AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
CodeLine.h
1
6#pragma once
7#include <aws/codeguru-security/CodeGuruSecurity_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace CodeGuruSecurity {
20namespace Model {
21
27class CodeLine {
28 public:
29 AWS_CODEGURUSECURITY_API CodeLine() = default;
30 AWS_CODEGURUSECURITY_API CodeLine(Aws::Utils::Json::JsonView jsonValue);
31 AWS_CODEGURUSECURITY_API CodeLine& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_CODEGURUSECURITY_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline int GetNumber() const { return m_number; }
39 inline bool NumberHasBeenSet() const { return m_numberHasBeenSet; }
40 inline void SetNumber(int value) {
41 m_numberHasBeenSet = true;
42 m_number = value;
43 }
44 inline CodeLine& WithNumber(int value) {
45 SetNumber(value);
46 return *this;
47 }
49
51
54 inline const Aws::String& GetContent() const { return m_content; }
55 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
56 template <typename ContentT = Aws::String>
57 void SetContent(ContentT&& value) {
58 m_contentHasBeenSet = true;
59 m_content = std::forward<ContentT>(value);
60 }
61 template <typename ContentT = Aws::String>
62 CodeLine& WithContent(ContentT&& value) {
63 SetContent(std::forward<ContentT>(value));
64 return *this;
65 }
67 private:
68 int m_number{0};
69
70 Aws::String m_content;
71 bool m_numberHasBeenSet = false;
72 bool m_contentHasBeenSet = false;
73};
74
75} // namespace Model
76} // namespace CodeGuruSecurity
77} // namespace Aws
AWS_CODEGURUSECURITY_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetContent() const
Definition CodeLine.h:54
CodeLine & WithNumber(int value)
Definition CodeLine.h:44
AWS_CODEGURUSECURITY_API CodeLine & operator=(Aws::Utils::Json::JsonView jsonValue)
CodeLine & WithContent(ContentT &&value)
Definition CodeLine.h:62
void SetContent(ContentT &&value)
Definition CodeLine.h:57
AWS_CODEGURUSECURITY_API CodeLine()=default
AWS_CODEGURUSECURITY_API CodeLine(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue