AWS SDK for C++

AWS SDK for C++ Version 1.11.683

Loading...
Searching...
No Matches
SubscriptionDefinitionVersion.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/greengrass/Greengrass_EXPORTS.h>
9#include <aws/greengrass/model/Subscription.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Greengrass {
21namespace Model {
22
29 public:
30 AWS_GREENGRASS_API SubscriptionDefinitionVersion() = default;
33 AWS_GREENGRASS_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::Vector<Subscription>& GetSubscriptions() const { return m_subscriptions; }
40 inline bool SubscriptionsHasBeenSet() const { return m_subscriptionsHasBeenSet; }
41 template <typename SubscriptionsT = Aws::Vector<Subscription>>
42 void SetSubscriptions(SubscriptionsT&& value) {
43 m_subscriptionsHasBeenSet = true;
44 m_subscriptions = std::forward<SubscriptionsT>(value);
45 }
46 template <typename SubscriptionsT = Aws::Vector<Subscription>>
48 SetSubscriptions(std::forward<SubscriptionsT>(value));
49 return *this;
50 }
51 template <typename SubscriptionsT = Subscription>
53 m_subscriptionsHasBeenSet = true;
54 m_subscriptions.emplace_back(std::forward<SubscriptionsT>(value));
55 return *this;
56 }
58 private:
59 Aws::Vector<Subscription> m_subscriptions;
60 bool m_subscriptionsHasBeenSet = false;
61};
62
63} // namespace Model
64} // namespace Greengrass
65} // namespace Aws
AWS_GREENGRASS_API SubscriptionDefinitionVersion()=default
AWS_GREENGRASS_API SubscriptionDefinitionVersion & operator=(Aws::Utils::Json::JsonView jsonValue)
SubscriptionDefinitionVersion & AddSubscriptions(SubscriptionsT &&value)
AWS_GREENGRASS_API SubscriptionDefinitionVersion(Aws::Utils::Json::JsonView jsonValue)
SubscriptionDefinitionVersion & WithSubscriptions(SubscriptionsT &&value)
const Aws::Vector< Subscription > & GetSubscriptions() const
AWS_GREENGRASS_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue