AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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#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 CodeGuruSecurity
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_CODEGURUSECURITY_API CodeLine();
35 AWS_CODEGURUSECURITY_API CodeLine(Aws::Utils::Json::JsonView jsonValue);
36 AWS_CODEGURUSECURITY_API CodeLine& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CODEGURUSECURITY_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
44 inline const Aws::String& GetContent() const{ return m_content; }
45 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
46 inline void SetContent(const Aws::String& value) { m_contentHasBeenSet = true; m_content = value; }
47 inline void SetContent(Aws::String&& value) { m_contentHasBeenSet = true; m_content = std::move(value); }
48 inline void SetContent(const char* value) { m_contentHasBeenSet = true; m_content.assign(value); }
49 inline CodeLine& WithContent(const Aws::String& value) { SetContent(value); return *this;}
50 inline CodeLine& WithContent(Aws::String&& value) { SetContent(std::move(value)); return *this;}
51 inline CodeLine& WithContent(const char* value) { SetContent(value); return *this;}
53
55
58 inline int GetNumber() const{ return m_number; }
59 inline bool NumberHasBeenSet() const { return m_numberHasBeenSet; }
60 inline void SetNumber(int value) { m_numberHasBeenSet = true; m_number = value; }
61 inline CodeLine& WithNumber(int value) { SetNumber(value); return *this;}
63 private:
64
65 Aws::String m_content;
66 bool m_contentHasBeenSet = false;
67
68 int m_number;
69 bool m_numberHasBeenSet = false;
70 };
71
72} // namespace Model
73} // namespace CodeGuruSecurity
74} // namespace Aws
AWS_CODEGURUSECURITY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetContent(const char *value)
Definition CodeLine.h:48
AWS_CODEGURUSECURITY_API CodeLine()
CodeLine & WithContent(const Aws::String &value)
Definition CodeLine.h:49
const Aws::String & GetContent() const
Definition CodeLine.h:44
void SetContent(Aws::String &&value)
Definition CodeLine.h:47
CodeLine & WithNumber(int value)
Definition CodeLine.h:61
AWS_CODEGURUSECURITY_API CodeLine & operator=(Aws::Utils::Json::JsonView jsonValue)
CodeLine & WithContent(Aws::String &&value)
Definition CodeLine.h:50
void SetContent(const Aws::String &value)
Definition CodeLine.h:46
CodeLine & WithContent(const char *value)
Definition CodeLine.h:51
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