AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
ContactDetails.h
1
6#pragma once
7#include <aws/geo-places/GeoPlaces_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/geo-places/model/Category.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace GeoPlaces
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_GEOPLACES_API ContactDetails() = default;
37 AWS_GEOPLACES_API ContactDetails(Aws::Utils::Json::JsonView jsonValue);
39 AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetLabel() const { return m_label; }
47 inline bool LabelHasBeenSet() const { return m_labelHasBeenSet; }
48 template<typename LabelT = Aws::String>
49 void SetLabel(LabelT&& value) { m_labelHasBeenSet = true; m_label = std::forward<LabelT>(value); }
50 template<typename LabelT = Aws::String>
51 ContactDetails& WithLabel(LabelT&& value) { SetLabel(std::forward<LabelT>(value)); return *this;}
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) { m_valueHasBeenSet = true; m_value = std::forward<ValueT>(value); }
62 template<typename ValueT = Aws::String>
63 ContactDetails& WithValue(ValueT&& value) { SetValue(std::forward<ValueT>(value)); return *this;}
65
67
70 inline const Aws::Vector<Category>& GetCategories() const { return m_categories; }
71 inline bool CategoriesHasBeenSet() const { return m_categoriesHasBeenSet; }
72 template<typename CategoriesT = Aws::Vector<Category>>
73 void SetCategories(CategoriesT&& value) { m_categoriesHasBeenSet = true; m_categories = std::forward<CategoriesT>(value); }
74 template<typename CategoriesT = Aws::Vector<Category>>
75 ContactDetails& WithCategories(CategoriesT&& value) { SetCategories(std::forward<CategoriesT>(value)); return *this;}
76 template<typename CategoriesT = Category>
77 ContactDetails& AddCategories(CategoriesT&& value) { m_categoriesHasBeenSet = true; m_categories.emplace_back(std::forward<CategoriesT>(value)); return *this; }
79 private:
80
81 Aws::String m_label;
82 bool m_labelHasBeenSet = false;
83
84 Aws::String m_value;
85 bool m_valueHasBeenSet = false;
86
87 Aws::Vector<Category> m_categories;
88 bool m_categoriesHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace GeoPlaces
93} // 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