Interface TestConnectionResponse.Builder
- All Superinterfaces:
 AwsResponse.Builder,Buildable,CopyableBuilder<TestConnectionResponse.Builder,,TestConnectionResponse> SdkBuilder<TestConnectionResponse.Builder,,TestConnectionResponse> SdkPojo,SdkResponse.Builder,TransferResponse.Builder
- Enclosing class:
 TestConnectionResponse
- 
Method Summary
Modifier and TypeMethodDescriptionconnectorId(String connectorId) Returns the identifier of the connector object that you are testing.default TestConnectionResponse.BuildersftpConnectionDetails(Consumer<SftpConnectorConnectionDetails.Builder> sftpConnectionDetails) Structure that contains the SFTP connector host key.sftpConnectionDetails(SftpConnectorConnectionDetails sftpConnectionDetails) Structure that contains the SFTP connector host key.ReturnsOKfor successful test, orERRORif the test fails.statusMessage(String statusMessage) ReturnsConnection succeededif the test is successful.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponseMethods inherited from interface software.amazon.awssdk.services.transfer.model.TransferResponse.Builder
build, responseMetadata, responseMetadata 
- 
Method Details
- 
connectorId
Returns the identifier of the connector object that you are testing.
- Parameters:
 connectorId- Returns the identifier of the connector object that you are testing.- Returns:
 - Returns a reference to this object so that method calls can be chained together.
 
 - 
status
Returns
OKfor successful test, orERRORif the test fails.- Parameters:
 status- ReturnsOKfor successful test, orERRORif the test fails.- Returns:
 - Returns a reference to this object so that method calls can be chained together.
 
 - 
statusMessage
Returns
Connection succeededif the test is successful. Or, returns a descriptive error message if the test fails. The following list provides troubleshooting details, depending on the error message that you receive.- 
 
Verify that your secret name aligns with the one in Transfer Role permissions.
 - 
 
Verify the server URL in the connector configuration , and verify that the login credentials work successfully outside of the connector.
 - 
 
Verify that the secret exists and is formatted correctly.
 - 
 
Verify that the trusted host key in the connector configuration matches the
ssh-keyscanoutput. 
- Parameters:
 statusMessage- ReturnsConnection succeededif the test is successful. Or, returns a descriptive error message if the test fails. The following list provides troubleshooting details, depending on the error message that you receive.- 
        
Verify that your secret name aligns with the one in Transfer Role permissions.
 - 
        
Verify the server URL in the connector configuration , and verify that the login credentials work successfully outside of the connector.
 - 
        
Verify that the secret exists and is formatted correctly.
 - 
        
Verify that the trusted host key in the connector configuration matches the
ssh-keyscanoutput. 
- 
        
 - Returns:
 - Returns a reference to this object so that method calls can be chained together.
 
 - 
 
 - 
sftpConnectionDetails
TestConnectionResponse.Builder sftpConnectionDetails(SftpConnectorConnectionDetails sftpConnectionDetails) Structure that contains the SFTP connector host key.
- Parameters:
 sftpConnectionDetails- Structure that contains the SFTP connector host key.- Returns:
 - Returns a reference to this object so that method calls can be chained together.
 
 - 
sftpConnectionDetails
default TestConnectionResponse.Builder sftpConnectionDetails(Consumer<SftpConnectorConnectionDetails.Builder> sftpConnectionDetails) Structure that contains the SFTP connector host key.
This is a convenience method that creates an instance of theSftpConnectorConnectionDetails.Builderavoiding the need to create one manually viaSftpConnectorConnectionDetails.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosftpConnectionDetails(SftpConnectorConnectionDetails).- Parameters:
 sftpConnectionDetails- a consumer that will call methods onSftpConnectorConnectionDetails.Builder- Returns:
 - Returns a reference to this object so that method calls can be chained together.
 - See Also:
 
 
 -