AWS SDK for C++

AWS SDK for C++ Version 1.11.767

Loading...
Searching...
No Matches
RouteSignpost.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/geo-routes/GeoRoutes_EXPORTS.h>
9#include <aws/geo-routes/model/RouteSignpostLabel.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
30 public:
31 AWS_GEOROUTES_API RouteSignpost() = default;
32 AWS_GEOROUTES_API RouteSignpost(Aws::Utils::Json::JsonView jsonValue);
33 AWS_GEOROUTES_API RouteSignpost& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::Vector<RouteSignpostLabel>& GetLabels() const { return m_labels; }
41 inline bool LabelsHasBeenSet() const { return m_labelsHasBeenSet; }
42 template <typename LabelsT = Aws::Vector<RouteSignpostLabel>>
43 void SetLabels(LabelsT&& value) {
44 m_labelsHasBeenSet = true;
45 m_labels = std::forward<LabelsT>(value);
46 }
47 template <typename LabelsT = Aws::Vector<RouteSignpostLabel>>
48 RouteSignpost& WithLabels(LabelsT&& value) {
49 SetLabels(std::forward<LabelsT>(value));
50 return *this;
51 }
52 template <typename LabelsT = RouteSignpostLabel>
53 RouteSignpost& AddLabels(LabelsT&& value) {
54 m_labelsHasBeenSet = true;
55 m_labels.emplace_back(std::forward<LabelsT>(value));
56 return *this;
57 }
59 private:
61 bool m_labelsHasBeenSet = false;
62};
63
64} // namespace Model
65} // namespace GeoRoutes
66} // namespace Aws
AWS_GEOROUTES_API RouteSignpost()=default
RouteSignpost & WithLabels(LabelsT &&value)
RouteSignpost & AddLabels(LabelsT &&value)
const Aws::Vector< RouteSignpostLabel > & GetLabels() const
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GEOROUTES_API RouteSignpost(Aws::Utils::Json::JsonView jsonValue)
AWS_GEOROUTES_API RouteSignpost & operator=(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue