AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SubscriptionDefinitionVersion.h
1
6#pragma once
7#include <aws/greengrass/Greengrass_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/greengrass/model/Subscription.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 Greengrass
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_GREENGRASS_API SubscriptionDefinitionVersion();
38 AWS_GREENGRASS_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::Vector<Subscription>& GetSubscriptions() const{ return m_subscriptions; }
46 inline bool SubscriptionsHasBeenSet() const { return m_subscriptionsHasBeenSet; }
47 inline void SetSubscriptions(const Aws::Vector<Subscription>& value) { m_subscriptionsHasBeenSet = true; m_subscriptions = value; }
48 inline void SetSubscriptions(Aws::Vector<Subscription>&& value) { m_subscriptionsHasBeenSet = true; m_subscriptions = std::move(value); }
51 inline SubscriptionDefinitionVersion& AddSubscriptions(const Subscription& value) { m_subscriptionsHasBeenSet = true; m_subscriptions.push_back(value); return *this; }
52 inline SubscriptionDefinitionVersion& AddSubscriptions(Subscription&& value) { m_subscriptionsHasBeenSet = true; m_subscriptions.push_back(std::move(value)); return *this; }
54 private:
55
56 Aws::Vector<Subscription> m_subscriptions;
57 bool m_subscriptionsHasBeenSet = false;
58 };
59
60} // namespace Model
61} // namespace Greengrass
62} // namespace Aws
SubscriptionDefinitionVersion & WithSubscriptions(Aws::Vector< Subscription > &&value)
SubscriptionDefinitionVersion & WithSubscriptions(const Aws::Vector< Subscription > &value)
SubscriptionDefinitionVersion & AddSubscriptions(Subscription &&value)
void SetSubscriptions(const Aws::Vector< Subscription > &value)
AWS_GREENGRASS_API SubscriptionDefinitionVersion & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GREENGRASS_API SubscriptionDefinitionVersion(Aws::Utils::Json::JsonView jsonValue)
SubscriptionDefinitionVersion & AddSubscriptions(const Subscription &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