AWS SDK for C++

AWS SDK for C++ Version 1.11.859

Loading...
Searching...
No Matches
Citation.h
1
6#pragma once
7#include <aws/artifact/Artifact_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 Artifact {
20namespace Model {
21
28class Citation {
29 public:
30 AWS_ARTIFACT_API Citation() = default;
31 AWS_ARTIFACT_API Citation(Aws::Utils::Json::JsonView jsonValue);
32 AWS_ARTIFACT_API Citation& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_ARTIFACT_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetSourceLabel() const { return m_sourceLabel; }
40 inline bool SourceLabelHasBeenSet() const { return m_sourceLabelHasBeenSet; }
41 template <typename SourceLabelT = Aws::String>
42 void SetSourceLabel(SourceLabelT&& value) {
43 m_sourceLabelHasBeenSet = true;
44 m_sourceLabel = std::forward<SourceLabelT>(value);
45 }
46 template <typename SourceLabelT = Aws::String>
47 Citation& WithSourceLabel(SourceLabelT&& value) {
48 SetSourceLabel(std::forward<SourceLabelT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetSourceContent() const { return m_sourceContent; }
58 inline bool SourceContentHasBeenSet() const { return m_sourceContentHasBeenSet; }
59 template <typename SourceContentT = Aws::String>
60 void SetSourceContent(SourceContentT&& value) {
61 m_sourceContentHasBeenSet = true;
62 m_sourceContent = std::forward<SourceContentT>(value);
63 }
64 template <typename SourceContentT = Aws::String>
65 Citation& WithSourceContent(SourceContentT&& value) {
66 SetSourceContent(std::forward<SourceContentT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetSourceLink() const { return m_sourceLink; }
76 inline bool SourceLinkHasBeenSet() const { return m_sourceLinkHasBeenSet; }
77 template <typename SourceLinkT = Aws::String>
78 void SetSourceLink(SourceLinkT&& value) {
79 m_sourceLinkHasBeenSet = true;
80 m_sourceLink = std::forward<SourceLinkT>(value);
81 }
82 template <typename SourceLinkT = Aws::String>
83 Citation& WithSourceLink(SourceLinkT&& value) {
84 SetSourceLink(std::forward<SourceLinkT>(value));
85 return *this;
86 }
88 private:
89 Aws::String m_sourceLabel;
90
91 Aws::String m_sourceContent;
92
93 Aws::String m_sourceLink;
94 bool m_sourceLabelHasBeenSet = false;
95 bool m_sourceContentHasBeenSet = false;
96 bool m_sourceLinkHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace Artifact
101} // namespace Aws
AWS_ARTIFACT_API Citation()=default
const Aws::String & GetSourceLabel() const
Definition Citation.h:39
AWS_ARTIFACT_API Aws::Utils::Json::JsonValue Jsonize() const
bool SourceLinkHasBeenSet() const
Definition Citation.h:76
const Aws::String & GetSourceContent() const
Definition Citation.h:57
bool SourceLabelHasBeenSet() const
Definition Citation.h:40
void SetSourceLabel(SourceLabelT &&value)
Definition Citation.h:42
Citation & WithSourceLink(SourceLinkT &&value)
Definition Citation.h:83
void SetSourceLink(SourceLinkT &&value)
Definition Citation.h:78
const Aws::String & GetSourceLink() const
Definition Citation.h:75
Citation & WithSourceLabel(SourceLabelT &&value)
Definition Citation.h:47
bool SourceContentHasBeenSet() const
Definition Citation.h:58
void SetSourceContent(SourceContentT &&value)
Definition Citation.h:60
AWS_ARTIFACT_API Citation(Aws::Utils::Json::JsonView jsonValue)
Citation & WithSourceContent(SourceContentT &&value)
Definition Citation.h:65
AWS_ARTIFACT_API Citation & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue