AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
StartProductSubscriptionRequest.h
1
6#pragma once
7#include <aws/license-manager-user-subscriptions/LicenseManagerUserSubscriptions_EXPORTS.h>
8#include <aws/license-manager-user-subscriptions/LicenseManagerUserSubscriptionsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/license-manager-user-subscriptions/model/IdentityProvider.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <utility>
13
14namespace Aws
15{
16namespace LicenseManagerUserSubscriptions
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_LICENSEMANAGERUSERSUBSCRIPTIONS_API StartProductSubscriptionRequest() = default;
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 "StartProductSubscription"; }
33
34 AWS_LICENSEMANAGERUSERSUBSCRIPTIONS_API Aws::String SerializePayload() const override;
35
36
38
42 inline const Aws::String& GetDomain() const { return m_domain; }
43 inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; }
44 template<typename DomainT = Aws::String>
45 void SetDomain(DomainT&& value) { m_domainHasBeenSet = true; m_domain = std::forward<DomainT>(value); }
46 template<typename DomainT = Aws::String>
47 StartProductSubscriptionRequest& WithDomain(DomainT&& value) { SetDomain(std::forward<DomainT>(value)); return *this;}
49
51
54 inline const IdentityProvider& GetIdentityProvider() const { return m_identityProvider; }
55 inline bool IdentityProviderHasBeenSet() const { return m_identityProviderHasBeenSet; }
56 template<typename IdentityProviderT = IdentityProvider>
57 void SetIdentityProvider(IdentityProviderT&& value) { m_identityProviderHasBeenSet = true; m_identityProvider = std::forward<IdentityProviderT>(value); }
58 template<typename IdentityProviderT = IdentityProvider>
59 StartProductSubscriptionRequest& WithIdentityProvider(IdentityProviderT&& value) { SetIdentityProvider(std::forward<IdentityProviderT>(value)); return *this;}
61
63
69 inline const Aws::String& GetProduct() const { return m_product; }
70 inline bool ProductHasBeenSet() const { return m_productHasBeenSet; }
71 template<typename ProductT = Aws::String>
72 void SetProduct(ProductT&& value) { m_productHasBeenSet = true; m_product = std::forward<ProductT>(value); }
73 template<typename ProductT = Aws::String>
74 StartProductSubscriptionRequest& WithProduct(ProductT&& value) { SetProduct(std::forward<ProductT>(value)); return *this;}
76
78
81 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
82 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
83 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
84 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
85 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
86 StartProductSubscriptionRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
87 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
88 StartProductSubscriptionRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
89 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
90 }
92
94
97 inline const Aws::String& GetUsername() const { return m_username; }
98 inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
99 template<typename UsernameT = Aws::String>
100 void SetUsername(UsernameT&& value) { m_usernameHasBeenSet = true; m_username = std::forward<UsernameT>(value); }
101 template<typename UsernameT = Aws::String>
102 StartProductSubscriptionRequest& WithUsername(UsernameT&& value) { SetUsername(std::forward<UsernameT>(value)); return *this;}
104 private:
105
106 Aws::String m_domain;
107 bool m_domainHasBeenSet = false;
108
109 IdentityProvider m_identityProvider;
110 bool m_identityProviderHasBeenSet = false;
111
112 Aws::String m_product;
113 bool m_productHasBeenSet = false;
114
116 bool m_tagsHasBeenSet = false;
117
118 Aws::String m_username;
119 bool m_usernameHasBeenSet = false;
120 };
121
122} // namespace Model
123} // namespace LicenseManagerUserSubscriptions
124} // namespace Aws
StartProductSubscriptionRequest & WithIdentityProvider(IdentityProviderT &&value)
StartProductSubscriptionRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_LICENSEMANAGERUSERSUBSCRIPTIONS_API StartProductSubscriptionRequest()=default
AWS_LICENSEMANAGERUSERSUBSCRIPTIONS_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