AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateSubscriptionDefinitionVersionRequest.h
1
6#pragma once
7#include <aws/greengrass/Greengrass_EXPORTS.h>
8#include <aws/greengrass/GreengrassRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/greengrass/model/Subscription.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Greengrass
17{
18namespace Model
19{
20
24 {
25 public:
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateSubscriptionDefinitionVersion"; }
33
34 AWS_GREENGRASS_API Aws::String SerializePayload() const override;
35
37
38
40
43 inline const Aws::String& GetAmznClientToken() const{ return m_amznClientToken; }
44 inline bool AmznClientTokenHasBeenSet() const { return m_amznClientTokenHasBeenSet; }
45 inline void SetAmznClientToken(const Aws::String& value) { m_amznClientTokenHasBeenSet = true; m_amznClientToken = value; }
46 inline void SetAmznClientToken(Aws::String&& value) { m_amznClientTokenHasBeenSet = true; m_amznClientToken = std::move(value); }
47 inline void SetAmznClientToken(const char* value) { m_amznClientTokenHasBeenSet = true; m_amznClientToken.assign(value); }
50 inline CreateSubscriptionDefinitionVersionRequest& WithAmznClientToken(const char* value) { SetAmznClientToken(value); return *this;}
52
54
57 inline const Aws::String& GetSubscriptionDefinitionId() const{ return m_subscriptionDefinitionId; }
58 inline bool SubscriptionDefinitionIdHasBeenSet() const { return m_subscriptionDefinitionIdHasBeenSet; }
59 inline void SetSubscriptionDefinitionId(const Aws::String& value) { m_subscriptionDefinitionIdHasBeenSet = true; m_subscriptionDefinitionId = value; }
60 inline void SetSubscriptionDefinitionId(Aws::String&& value) { m_subscriptionDefinitionIdHasBeenSet = true; m_subscriptionDefinitionId = std::move(value); }
61 inline void SetSubscriptionDefinitionId(const char* value) { m_subscriptionDefinitionIdHasBeenSet = true; m_subscriptionDefinitionId.assign(value); }
66
68
71 inline const Aws::Vector<Subscription>& GetSubscriptions() const{ return m_subscriptions; }
72 inline bool SubscriptionsHasBeenSet() const { return m_subscriptionsHasBeenSet; }
73 inline void SetSubscriptions(const Aws::Vector<Subscription>& value) { m_subscriptionsHasBeenSet = true; m_subscriptions = value; }
74 inline void SetSubscriptions(Aws::Vector<Subscription>&& value) { m_subscriptionsHasBeenSet = true; m_subscriptions = std::move(value); }
77 inline CreateSubscriptionDefinitionVersionRequest& AddSubscriptions(const Subscription& value) { m_subscriptionsHasBeenSet = true; m_subscriptions.push_back(value); return *this; }
78 inline CreateSubscriptionDefinitionVersionRequest& AddSubscriptions(Subscription&& value) { m_subscriptionsHasBeenSet = true; m_subscriptions.push_back(std::move(value)); return *this; }
80 private:
81
82 Aws::String m_amznClientToken;
83 bool m_amznClientTokenHasBeenSet = false;
84
85 Aws::String m_subscriptionDefinitionId;
86 bool m_subscriptionDefinitionIdHasBeenSet = false;
87
88 Aws::Vector<Subscription> m_subscriptions;
89 bool m_subscriptionsHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace Greengrass
94} // namespace Aws
CreateSubscriptionDefinitionVersionRequest & AddSubscriptions(Subscription &&value)
CreateSubscriptionDefinitionVersionRequest & WithSubscriptionDefinitionId(Aws::String &&value)
CreateSubscriptionDefinitionVersionRequest & WithSubscriptions(const Aws::Vector< Subscription > &value)
AWS_GREENGRASS_API Aws::String SerializePayload() const override
AWS_GREENGRASS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateSubscriptionDefinitionVersionRequest & WithSubscriptions(Aws::Vector< Subscription > &&value)
CreateSubscriptionDefinitionVersionRequest & WithAmznClientToken(const Aws::String &value)
CreateSubscriptionDefinitionVersionRequest & WithAmznClientToken(Aws::String &&value)
CreateSubscriptionDefinitionVersionRequest & AddSubscriptions(const Subscription &value)
CreateSubscriptionDefinitionVersionRequest & WithSubscriptionDefinitionId(const Aws::String &value)
CreateSubscriptionDefinitionVersionRequest & WithSubscriptionDefinitionId(const char *value)
CreateSubscriptionDefinitionVersionRequest & WithAmznClientToken(const char *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