AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
ServiceCollection.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/devops-guru/DevOpsGuru_EXPORTS.h>
9#include <aws/devops-guru/model/ServiceName.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace DevOpsGuru {
21namespace Model {
22
30 public:
31 AWS_DEVOPSGURU_API ServiceCollection() = default;
32 AWS_DEVOPSGURU_API ServiceCollection(Aws::Utils::Json::JsonView jsonValue);
34 AWS_DEVOPSGURU_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::Vector<ServiceName>& GetServiceNames() const { return m_serviceNames; }
42 inline bool ServiceNamesHasBeenSet() const { return m_serviceNamesHasBeenSet; }
43 template <typename ServiceNamesT = Aws::Vector<ServiceName>>
44 void SetServiceNames(ServiceNamesT&& value) {
45 m_serviceNamesHasBeenSet = true;
46 m_serviceNames = std::forward<ServiceNamesT>(value);
47 }
48 template <typename ServiceNamesT = Aws::Vector<ServiceName>>
49 ServiceCollection& WithServiceNames(ServiceNamesT&& value) {
50 SetServiceNames(std::forward<ServiceNamesT>(value));
51 return *this;
52 }
54 m_serviceNamesHasBeenSet = true;
55 m_serviceNames.push_back(value);
56 return *this;
57 }
59 private:
60 Aws::Vector<ServiceName> m_serviceNames;
61 bool m_serviceNamesHasBeenSet = false;
62};
63
64} // namespace Model
65} // namespace DevOpsGuru
66} // 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