/** * 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 StorageGateway { namespace Model { /** *

JoinDomainInput

See Also:

AWS * API Reference

*/ class JoinDomainRequest : public StorageGatewayRequest { public: AWS_STORAGEGATEWAY_API JoinDomainRequest(); // 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 "JoinDomain"; } AWS_STORAGEGATEWAY_API Aws::String SerializePayload() const override; AWS_STORAGEGATEWAY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The Amazon Resource Name (ARN) of the gateway. Use the * ListGateways operation to return a list of gateways for your * account and Amazon Web Services Region.

*/ inline const Aws::String& GetGatewayARN() const{ return m_gatewayARN; } /** *

The Amazon Resource Name (ARN) of the gateway. Use the * ListGateways operation to return a list of gateways for your * account and Amazon Web Services Region.

*/ inline bool GatewayARNHasBeenSet() const { return m_gatewayARNHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the gateway. Use the * ListGateways operation to return a list of gateways for your * account and Amazon Web Services Region.

*/ inline void SetGatewayARN(const Aws::String& value) { m_gatewayARNHasBeenSet = true; m_gatewayARN = value; } /** *

The Amazon Resource Name (ARN) of the gateway. Use the * ListGateways operation to return a list of gateways for your * account and Amazon Web Services Region.

*/ inline void SetGatewayARN(Aws::String&& value) { m_gatewayARNHasBeenSet = true; m_gatewayARN = std::move(value); } /** *

The Amazon Resource Name (ARN) of the gateway. Use the * ListGateways operation to return a list of gateways for your * account and Amazon Web Services Region.

*/ inline void SetGatewayARN(const char* value) { m_gatewayARNHasBeenSet = true; m_gatewayARN.assign(value); } /** *

The Amazon Resource Name (ARN) of the gateway. Use the * ListGateways operation to return a list of gateways for your * account and Amazon Web Services Region.

*/ inline JoinDomainRequest& WithGatewayARN(const Aws::String& value) { SetGatewayARN(value); return *this;} /** *

The Amazon Resource Name (ARN) of the gateway. Use the * ListGateways operation to return a list of gateways for your * account and Amazon Web Services Region.

*/ inline JoinDomainRequest& WithGatewayARN(Aws::String&& value) { SetGatewayARN(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the gateway. Use the * ListGateways operation to return a list of gateways for your * account and Amazon Web Services Region.

*/ inline JoinDomainRequest& WithGatewayARN(const char* value) { SetGatewayARN(value); return *this;} /** *

The name of the domain that you want the gateway to join.

*/ inline const Aws::String& GetDomainName() const{ return m_domainName; } /** *

The name of the domain that you want the gateway to join.

*/ inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; } /** *

The name of the domain that you want the gateway to join.

*/ inline void SetDomainName(const Aws::String& value) { m_domainNameHasBeenSet = true; m_domainName = value; } /** *

The name of the domain that you want the gateway to join.

*/ inline void SetDomainName(Aws::String&& value) { m_domainNameHasBeenSet = true; m_domainName = std::move(value); } /** *

The name of the domain that you want the gateway to join.

*/ inline void SetDomainName(const char* value) { m_domainNameHasBeenSet = true; m_domainName.assign(value); } /** *

The name of the domain that you want the gateway to join.

*/ inline JoinDomainRequest& WithDomainName(const Aws::String& value) { SetDomainName(value); return *this;} /** *

The name of the domain that you want the gateway to join.

*/ inline JoinDomainRequest& WithDomainName(Aws::String&& value) { SetDomainName(std::move(value)); return *this;} /** *

The name of the domain that you want the gateway to join.

*/ inline JoinDomainRequest& WithDomainName(const char* value) { SetDomainName(value); return *this;} /** *

The organizational unit (OU) is a container in an Active Directory that can * hold users, groups, computers, and other OUs and this parameter specifies the OU * that the gateway will join within the AD domain.

*/ inline const Aws::String& GetOrganizationalUnit() const{ return m_organizationalUnit; } /** *

The organizational unit (OU) is a container in an Active Directory that can * hold users, groups, computers, and other OUs and this parameter specifies the OU * that the gateway will join within the AD domain.

*/ inline bool OrganizationalUnitHasBeenSet() const { return m_organizationalUnitHasBeenSet; } /** *

The organizational unit (OU) is a container in an Active Directory that can * hold users, groups, computers, and other OUs and this parameter specifies the OU * that the gateway will join within the AD domain.

*/ inline void SetOrganizationalUnit(const Aws::String& value) { m_organizationalUnitHasBeenSet = true; m_organizationalUnit = value; } /** *

The organizational unit (OU) is a container in an Active Directory that can * hold users, groups, computers, and other OUs and this parameter specifies the OU * that the gateway will join within the AD domain.

*/ inline void SetOrganizationalUnit(Aws::String&& value) { m_organizationalUnitHasBeenSet = true; m_organizationalUnit = std::move(value); } /** *

The organizational unit (OU) is a container in an Active Directory that can * hold users, groups, computers, and other OUs and this parameter specifies the OU * that the gateway will join within the AD domain.

*/ inline void SetOrganizationalUnit(const char* value) { m_organizationalUnitHasBeenSet = true; m_organizationalUnit.assign(value); } /** *

The organizational unit (OU) is a container in an Active Directory that can * hold users, groups, computers, and other OUs and this parameter specifies the OU * that the gateway will join within the AD domain.

*/ inline JoinDomainRequest& WithOrganizationalUnit(const Aws::String& value) { SetOrganizationalUnit(value); return *this;} /** *

The organizational unit (OU) is a container in an Active Directory that can * hold users, groups, computers, and other OUs and this parameter specifies the OU * that the gateway will join within the AD domain.

*/ inline JoinDomainRequest& WithOrganizationalUnit(Aws::String&& value) { SetOrganizationalUnit(std::move(value)); return *this;} /** *

The organizational unit (OU) is a container in an Active Directory that can * hold users, groups, computers, and other OUs and this parameter specifies the OU * that the gateway will join within the AD domain.

*/ inline JoinDomainRequest& WithOrganizationalUnit(const char* value) { SetOrganizationalUnit(value); return *this;} /** *

List of IPv4 addresses, NetBIOS names, or host names of your domain server. * If you need to specify the port number include it after the colon (“:”). For * example, mydc.mydomain.com:389.

*/ inline const Aws::Vector& GetDomainControllers() const{ return m_domainControllers; } /** *

List of IPv4 addresses, NetBIOS names, or host names of your domain server. * If you need to specify the port number include it after the colon (“:”). For * example, mydc.mydomain.com:389.

*/ inline bool DomainControllersHasBeenSet() const { return m_domainControllersHasBeenSet; } /** *

List of IPv4 addresses, NetBIOS names, or host names of your domain server. * If you need to specify the port number include it after the colon (“:”). For * example, mydc.mydomain.com:389.

*/ inline void SetDomainControllers(const Aws::Vector& value) { m_domainControllersHasBeenSet = true; m_domainControllers = value; } /** *

List of IPv4 addresses, NetBIOS names, or host names of your domain server. * If you need to specify the port number include it after the colon (“:”). For * example, mydc.mydomain.com:389.

*/ inline void SetDomainControllers(Aws::Vector&& value) { m_domainControllersHasBeenSet = true; m_domainControllers = std::move(value); } /** *

List of IPv4 addresses, NetBIOS names, or host names of your domain server. * If you need to specify the port number include it after the colon (“:”). For * example, mydc.mydomain.com:389.

*/ inline JoinDomainRequest& WithDomainControllers(const Aws::Vector& value) { SetDomainControllers(value); return *this;} /** *

List of IPv4 addresses, NetBIOS names, or host names of your domain server. * If you need to specify the port number include it after the colon (“:”). For * example, mydc.mydomain.com:389.

*/ inline JoinDomainRequest& WithDomainControllers(Aws::Vector&& value) { SetDomainControllers(std::move(value)); return *this;} /** *

List of IPv4 addresses, NetBIOS names, or host names of your domain server. * If you need to specify the port number include it after the colon (“:”). For * example, mydc.mydomain.com:389.

*/ inline JoinDomainRequest& AddDomainControllers(const Aws::String& value) { m_domainControllersHasBeenSet = true; m_domainControllers.push_back(value); return *this; } /** *

List of IPv4 addresses, NetBIOS names, or host names of your domain server. * If you need to specify the port number include it after the colon (“:”). For * example, mydc.mydomain.com:389.

*/ inline JoinDomainRequest& AddDomainControllers(Aws::String&& value) { m_domainControllersHasBeenSet = true; m_domainControllers.push_back(std::move(value)); return *this; } /** *

List of IPv4 addresses, NetBIOS names, or host names of your domain server. * If you need to specify the port number include it after the colon (“:”). For * example, mydc.mydomain.com:389.

*/ inline JoinDomainRequest& AddDomainControllers(const char* value) { m_domainControllersHasBeenSet = true; m_domainControllers.push_back(value); return *this; } /** *

Specifies the time in seconds, in which the JoinDomain operation * must complete. The default is 20 seconds.

*/ inline int GetTimeoutInSeconds() const{ return m_timeoutInSeconds; } /** *

Specifies the time in seconds, in which the JoinDomain operation * must complete. The default is 20 seconds.

*/ inline bool TimeoutInSecondsHasBeenSet() const { return m_timeoutInSecondsHasBeenSet; } /** *

Specifies the time in seconds, in which the JoinDomain operation * must complete. The default is 20 seconds.

*/ inline void SetTimeoutInSeconds(int value) { m_timeoutInSecondsHasBeenSet = true; m_timeoutInSeconds = value; } /** *

Specifies the time in seconds, in which the JoinDomain operation * must complete. The default is 20 seconds.

*/ inline JoinDomainRequest& WithTimeoutInSeconds(int value) { SetTimeoutInSeconds(value); return *this;} /** *

Sets the user name of user who has permission to add the gateway to the * Active Directory domain. The domain user account should be enabled to join * computers to the domain. For example, you can use the domain administrator * account or an account with delegated permissions to join computers to the * domain.

*/ inline const Aws::String& GetUserName() const{ return m_userName; } /** *

Sets the user name of user who has permission to add the gateway to the * Active Directory domain. The domain user account should be enabled to join * computers to the domain. For example, you can use the domain administrator * account or an account with delegated permissions to join computers to the * domain.

*/ inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; } /** *

Sets the user name of user who has permission to add the gateway to the * Active Directory domain. The domain user account should be enabled to join * computers to the domain. For example, you can use the domain administrator * account or an account with delegated permissions to join computers to the * domain.

*/ inline void SetUserName(const Aws::String& value) { m_userNameHasBeenSet = true; m_userName = value; } /** *

Sets the user name of user who has permission to add the gateway to the * Active Directory domain. The domain user account should be enabled to join * computers to the domain. For example, you can use the domain administrator * account or an account with delegated permissions to join computers to the * domain.

*/ inline void SetUserName(Aws::String&& value) { m_userNameHasBeenSet = true; m_userName = std::move(value); } /** *

Sets the user name of user who has permission to add the gateway to the * Active Directory domain. The domain user account should be enabled to join * computers to the domain. For example, you can use the domain administrator * account or an account with delegated permissions to join computers to the * domain.

*/ inline void SetUserName(const char* value) { m_userNameHasBeenSet = true; m_userName.assign(value); } /** *

Sets the user name of user who has permission to add the gateway to the * Active Directory domain. The domain user account should be enabled to join * computers to the domain. For example, you can use the domain administrator * account or an account with delegated permissions to join computers to the * domain.

*/ inline JoinDomainRequest& WithUserName(const Aws::String& value) { SetUserName(value); return *this;} /** *

Sets the user name of user who has permission to add the gateway to the * Active Directory domain. The domain user account should be enabled to join * computers to the domain. For example, you can use the domain administrator * account or an account with delegated permissions to join computers to the * domain.

*/ inline JoinDomainRequest& WithUserName(Aws::String&& value) { SetUserName(std::move(value)); return *this;} /** *

Sets the user name of user who has permission to add the gateway to the * Active Directory domain. The domain user account should be enabled to join * computers to the domain. For example, you can use the domain administrator * account or an account with delegated permissions to join computers to the * domain.

*/ inline JoinDomainRequest& WithUserName(const char* value) { SetUserName(value); return *this;} /** *

Sets the password of the user who has permission to add the gateway to the * Active Directory domain.

*/ inline const Aws::String& GetPassword() const{ return m_password; } /** *

Sets the password of the user who has permission to add the gateway to the * Active Directory domain.

*/ inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; } /** *

Sets the password of the user who has permission to add the gateway to the * Active Directory domain.

*/ inline void SetPassword(const Aws::String& value) { m_passwordHasBeenSet = true; m_password = value; } /** *

Sets the password of the user who has permission to add the gateway to the * Active Directory domain.

*/ inline void SetPassword(Aws::String&& value) { m_passwordHasBeenSet = true; m_password = std::move(value); } /** *

Sets the password of the user who has permission to add the gateway to the * Active Directory domain.

*/ inline void SetPassword(const char* value) { m_passwordHasBeenSet = true; m_password.assign(value); } /** *

Sets the password of the user who has permission to add the gateway to the * Active Directory domain.

*/ inline JoinDomainRequest& WithPassword(const Aws::String& value) { SetPassword(value); return *this;} /** *

Sets the password of the user who has permission to add the gateway to the * Active Directory domain.

*/ inline JoinDomainRequest& WithPassword(Aws::String&& value) { SetPassword(std::move(value)); return *this;} /** *

Sets the password of the user who has permission to add the gateway to the * Active Directory domain.

*/ inline JoinDomainRequest& WithPassword(const char* value) { SetPassword(value); return *this;} private: Aws::String m_gatewayARN; bool m_gatewayARNHasBeenSet = false; Aws::String m_domainName; bool m_domainNameHasBeenSet = false; Aws::String m_organizationalUnit; bool m_organizationalUnitHasBeenSet = false; Aws::Vector m_domainControllers; bool m_domainControllersHasBeenSet = false; int m_timeoutInSeconds; bool m_timeoutInSecondsHasBeenSet = false; Aws::String m_userName; bool m_userNameHasBeenSet = false; Aws::String m_password; bool m_passwordHasBeenSet = false; }; } // namespace Model } // namespace StorageGateway } // namespace Aws