/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace LicenseManagerUserSubscriptions { namespace Model { /** */ class AssociateUserRequest : public LicenseManagerUserSubscriptionsRequest { public: AWS_LICENSEMANAGERUSERSUBSCRIPTIONS_API AssociateUserRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "AssociateUser"; } AWS_LICENSEMANAGERUSERSUBSCRIPTIONS_API Aws::String SerializePayload() const override; /** *

The domain name of the user.

*/ inline const Aws::String& GetDomain() const{ return m_domain; } /** *

The domain name of the user.

*/ inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; } /** *

The domain name of the user.

*/ inline void SetDomain(const Aws::String& value) { m_domainHasBeenSet = true; m_domain = value; } /** *

The domain name of the user.

*/ inline void SetDomain(Aws::String&& value) { m_domainHasBeenSet = true; m_domain = std::move(value); } /** *

The domain name of the user.

*/ inline void SetDomain(const char* value) { m_domainHasBeenSet = true; m_domain.assign(value); } /** *

The domain name of the user.

*/ inline AssociateUserRequest& WithDomain(const Aws::String& value) { SetDomain(value); return *this;} /** *

The domain name of the user.

*/ inline AssociateUserRequest& WithDomain(Aws::String&& value) { SetDomain(std::move(value)); return *this;} /** *

The domain name of the user.

*/ inline AssociateUserRequest& WithDomain(const char* value) { SetDomain(value); return *this;} /** *

The identity provider of the user.

*/ inline const IdentityProvider& GetIdentityProvider() const{ return m_identityProvider; } /** *

The identity provider of the user.

*/ inline bool IdentityProviderHasBeenSet() const { return m_identityProviderHasBeenSet; } /** *

The identity provider of the user.

*/ inline void SetIdentityProvider(const IdentityProvider& value) { m_identityProviderHasBeenSet = true; m_identityProvider = value; } /** *

The identity provider of the user.

*/ inline void SetIdentityProvider(IdentityProvider&& value) { m_identityProviderHasBeenSet = true; m_identityProvider = std::move(value); } /** *

The identity provider of the user.

*/ inline AssociateUserRequest& WithIdentityProvider(const IdentityProvider& value) { SetIdentityProvider(value); return *this;} /** *

The identity provider of the user.

*/ inline AssociateUserRequest& WithIdentityProvider(IdentityProvider&& value) { SetIdentityProvider(std::move(value)); return *this;} /** *

The ID of the EC2 instance, which provides user-based subscriptions.

*/ inline const Aws::String& GetInstanceId() const{ return m_instanceId; } /** *

The ID of the EC2 instance, which provides user-based subscriptions.

*/ inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; } /** *

The ID of the EC2 instance, which provides user-based subscriptions.

*/ inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; } /** *

The ID of the EC2 instance, which provides user-based subscriptions.

*/ inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); } /** *

The ID of the EC2 instance, which provides user-based subscriptions.

*/ inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); } /** *

The ID of the EC2 instance, which provides user-based subscriptions.

*/ inline AssociateUserRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;} /** *

The ID of the EC2 instance, which provides user-based subscriptions.

*/ inline AssociateUserRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;} /** *

The ID of the EC2 instance, which provides user-based subscriptions.

*/ inline AssociateUserRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;} /** *

The user name from the identity provider for the user.

*/ inline const Aws::String& GetUsername() const{ return m_username; } /** *

The user name from the identity provider for the user.

*/ inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; } /** *

The user name from the identity provider for the user.

*/ inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; } /** *

The user name from the identity provider for the user.

*/ inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = std::move(value); } /** *

The user name from the identity provider for the user.

*/ inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); } /** *

The user name from the identity provider for the user.

*/ inline AssociateUserRequest& WithUsername(const Aws::String& value) { SetUsername(value); return *this;} /** *

The user name from the identity provider for the user.

*/ inline AssociateUserRequest& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;} /** *

The user name from the identity provider for the user.

*/ inline AssociateUserRequest& WithUsername(const char* value) { SetUsername(value); return *this;} private: Aws::String m_domain; bool m_domainHasBeenSet = false; IdentityProvider m_identityProvider; bool m_identityProviderHasBeenSet = false; Aws::String m_instanceId; bool m_instanceIdHasBeenSet = false; Aws::String m_username; bool m_usernameHasBeenSet = false; }; } // namespace Model } // namespace LicenseManagerUserSubscriptions } // namespace Aws