AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Service.h
1
6#pragma once
7#include <aws/support/Support_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/support/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 Support
24{
25namespace Model
26{
27
34 class Service
35 {
36 public:
37 AWS_SUPPORT_API Service() = default;
38 AWS_SUPPORT_API Service(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SUPPORT_API Service& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SUPPORT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
49 inline const Aws::String& GetCode() const { return m_code; }
50 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
51 template<typename CodeT = Aws::String>
52 void SetCode(CodeT&& value) { m_codeHasBeenSet = true; m_code = std::forward<CodeT>(value); }
53 template<typename CodeT = Aws::String>
54 Service& WithCode(CodeT&& value) { SetCode(std::forward<CodeT>(value)); return *this;}
56
58
62 inline const Aws::String& GetName() const { return m_name; }
63 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
64 template<typename NameT = Aws::String>
65 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
66 template<typename NameT = Aws::String>
67 Service& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
69
71
77 inline const Aws::Vector<Category>& GetCategories() const { return m_categories; }
78 inline bool CategoriesHasBeenSet() const { return m_categoriesHasBeenSet; }
79 template<typename CategoriesT = Aws::Vector<Category>>
80 void SetCategories(CategoriesT&& value) { m_categoriesHasBeenSet = true; m_categories = std::forward<CategoriesT>(value); }
81 template<typename CategoriesT = Aws::Vector<Category>>
82 Service& WithCategories(CategoriesT&& value) { SetCategories(std::forward<CategoriesT>(value)); return *this;}
83 template<typename CategoriesT = Category>
84 Service& AddCategories(CategoriesT&& value) { m_categoriesHasBeenSet = true; m_categories.emplace_back(std::forward<CategoriesT>(value)); return *this; }
86 private:
87
88 Aws::String m_code;
89 bool m_codeHasBeenSet = false;
90
91 Aws::String m_name;
92 bool m_nameHasBeenSet = false;
93
94 Aws::Vector<Category> m_categories;
95 bool m_categoriesHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace Support
100} // namespace Aws
Service & AddCategories(CategoriesT &&value)
Definition Service.h:84
void SetName(NameT &&value)
Definition Service.h:65
bool CodeHasBeenSet() const
Definition Service.h:50
AWS_SUPPORT_API Service & operator=(Aws::Utils::Json::JsonView jsonValue)
bool CategoriesHasBeenSet() const
Definition Service.h:78
void SetCode(CodeT &&value)
Definition Service.h:52
const Aws::String & GetName() const
Definition Service.h:62
AWS_SUPPORT_API Aws::Utils::Json::JsonValue Jsonize() const
Service & WithCode(CodeT &&value)
Definition Service.h:54
Service & WithName(NameT &&value)
Definition Service.h:67
bool NameHasBeenSet() const
Definition Service.h:63
AWS_SUPPORT_API Service(Aws::Utils::Json::JsonView jsonValue)
AWS_SUPPORT_API Service()=default
const Aws::String & GetCode() const
Definition Service.h:49
const Aws::Vector< Category > & GetCategories() const
Definition Service.h:77
Service & WithCategories(CategoriesT &&value)
Definition Service.h:82
void SetCategories(CategoriesT &&value)
Definition Service.h:80
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue