AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetLabel(const Aws::String& value) { m_labelHasBeenSet = true; m_label = value; }
49 inline void SetLabel(Aws::String&& value) { m_labelHasBeenSet = true; m_label = std::move(value); }
50 inline void SetLabel(const char* value) { m_labelHasBeenSet = true; m_label.assign(value); }
51 inline ContactDetails& WithLabel(const Aws::String& value) { SetLabel(value); return *this;}
52 inline ContactDetails& WithLabel(Aws::String&& value) { SetLabel(std::move(value)); return *this;}
53 inline ContactDetails& WithLabel(const char* value) { SetLabel(value); return *this;}
55
57
60 inline const Aws::String& GetValue() const{ return m_value; }
61 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
62 inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
63 inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
64 inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
65 inline ContactDetails& WithValue(const Aws::String& value) { SetValue(value); return *this;}
66 inline ContactDetails& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
67 inline ContactDetails& WithValue(const char* value) { SetValue(value); return *this;}
69
71
74 inline const Aws::Vector<Category>& GetCategories() const{ return m_categories; }
75 inline bool CategoriesHasBeenSet() const { return m_categoriesHasBeenSet; }
76 inline void SetCategories(const Aws::Vector<Category>& value) { m_categoriesHasBeenSet = true; m_categories = value; }
77 inline void SetCategories(Aws::Vector<Category>&& value) { m_categoriesHasBeenSet = true; m_categories = std::move(value); }
78 inline ContactDetails& WithCategories(const Aws::Vector<Category>& value) { SetCategories(value); return *this;}
79 inline ContactDetails& WithCategories(Aws::Vector<Category>&& value) { SetCategories(std::move(value)); return *this;}
80 inline ContactDetails& AddCategories(const Category& value) { m_categoriesHasBeenSet = true; m_categories.push_back(value); return *this; }
81 inline ContactDetails& AddCategories(Category&& value) { m_categoriesHasBeenSet = true; m_categories.push_back(std::move(value)); return *this; }
83 private:
84
85 Aws::String m_label;
86 bool m_labelHasBeenSet = false;
87
88 Aws::String m_value;
89 bool m_valueHasBeenSet = false;
90
91 Aws::Vector<Category> m_categories;
92 bool m_categoriesHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace GeoPlaces
97} // namespace Aws
void SetValue(const Aws::String &value)
void SetLabel(Aws::String &&value)
ContactDetails & WithLabel(Aws::String &&value)
void SetCategories(Aws::Vector< Category > &&value)
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
ContactDetails & WithValue(const Aws::String &value)
AWS_GEOPLACES_API ContactDetails(Aws::Utils::Json::JsonView jsonValue)
ContactDetails & WithCategories(Aws::Vector< Category > &&value)
void SetCategories(const Aws::Vector< Category > &value)
ContactDetails & AddCategories(const Category &value)
void SetLabel(const Aws::String &value)
ContactDetails & WithLabel(const Aws::String &value)
ContactDetails & WithLabel(const char *value)
ContactDetails & WithCategories(const Aws::Vector< Category > &value)
ContactDetails & AddCategories(Category &&value)
void SetValue(Aws::String &&value)
ContactDetails & WithValue(Aws::String &&value)
ContactDetails & WithValue(const char *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