AWS SDK for C++

AWS SDK for C++ Version 1.11.930

Loading...
Searching...
No Matches
RegisterSubscriptionProviderRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/license-manager-linux-subscriptions/LicenseManagerLinuxSubscriptionsRequest.h>
10#include <aws/license-manager-linux-subscriptions/LicenseManagerLinuxSubscriptions_EXPORTS.h>
11#include <aws/license-manager-linux-subscriptions/model/SubscriptionProviderSource.h>
12
13#include <utility>
14
15namespace Aws {
16namespace LicenseManagerLinuxSubscriptions {
17namespace Model {
18
22 public:
23 AWS_LICENSEMANAGERLINUXSUBSCRIPTIONS_API RegisterSubscriptionProviderRequest() = 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 "RegisterSubscriptionProvider"; }
30
31 AWS_LICENSEMANAGERLINUXSUBSCRIPTIONS_API Aws::String SerializePayload() const override;
32
34
40 inline const Aws::String& GetSecretArn() const { return m_secretArn; }
41 inline bool SecretArnHasBeenSet() const { return m_secretArnHasBeenSet; }
42 template <typename SecretArnT = Aws::String>
43 void SetSecretArn(SecretArnT&& value) {
44 m_secretArnHasBeenSet = true;
45 m_secretArn = std::forward<SecretArnT>(value);
46 }
47 template <typename SecretArnT = Aws::String>
49 SetSecretArn(std::forward<SecretArnT>(value));
50 return *this;
51 }
53
55
58 inline SubscriptionProviderSource GetSubscriptionProviderSource() const { return m_subscriptionProviderSource; }
59 inline bool SubscriptionProviderSourceHasBeenSet() const { return m_subscriptionProviderSourceHasBeenSet; }
61 m_subscriptionProviderSourceHasBeenSet = true;
62 m_subscriptionProviderSource = value;
63 }
69
71
75 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
76 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
77 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
78 void SetTags(TagsT&& value) {
79 m_tagsHasBeenSet = true;
80 m_tags = std::forward<TagsT>(value);
81 }
82 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
84 SetTags(std::forward<TagsT>(value));
85 return *this;
86 }
87 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
88 RegisterSubscriptionProviderRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
89 m_tagsHasBeenSet = true;
90 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
91 return *this;
92 }
94 private:
95 Aws::String m_secretArn;
96
98
100 bool m_secretArnHasBeenSet = false;
101 bool m_subscriptionProviderSourceHasBeenSet = false;
102 bool m_tagsHasBeenSet = false;
103};
104
105} // namespace Model
106} // namespace LicenseManagerLinuxSubscriptions
107} // namespace Aws
AWS_LICENSEMANAGERLINUXSUBSCRIPTIONS_API RegisterSubscriptionProviderRequest()=default
RegisterSubscriptionProviderRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
RegisterSubscriptionProviderRequest & WithSubscriptionProviderSource(SubscriptionProviderSource value)
AWS_LICENSEMANAGERLINUXSUBSCRIPTIONS_API Aws::String SerializePayload() const override
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String