AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; }
52 inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
53 inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); }
54 inline Service& WithCode(const Aws::String& value) { SetCode(value); return *this;}
55 inline Service& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;}
56 inline Service& WithCode(const char* value) { SetCode(value); return *this;}
58
60
64 inline const Aws::String& GetName() const{ return m_name; }
65 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
66 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
67 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
68 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
69 inline Service& WithName(const Aws::String& value) { SetName(value); return *this;}
70 inline Service& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
71 inline Service& WithName(const char* value) { SetName(value); return *this;}
73
75
81 inline const Aws::Vector<Category>& GetCategories() const{ return m_categories; }
82 inline bool CategoriesHasBeenSet() const { return m_categoriesHasBeenSet; }
83 inline void SetCategories(const Aws::Vector<Category>& value) { m_categoriesHasBeenSet = true; m_categories = value; }
84 inline void SetCategories(Aws::Vector<Category>&& value) { m_categoriesHasBeenSet = true; m_categories = std::move(value); }
85 inline Service& WithCategories(const Aws::Vector<Category>& value) { SetCategories(value); return *this;}
86 inline Service& WithCategories(Aws::Vector<Category>&& value) { SetCategories(std::move(value)); return *this;}
87 inline Service& AddCategories(const Category& value) { m_categoriesHasBeenSet = true; m_categories.push_back(value); return *this; }
88 inline Service& AddCategories(Category&& value) { m_categoriesHasBeenSet = true; m_categories.push_back(std::move(value)); return *this; }
90 private:
91
92 Aws::String m_code;
93 bool m_codeHasBeenSet = false;
94
95 Aws::String m_name;
96 bool m_nameHasBeenSet = false;
97
98 Aws::Vector<Category> m_categories;
99 bool m_categoriesHasBeenSet = false;
100 };
101
102} // namespace Model
103} // namespace Support
104} // namespace Aws
Service & WithName(const Aws::String &value)
Definition Service.h:69
AWS_SUPPORT_API Service()
bool CodeHasBeenSet() const
Definition Service.h:50
AWS_SUPPORT_API Service & operator=(Aws::Utils::Json::JsonView jsonValue)
Service & AddCategories(const Category &value)
Definition Service.h:87
Service & WithCode(const Aws::String &value)
Definition Service.h:54
bool CategoriesHasBeenSet() const
Definition Service.h:82
Service & WithCode(Aws::String &&value)
Definition Service.h:55
void SetCategories(Aws::Vector< Category > &&value)
Definition Service.h:84
void SetName(const Aws::String &value)
Definition Service.h:66
void SetName(Aws::String &&value)
Definition Service.h:67
void SetName(const char *value)
Definition Service.h:68
Service & WithCategories(Aws::Vector< Category > &&value)
Definition Service.h:86
const Aws::String & GetName() const
Definition Service.h:64
Service & WithCode(const char *value)
Definition Service.h:56
AWS_SUPPORT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetCode(const Aws::String &value)
Definition Service.h:51
Service & AddCategories(Category &&value)
Definition Service.h:88
Service & WithName(const char *value)
Definition Service.h:71
bool NameHasBeenSet() const
Definition Service.h:65
AWS_SUPPORT_API Service(Aws::Utils::Json::JsonView jsonValue)
void SetCategories(const Aws::Vector< Category > &value)
Definition Service.h:83
void SetCode(const char *value)
Definition Service.h:53
Service & WithName(Aws::String &&value)
Definition Service.h:70
void SetCode(Aws::String &&value)
Definition Service.h:52
const Aws::String & GetCode() const
Definition Service.h:49
const Aws::Vector< Category > & GetCategories() const
Definition Service.h:81
Service & WithCategories(const Aws::Vector< Category > &value)
Definition Service.h:85
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue