AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
AwsServiceCapability.h
1
6#pragma once
7#include <aws/cloudextensions/CloudExtensions_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CloudExtensions {
22namespace Model {
23
30 public:
31 AWS_CLOUDEXTENSIONS_API AwsServiceCapability() = default;
32 AWS_CLOUDEXTENSIONS_API AwsServiceCapability(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CLOUDEXTENSIONS_API AwsServiceCapability& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CLOUDEXTENSIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetServices() const { return m_services; }
42 inline bool ServicesHasBeenSet() const { return m_servicesHasBeenSet; }
43 template <typename ServicesT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
44 void SetServices(ServicesT&& value) {
45 m_servicesHasBeenSet = true;
46 m_services = std::forward<ServicesT>(value);
47 }
48 template <typename ServicesT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
49 AwsServiceCapability& WithServices(ServicesT&& value) {
50 SetServices(std::forward<ServicesT>(value));
51 return *this;
52 }
53 template <typename ServicesKeyT = Aws::String, typename ServicesValueT = Aws::Vector<Aws::String>>
54 AwsServiceCapability& AddServices(ServicesKeyT&& key, ServicesValueT&& value) {
55 m_servicesHasBeenSet = true;
56 m_services.emplace(std::forward<ServicesKeyT>(key), std::forward<ServicesValueT>(value));
57 return *this;
58 }
60 private:
62 bool m_servicesHasBeenSet = false;
63};
64
65} // namespace Model
66} // namespace CloudExtensions
67} // namespace Aws
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetServices() const
AwsServiceCapability & WithServices(ServicesT &&value)
AWS_CLOUDEXTENSIONS_API AwsServiceCapability(Aws::Utils::Json::JsonView jsonValue)
AwsServiceCapability & AddServices(ServicesKeyT &&key, ServicesValueT &&value)
AWS_CLOUDEXTENSIONS_API AwsServiceCapability()=default
AWS_CLOUDEXTENSIONS_API AwsServiceCapability & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CLOUDEXTENSIONS_API Aws::Utils::Json::JsonValue Jsonize() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Aws::Utils::Json::JsonValue JsonValue