AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ServiceCollection.h
1
6#pragma once
7#include <aws/devops-guru/DevOpsGuru_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/devops-guru/model/ServiceName.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace DevOpsGuru
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_DEVOPSGURU_API ServiceCollection() = default;
37 AWS_DEVOPSGURU_API ServiceCollection(Aws::Utils::Json::JsonView jsonValue);
39 AWS_DEVOPSGURU_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const Aws::Vector<ServiceName>& GetServiceNames() const { return m_serviceNames; }
48 inline bool ServiceNamesHasBeenSet() const { return m_serviceNamesHasBeenSet; }
49 template<typename ServiceNamesT = Aws::Vector<ServiceName>>
50 void SetServiceNames(ServiceNamesT&& value) { m_serviceNamesHasBeenSet = true; m_serviceNames = std::forward<ServiceNamesT>(value); }
51 template<typename ServiceNamesT = Aws::Vector<ServiceName>>
52 ServiceCollection& WithServiceNames(ServiceNamesT&& value) { SetServiceNames(std::forward<ServiceNamesT>(value)); return *this;}
53 inline ServiceCollection& AddServiceNames(ServiceName value) { m_serviceNamesHasBeenSet = true; m_serviceNames.push_back(value); return *this; }
55 private:
56
57 Aws::Vector<ServiceName> m_serviceNames;
58 bool m_serviceNamesHasBeenSet = false;
59 };
60
61} // namespace Model
62} // namespace DevOpsGuru
63} // namespace Aws
const Aws::Vector< ServiceName > & GetServiceNames() const
ServiceCollection & WithServiceNames(ServiceNamesT &&value)
AWS_DEVOPSGURU_API ServiceCollection()=default
AWS_DEVOPSGURU_API Aws::Utils::Json::JsonValue Jsonize() const
void SetServiceNames(ServiceNamesT &&value)
AWS_DEVOPSGURU_API ServiceCollection(Aws::Utils::Json::JsonView jsonValue)
ServiceCollection & AddServiceNames(ServiceName value)
AWS_DEVOPSGURU_API ServiceCollection & operator=(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue