AWS SDK for C++

AWS SDK for C++ Version 1.11.849

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