AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
CreateSubscriptionDefinitionVersionRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/greengrass/GreengrassRequest.h>
10#include <aws/greengrass/Greengrass_EXPORTS.h>
11#include <aws/greengrass/model/Subscription.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Greengrass {
17namespace Model {
18
22 public:
23 AWS_GREENGRASS_API CreateSubscriptionDefinitionVersionRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateSubscriptionDefinitionVersion"; }
30
31 AWS_GREENGRASS_API Aws::String SerializePayload() const override;
32
34
36
39 inline const Aws::String& GetAmznClientToken() const { return m_amznClientToken; }
40 inline bool AmznClientTokenHasBeenSet() const { return m_amznClientTokenHasBeenSet; }
41 template <typename AmznClientTokenT = Aws::String>
42 void SetAmznClientToken(AmznClientTokenT&& value) {
43 m_amznClientTokenHasBeenSet = true;
44 m_amznClientToken = std::forward<AmznClientTokenT>(value);
45 }
46 template <typename AmznClientTokenT = Aws::String>
48 SetAmznClientToken(std::forward<AmznClientTokenT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetSubscriptionDefinitionId() const { return m_subscriptionDefinitionId; }
58 inline bool SubscriptionDefinitionIdHasBeenSet() const { return m_subscriptionDefinitionIdHasBeenSet; }
59 template <typename SubscriptionDefinitionIdT = Aws::String>
60 void SetSubscriptionDefinitionId(SubscriptionDefinitionIdT&& value) {
61 m_subscriptionDefinitionIdHasBeenSet = true;
62 m_subscriptionDefinitionId = std::forward<SubscriptionDefinitionIdT>(value);
63 }
64 template <typename SubscriptionDefinitionIdT = Aws::String>
66 SetSubscriptionDefinitionId(std::forward<SubscriptionDefinitionIdT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::Vector<Subscription>& GetSubscriptions() const { return m_subscriptions; }
76 inline bool SubscriptionsHasBeenSet() const { return m_subscriptionsHasBeenSet; }
77 template <typename SubscriptionsT = Aws::Vector<Subscription>>
78 void SetSubscriptions(SubscriptionsT&& value) {
79 m_subscriptionsHasBeenSet = true;
80 m_subscriptions = std::forward<SubscriptionsT>(value);
81 }
82 template <typename SubscriptionsT = Aws::Vector<Subscription>>
84 SetSubscriptions(std::forward<SubscriptionsT>(value));
85 return *this;
86 }
87 template <typename SubscriptionsT = Subscription>
89 m_subscriptionsHasBeenSet = true;
90 m_subscriptions.emplace_back(std::forward<SubscriptionsT>(value));
91 return *this;
92 }
94 private:
95 Aws::String m_amznClientToken;
96
97 Aws::String m_subscriptionDefinitionId;
98
99 Aws::Vector<Subscription> m_subscriptions;
100 bool m_amznClientTokenHasBeenSet = false;
101 bool m_subscriptionDefinitionIdHasBeenSet = false;
102 bool m_subscriptionsHasBeenSet = false;
103};
104
105} // namespace Model
106} // namespace Greengrass
107} // namespace Aws
CreateSubscriptionDefinitionVersionRequest & WithAmznClientToken(AmznClientTokenT &&value)
AWS_GREENGRASS_API Aws::String SerializePayload() const override
AWS_GREENGRASS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateSubscriptionDefinitionVersionRequest & WithSubscriptionDefinitionId(SubscriptionDefinitionIdT &&value)
CreateSubscriptionDefinitionVersionRequest & WithSubscriptions(SubscriptionsT &&value)
CreateSubscriptionDefinitionVersionRequest & AddSubscriptions(SubscriptionsT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector