AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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 <utility>
12
13namespace Aws
14{
15namespace LicenseManagerUserSubscriptions
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_LICENSEMANAGERUSERSUBSCRIPTIONS_API StartProductSubscriptionRequest();
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "StartProductSubscription"; }
32
33 AWS_LICENSEMANAGERUSERSUBSCRIPTIONS_API Aws::String SerializePayload() const override;
34
35
37
40 inline const Aws::String& GetDomain() const{ return m_domain; }
41 inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; }
42 inline void SetDomain(const Aws::String& value) { m_domainHasBeenSet = true; m_domain = value; }
43 inline void SetDomain(Aws::String&& value) { m_domainHasBeenSet = true; m_domain = std::move(value); }
44 inline void SetDomain(const char* value) { m_domainHasBeenSet = true; m_domain.assign(value); }
45 inline StartProductSubscriptionRequest& WithDomain(const Aws::String& value) { SetDomain(value); return *this;}
46 inline StartProductSubscriptionRequest& WithDomain(Aws::String&& value) { SetDomain(std::move(value)); return *this;}
47 inline StartProductSubscriptionRequest& WithDomain(const char* value) { SetDomain(value); return *this;}
49
51
54 inline const IdentityProvider& GetIdentityProvider() const{ return m_identityProvider; }
55 inline bool IdentityProviderHasBeenSet() const { return m_identityProviderHasBeenSet; }
56 inline void SetIdentityProvider(const IdentityProvider& value) { m_identityProviderHasBeenSet = true; m_identityProvider = value; }
57 inline void SetIdentityProvider(IdentityProvider&& value) { m_identityProviderHasBeenSet = true; m_identityProvider = std::move(value); }
61
63
66 inline const Aws::String& GetProduct() const{ return m_product; }
67 inline bool ProductHasBeenSet() const { return m_productHasBeenSet; }
68 inline void SetProduct(const Aws::String& value) { m_productHasBeenSet = true; m_product = value; }
69 inline void SetProduct(Aws::String&& value) { m_productHasBeenSet = true; m_product = std::move(value); }
70 inline void SetProduct(const char* value) { m_productHasBeenSet = true; m_product.assign(value); }
71 inline StartProductSubscriptionRequest& WithProduct(const Aws::String& value) { SetProduct(value); return *this;}
72 inline StartProductSubscriptionRequest& WithProduct(Aws::String&& value) { SetProduct(std::move(value)); return *this;}
73 inline StartProductSubscriptionRequest& WithProduct(const char* value) { SetProduct(value); return *this;}
75
77
80 inline const Aws::String& GetUsername() const{ return m_username; }
81 inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
82 inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; }
83 inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = std::move(value); }
84 inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); }
85 inline StartProductSubscriptionRequest& WithUsername(const Aws::String& value) { SetUsername(value); return *this;}
86 inline StartProductSubscriptionRequest& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;}
87 inline StartProductSubscriptionRequest& WithUsername(const char* value) { SetUsername(value); return *this;}
89 private:
90
91 Aws::String m_domain;
92 bool m_domainHasBeenSet = false;
93
94 IdentityProvider m_identityProvider;
95 bool m_identityProviderHasBeenSet = false;
96
97 Aws::String m_product;
98 bool m_productHasBeenSet = false;
99
100 Aws::String m_username;
101 bool m_usernameHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace LicenseManagerUserSubscriptions
106} // namespace Aws
AWS_LICENSEMANAGERUSERSUBSCRIPTIONS_API StartProductSubscriptionRequest()
StartProductSubscriptionRequest & WithIdentityProvider(const IdentityProvider &value)
StartProductSubscriptionRequest & WithIdentityProvider(IdentityProvider &&value)
AWS_LICENSEMANAGERUSERSUBSCRIPTIONS_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String