AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetServiceNames(const Aws::Vector<ServiceName>& value) { m_serviceNamesHasBeenSet = true; m_serviceNames = value; }
50 inline void SetServiceNames(Aws::Vector<ServiceName>&& value) { m_serviceNamesHasBeenSet = true; m_serviceNames = std::move(value); }
51 inline ServiceCollection& WithServiceNames(const Aws::Vector<ServiceName>& value) { SetServiceNames(value); return *this;}
52 inline ServiceCollection& WithServiceNames(Aws::Vector<ServiceName>&& value) { SetServiceNames(std::move(value)); return *this;}
53 inline ServiceCollection& AddServiceNames(const ServiceName& value) { m_serviceNamesHasBeenSet = true; m_serviceNames.push_back(value); return *this; }
54 inline ServiceCollection& AddServiceNames(ServiceName&& value) { m_serviceNamesHasBeenSet = true; m_serviceNames.push_back(std::move(value)); return *this; }
56 private:
57
58 Aws::Vector<ServiceName> m_serviceNames;
59 bool m_serviceNamesHasBeenSet = false;
60 };
61
62} // namespace Model
63} // namespace DevOpsGuru
64} // namespace Aws
const Aws::Vector< ServiceName > & GetServiceNames() const
ServiceCollection & AddServiceNames(ServiceName &&value)
ServiceCollection & WithServiceNames(Aws::Vector< ServiceName > &&value)
void SetServiceNames(Aws::Vector< ServiceName > &&value)
ServiceCollection & AddServiceNames(const ServiceName &value)
AWS_DEVOPSGURU_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DEVOPSGURU_API ServiceCollection(Aws::Utils::Json::JsonView jsonValue)
ServiceCollection & WithServiceNames(const Aws::Vector< ServiceName > &value)
void SetServiceNames(const Aws::Vector< ServiceName > &value)
AWS_DEVOPSGURU_API ServiceCollection & operator=(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue