/** * 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 Transfer { namespace Model { /** */ class TestIdentityProviderRequest : public TransferRequest { public: AWS_TRANSFER_API TestIdentityProviderRequest(); // 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 "TestIdentityProvider"; } AWS_TRANSFER_API Aws::String SerializePayload() const override; AWS_TRANSFER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

A system-assigned identifier for a specific server. That server's user * authentication method is tested with a user name and password.

*/ inline const Aws::String& GetServerId() const{ return m_serverId; } /** *

A system-assigned identifier for a specific server. That server's user * authentication method is tested with a user name and password.

*/ inline bool ServerIdHasBeenSet() const { return m_serverIdHasBeenSet; } /** *

A system-assigned identifier for a specific server. That server's user * authentication method is tested with a user name and password.

*/ inline void SetServerId(const Aws::String& value) { m_serverIdHasBeenSet = true; m_serverId = value; } /** *

A system-assigned identifier for a specific server. That server's user * authentication method is tested with a user name and password.

*/ inline void SetServerId(Aws::String&& value) { m_serverIdHasBeenSet = true; m_serverId = std::move(value); } /** *

A system-assigned identifier for a specific server. That server's user * authentication method is tested with a user name and password.

*/ inline void SetServerId(const char* value) { m_serverIdHasBeenSet = true; m_serverId.assign(value); } /** *

A system-assigned identifier for a specific server. That server's user * authentication method is tested with a user name and password.

*/ inline TestIdentityProviderRequest& WithServerId(const Aws::String& value) { SetServerId(value); return *this;} /** *

A system-assigned identifier for a specific server. That server's user * authentication method is tested with a user name and password.

*/ inline TestIdentityProviderRequest& WithServerId(Aws::String&& value) { SetServerId(std::move(value)); return *this;} /** *

A system-assigned identifier for a specific server. That server's user * authentication method is tested with a user name and password.

*/ inline TestIdentityProviderRequest& WithServerId(const char* value) { SetServerId(value); return *this;} /** *

The type of file transfer protocol to be tested.

The available * protocols are:

  • Secure Shell (SSH) File Transfer Protocol * (SFTP)

  • File Transfer Protocol Secure (FTPS)

  • *

    File Transfer Protocol (FTP)

  • Applicability Statement 2 * (AS2)

*/ inline const Protocol& GetServerProtocol() const{ return m_serverProtocol; } /** *

The type of file transfer protocol to be tested.

The available * protocols are:

  • Secure Shell (SSH) File Transfer Protocol * (SFTP)

  • File Transfer Protocol Secure (FTPS)

  • *

    File Transfer Protocol (FTP)

  • Applicability Statement 2 * (AS2)

*/ inline bool ServerProtocolHasBeenSet() const { return m_serverProtocolHasBeenSet; } /** *

The type of file transfer protocol to be tested.

The available * protocols are:

  • Secure Shell (SSH) File Transfer Protocol * (SFTP)

  • File Transfer Protocol Secure (FTPS)

  • *

    File Transfer Protocol (FTP)

  • Applicability Statement 2 * (AS2)

*/ inline void SetServerProtocol(const Protocol& value) { m_serverProtocolHasBeenSet = true; m_serverProtocol = value; } /** *

The type of file transfer protocol to be tested.

The available * protocols are:

  • Secure Shell (SSH) File Transfer Protocol * (SFTP)

  • File Transfer Protocol Secure (FTPS)

  • *

    File Transfer Protocol (FTP)

  • Applicability Statement 2 * (AS2)

*/ inline void SetServerProtocol(Protocol&& value) { m_serverProtocolHasBeenSet = true; m_serverProtocol = std::move(value); } /** *

The type of file transfer protocol to be tested.

The available * protocols are:

  • Secure Shell (SSH) File Transfer Protocol * (SFTP)

  • File Transfer Protocol Secure (FTPS)

  • *

    File Transfer Protocol (FTP)

  • Applicability Statement 2 * (AS2)

*/ inline TestIdentityProviderRequest& WithServerProtocol(const Protocol& value) { SetServerProtocol(value); return *this;} /** *

The type of file transfer protocol to be tested.

The available * protocols are:

  • Secure Shell (SSH) File Transfer Protocol * (SFTP)

  • File Transfer Protocol Secure (FTPS)

  • *

    File Transfer Protocol (FTP)

  • Applicability Statement 2 * (AS2)

*/ inline TestIdentityProviderRequest& WithServerProtocol(Protocol&& value) { SetServerProtocol(std::move(value)); return *this;} /** *

The source IP address of the account to be tested.

*/ inline const Aws::String& GetSourceIp() const{ return m_sourceIp; } /** *

The source IP address of the account to be tested.

*/ inline bool SourceIpHasBeenSet() const { return m_sourceIpHasBeenSet; } /** *

The source IP address of the account to be tested.

*/ inline void SetSourceIp(const Aws::String& value) { m_sourceIpHasBeenSet = true; m_sourceIp = value; } /** *

The source IP address of the account to be tested.

*/ inline void SetSourceIp(Aws::String&& value) { m_sourceIpHasBeenSet = true; m_sourceIp = std::move(value); } /** *

The source IP address of the account to be tested.

*/ inline void SetSourceIp(const char* value) { m_sourceIpHasBeenSet = true; m_sourceIp.assign(value); } /** *

The source IP address of the account to be tested.

*/ inline TestIdentityProviderRequest& WithSourceIp(const Aws::String& value) { SetSourceIp(value); return *this;} /** *

The source IP address of the account to be tested.

*/ inline TestIdentityProviderRequest& WithSourceIp(Aws::String&& value) { SetSourceIp(std::move(value)); return *this;} /** *

The source IP address of the account to be tested.

*/ inline TestIdentityProviderRequest& WithSourceIp(const char* value) { SetSourceIp(value); return *this;} /** *

The name of the account to be tested.

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

The name of the account to be tested.

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

The name of the account to be tested.

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

The name of the account to be tested.

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

The name of the account to be tested.

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

The name of the account to be tested.

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

The name of the account to be tested.

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

The name of the account to be tested.

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

The password of the account to be tested.

*/ inline const Aws::String& GetUserPassword() const{ return m_userPassword; } /** *

The password of the account to be tested.

*/ inline bool UserPasswordHasBeenSet() const { return m_userPasswordHasBeenSet; } /** *

The password of the account to be tested.

*/ inline void SetUserPassword(const Aws::String& value) { m_userPasswordHasBeenSet = true; m_userPassword = value; } /** *

The password of the account to be tested.

*/ inline void SetUserPassword(Aws::String&& value) { m_userPasswordHasBeenSet = true; m_userPassword = std::move(value); } /** *

The password of the account to be tested.

*/ inline void SetUserPassword(const char* value) { m_userPasswordHasBeenSet = true; m_userPassword.assign(value); } /** *

The password of the account to be tested.

*/ inline TestIdentityProviderRequest& WithUserPassword(const Aws::String& value) { SetUserPassword(value); return *this;} /** *

The password of the account to be tested.

*/ inline TestIdentityProviderRequest& WithUserPassword(Aws::String&& value) { SetUserPassword(std::move(value)); return *this;} /** *

The password of the account to be tested.

*/ inline TestIdentityProviderRequest& WithUserPassword(const char* value) { SetUserPassword(value); return *this;} private: Aws::String m_serverId; bool m_serverIdHasBeenSet = false; Protocol m_serverProtocol; bool m_serverProtocolHasBeenSet = false; Aws::String m_sourceIp; bool m_sourceIpHasBeenSet = false; Aws::String m_userName; bool m_userNameHasBeenSet = false; Aws::String m_userPassword; bool m_userPasswordHasBeenSet = false; }; } // namespace Model } // namespace Transfer } // namespace Aws