AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DocLink.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/rds/RDS_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace RDS {
20namespace Model {
21
28class DocLink {
29 public:
30 AWS_RDS_API DocLink() = default;
31 AWS_RDS_API DocLink(const Aws::Utils::Xml::XmlNode& xmlNode);
32 AWS_RDS_API DocLink& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
33
34 AWS_RDS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
35 AWS_RDS_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
36
38
41 inline const Aws::String& GetText() const { return m_text; }
42 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
43 template <typename TextT = Aws::String>
44 void SetText(TextT&& value) {
45 m_textHasBeenSet = true;
46 m_text = std::forward<TextT>(value);
47 }
48 template <typename TextT = Aws::String>
49 DocLink& WithText(TextT&& value) {
50 SetText(std::forward<TextT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetUrl() const { return m_url; }
60 inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
61 template <typename UrlT = Aws::String>
62 void SetUrl(UrlT&& value) {
63 m_urlHasBeenSet = true;
64 m_url = std::forward<UrlT>(value);
65 }
66 template <typename UrlT = Aws::String>
67 DocLink& WithUrl(UrlT&& value) {
68 SetUrl(std::forward<UrlT>(value));
69 return *this;
70 }
72 private:
73 Aws::String m_text;
74
75 Aws::String m_url;
76 bool m_textHasBeenSet = false;
77 bool m_urlHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace RDS
82} // namespace Aws
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream