AWS SDK for C++

AWS SDK for C++ Version 1.11.832

Loading...
Searching...
No Matches
RouteAttribution.h
1
6#pragma once
7#include <aws/geo-routes/GeoRoutes_EXPORTS.h>
8#include <aws/geo-routes/model/RouteAttributionType.h>
9#include <aws/geo-routes/model/RouteWebLink.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 RouteAttribution() = default;
31 AWS_GEOROUTES_API RouteAttribution(Aws::Utils::Json::JsonView jsonValue);
33 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline RouteAttributionType GetAttributionType() const { return m_attributionType; }
40 inline bool AttributionTypeHasBeenSet() const { return m_attributionTypeHasBeenSet; }
42 m_attributionTypeHasBeenSet = true;
43 m_attributionType = value;
44 }
46 SetAttributionType(value);
47 return *this;
48 }
50
52
55 inline const RouteWebLink& GetWebLink() const { return m_webLink; }
56 inline bool WebLinkHasBeenSet() const { return m_webLinkHasBeenSet; }
57 template <typename WebLinkT = RouteWebLink>
58 void SetWebLink(WebLinkT&& value) {
59 m_webLinkHasBeenSet = true;
60 m_webLink = std::forward<WebLinkT>(value);
61 }
62 template <typename WebLinkT = RouteWebLink>
63 RouteAttribution& WithWebLink(WebLinkT&& value) {
64 SetWebLink(std::forward<WebLinkT>(value));
65 return *this;
66 }
68 private:
70
71 RouteWebLink m_webLink;
72 bool m_attributionTypeHasBeenSet = false;
73 bool m_webLinkHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace GeoRoutes
78} // namespace Aws
AWS_GEOROUTES_API RouteAttribution & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GEOROUTES_API RouteAttribution(Aws::Utils::Json::JsonView jsonValue)
AWS_GEOROUTES_API RouteAttribution()=default
RouteAttributionType GetAttributionType() const
RouteAttribution & WithWebLink(WebLinkT &&value)
const RouteWebLink & GetWebLink() const
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
RouteAttribution & WithAttributionType(RouteAttributionType value)
void SetAttributionType(RouteAttributionType value)
Aws::Utils::Json::JsonValue JsonValue