AWS SDK for C++

AWS SDK for C++ Version 1.11.832

Loading...
Searching...
No Matches
RouteWebLink.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/geo-routes/GeoRoutes_EXPORTS.h>
9#include <aws/geo-routes/model/RouteWebLinkDeviceType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace GeoRoutes {
21namespace Model {
22
29 public:
30 AWS_GEOROUTES_API RouteWebLink() = default;
31 AWS_GEOROUTES_API RouteWebLink(Aws::Utils::Json::JsonView jsonValue);
32 AWS_GEOROUTES_API RouteWebLink& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetAnchorText() const { return m_anchorText; }
40 inline bool AnchorTextHasBeenSet() const { return m_anchorTextHasBeenSet; }
41 template <typename AnchorTextT = Aws::String>
42 void SetAnchorText(AnchorTextT&& value) {
43 m_anchorTextHasBeenSet = true;
44 m_anchorText = std::forward<AnchorTextT>(value);
45 }
46 template <typename AnchorTextT = Aws::String>
47 RouteWebLink& WithAnchorText(AnchorTextT&& value) {
48 SetAnchorText(std::forward<AnchorTextT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetDescription() const { return m_description; }
58 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
59 template <typename DescriptionT = Aws::String>
60 void SetDescription(DescriptionT&& value) {
61 m_descriptionHasBeenSet = true;
62 m_description = std::forward<DescriptionT>(value);
63 }
64 template <typename DescriptionT = Aws::String>
65 RouteWebLink& WithDescription(DescriptionT&& value) {
66 SetDescription(std::forward<DescriptionT>(value));
67 return *this;
68 }
70
72
75 inline RouteWebLinkDeviceType GetDeviceType() const { return m_deviceType; }
76 inline bool DeviceTypeHasBeenSet() const { return m_deviceTypeHasBeenSet; }
78 m_deviceTypeHasBeenSet = true;
79 m_deviceType = value;
80 }
82 SetDeviceType(value);
83 return *this;
84 }
86
88
91 inline const Aws::String& GetUrl() const { return m_url; }
92 inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
93 template <typename UrlT = Aws::String>
94 void SetUrl(UrlT&& value) {
95 m_urlHasBeenSet = true;
96 m_url = std::forward<UrlT>(value);
97 }
98 template <typename UrlT = Aws::String>
99 RouteWebLink& WithUrl(UrlT&& value) {
100 SetUrl(std::forward<UrlT>(value));
101 return *this;
102 }
104 private:
105 Aws::String m_anchorText;
106
107 Aws::String m_description;
108
110
111 Aws::String m_url;
112 bool m_anchorTextHasBeenSet = false;
113 bool m_descriptionHasBeenSet = false;
114 bool m_deviceTypeHasBeenSet = false;
115 bool m_urlHasBeenSet = false;
116};
117
118} // namespace Model
119} // namespace GeoRoutes
120} // namespace Aws
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue