AWS SDK for C++

AWS SDK for C++ Version 1.11.770

Loading...
Searching...
No Matches
RoadSnapNotice.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/geo-routes/GeoRoutes_EXPORTS.h>
10#include <aws/geo-routes/model/RoadSnapNoticeCode.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace GeoRoutes {
22namespace Model {
23
31 public:
32 AWS_GEOROUTES_API RoadSnapNotice() = default;
33 AWS_GEOROUTES_API RoadSnapNotice(Aws::Utils::Json::JsonView jsonValue);
35 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline RoadSnapNoticeCode GetCode() const { return m_code; }
42 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
43 inline void SetCode(RoadSnapNoticeCode value) {
44 m_codeHasBeenSet = true;
45 m_code = value;
46 }
48 SetCode(value);
49 return *this;
50 }
52
54
57 inline const Aws::String& GetTitle() const { return m_title; }
58 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
59 template <typename TitleT = Aws::String>
60 void SetTitle(TitleT&& value) {
61 m_titleHasBeenSet = true;
62 m_title = std::forward<TitleT>(value);
63 }
64 template <typename TitleT = Aws::String>
65 RoadSnapNotice& WithTitle(TitleT&& value) {
66 SetTitle(std::forward<TitleT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::Vector<int>& GetTracePointIndexes() const { return m_tracePointIndexes; }
76 inline bool TracePointIndexesHasBeenSet() const { return m_tracePointIndexesHasBeenSet; }
77 template <typename TracePointIndexesT = Aws::Vector<int>>
78 void SetTracePointIndexes(TracePointIndexesT&& value) {
79 m_tracePointIndexesHasBeenSet = true;
80 m_tracePointIndexes = std::forward<TracePointIndexesT>(value);
81 }
82 template <typename TracePointIndexesT = Aws::Vector<int>>
83 RoadSnapNotice& WithTracePointIndexes(TracePointIndexesT&& value) {
84 SetTracePointIndexes(std::forward<TracePointIndexesT>(value));
85 return *this;
86 }
88 m_tracePointIndexesHasBeenSet = true;
89 m_tracePointIndexes.push_back(value);
90 return *this;
91 }
93 private:
95
96 Aws::String m_title;
97
98 Aws::Vector<int> m_tracePointIndexes;
99 bool m_codeHasBeenSet = false;
100 bool m_titleHasBeenSet = false;
101 bool m_tracePointIndexesHasBeenSet = false;
102};
103
104} // namespace Model
105} // namespace GeoRoutes
106} // namespace Aws
AWS_GEOROUTES_API RoadSnapNotice & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetTitle() const
void SetTracePointIndexes(TracePointIndexesT &&value)
AWS_GEOROUTES_API RoadSnapNotice()=default
const Aws::Vector< int > & GetTracePointIndexes() const
RoadSnapNotice & AddTracePointIndexes(int value)
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
RoadSnapNotice & WithTracePointIndexes(TracePointIndexesT &&value)
void SetCode(RoadSnapNoticeCode value)
AWS_GEOROUTES_API RoadSnapNotice(Aws::Utils::Json::JsonView jsonValue)
RoadSnapNotice & WithCode(RoadSnapNoticeCode value)
RoadSnapNoticeCode GetCode() const
RoadSnapNotice & WithTitle(TitleT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue