AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
ContactDetails.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
30 public:
31 AWS_GEOPLACES_API ContactDetails() = default;
32 AWS_GEOPLACES_API ContactDetails(Aws::Utils::Json::JsonView jsonValue);
34 AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetLabel() const { return m_label; }
41 inline bool LabelHasBeenSet() const { return m_labelHasBeenSet; }
42 template <typename LabelT = Aws::String>
43 void SetLabel(LabelT&& value) {
44 m_labelHasBeenSet = true;
45 m_label = std::forward<LabelT>(value);
46 }
47 template <typename LabelT = Aws::String>
48 ContactDetails& WithLabel(LabelT&& value) {
49 SetLabel(std::forward<LabelT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetValue() const { return m_value; }
59 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
60 template <typename ValueT = Aws::String>
61 void SetValue(ValueT&& value) {
62 m_valueHasBeenSet = true;
63 m_value = std::forward<ValueT>(value);
64 }
65 template <typename ValueT = Aws::String>
66 ContactDetails& WithValue(ValueT&& value) {
67 SetValue(std::forward<ValueT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::Vector<Category>& GetCategories() const { return m_categories; }
77 inline bool CategoriesHasBeenSet() const { return m_categoriesHasBeenSet; }
78 template <typename CategoriesT = Aws::Vector<Category>>
79 void SetCategories(CategoriesT&& value) {
80 m_categoriesHasBeenSet = true;
81 m_categories = std::forward<CategoriesT>(value);
82 }
83 template <typename CategoriesT = Aws::Vector<Category>>
84 ContactDetails& WithCategories(CategoriesT&& value) {
85 SetCategories(std::forward<CategoriesT>(value));
86 return *this;
87 }
88 template <typename CategoriesT = Category>
89 ContactDetails& AddCategories(CategoriesT&& value) {
90 m_categoriesHasBeenSet = true;
91 m_categories.emplace_back(std::forward<CategoriesT>(value));
92 return *this;
93 }
95 private:
96 Aws::String m_label;
97 bool m_labelHasBeenSet = false;
98
99 Aws::String m_value;
100 bool m_valueHasBeenSet = false;
101
102 Aws::Vector<Category> m_categories;
103 bool m_categoriesHasBeenSet = false;
104};
105
106} // namespace Model
107} // namespace GeoPlaces
108} // namespace Aws
ContactDetails & WithCategories(CategoriesT &&value)
void SetCategories(CategoriesT &&value)
ContactDetails & AddCategories(CategoriesT &&value)
AWS_GEOPLACES_API ContactDetails()=default
const Aws::Vector< Category > & GetCategories() const
AWS_GEOPLACES_API ContactDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetLabel() const
AWS_GEOPLACES_API ContactDetails(Aws::Utils::Json::JsonView jsonValue)
ContactDetails & WithLabel(LabelT &&value)
ContactDetails & WithValue(ValueT &&value)
const Aws::String & GetValue() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue