AWS SDK for C++

AWS SDK for C++ Version 1.11.869

Loading...
Searching...
No Matches
CrossReference.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-places/GeoPlaces_EXPORTS.h>
10#include <aws/geo-places/model/Category.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace GeoPlaces {
22namespace Model {
23
31 public:
32 AWS_GEOPLACES_API CrossReference() = default;
33 AWS_GEOPLACES_API CrossReference(Aws::Utils::Json::JsonView jsonValue);
35 AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const Aws::String& GetSource() const { return m_source; }
43 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
44 template <typename SourceT = Aws::String>
45 void SetSource(SourceT&& value) {
46 m_sourceHasBeenSet = true;
47 m_source = std::forward<SourceT>(value);
48 }
49 template <typename SourceT = Aws::String>
50 CrossReference& WithSource(SourceT&& value) {
51 SetSource(std::forward<SourceT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetSourcePlaceId() const { return m_sourcePlaceId; }
61 inline bool SourcePlaceIdHasBeenSet() const { return m_sourcePlaceIdHasBeenSet; }
62 template <typename SourcePlaceIdT = Aws::String>
63 void SetSourcePlaceId(SourcePlaceIdT&& value) {
64 m_sourcePlaceIdHasBeenSet = true;
65 m_sourcePlaceId = std::forward<SourcePlaceIdT>(value);
66 }
67 template <typename SourcePlaceIdT = Aws::String>
68 CrossReference& WithSourcePlaceId(SourcePlaceIdT&& value) {
69 SetSourcePlaceId(std::forward<SourcePlaceIdT>(value));
70 return *this;
71 }
73
75
79 inline const Aws::Vector<Category>& GetSourceCategories() const { return m_sourceCategories; }
80 inline bool SourceCategoriesHasBeenSet() const { return m_sourceCategoriesHasBeenSet; }
81 template <typename SourceCategoriesT = Aws::Vector<Category>>
82 void SetSourceCategories(SourceCategoriesT&& value) {
83 m_sourceCategoriesHasBeenSet = true;
84 m_sourceCategories = std::forward<SourceCategoriesT>(value);
85 }
86 template <typename SourceCategoriesT = Aws::Vector<Category>>
87 CrossReference& WithSourceCategories(SourceCategoriesT&& value) {
88 SetSourceCategories(std::forward<SourceCategoriesT>(value));
89 return *this;
90 }
91 template <typename SourceCategoriesT = Category>
92 CrossReference& AddSourceCategories(SourceCategoriesT&& value) {
93 m_sourceCategoriesHasBeenSet = true;
94 m_sourceCategories.emplace_back(std::forward<SourceCategoriesT>(value));
95 return *this;
96 }
98 private:
99 Aws::String m_source;
100
101 Aws::String m_sourcePlaceId;
102
103 Aws::Vector<Category> m_sourceCategories;
104 bool m_sourceHasBeenSet = false;
105 bool m_sourcePlaceIdHasBeenSet = false;
106 bool m_sourceCategoriesHasBeenSet = false;
107};
108
109} // namespace Model
110} // namespace GeoPlaces
111} // namespace Aws
const Aws::String & GetSourcePlaceId() const
void SetSourceCategories(SourceCategoriesT &&value)
CrossReference & AddSourceCategories(SourceCategoriesT &&value)
AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GEOPLACES_API CrossReference & operator=(Aws::Utils::Json::JsonView jsonValue)
CrossReference & WithSource(SourceT &&value)
AWS_GEOPLACES_API CrossReference(Aws::Utils::Json::JsonView jsonValue)
CrossReference & WithSourcePlaceId(SourcePlaceIdT &&value)
const Aws::String & GetSource() const
const Aws::Vector< Category > & GetSourceCategories() const
CrossReference & WithSourceCategories(SourceCategoriesT &&value)
AWS_GEOPLACES_API CrossReference()=default
void SetSourcePlaceId(SourcePlaceIdT &&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