/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.transfer.model; import java.io.Serializable; import javax.annotation.Generated; /** * * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class TestConnectionResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable { /** *

* Returns the identifier of the connector object that you are testing. *

*/ private String connectorId; /** *

* Returns OK for successful test, or ERROR if the test fails. *

*/ private String status; /** *

* Returns Connection succeeded if the test is successful. Or, returns a descriptive error message if * the test fails. The following list provides the details for some error messages and troubleshooting steps for * each. *

* */ private String statusMessage; /** *

* Returns the identifier of the connector object that you are testing. *

* * @param connectorId * Returns the identifier of the connector object that you are testing. */ public void setConnectorId(String connectorId) { this.connectorId = connectorId; } /** *

* Returns the identifier of the connector object that you are testing. *

* * @return Returns the identifier of the connector object that you are testing. */ public String getConnectorId() { return this.connectorId; } /** *

* Returns the identifier of the connector object that you are testing. *

* * @param connectorId * Returns the identifier of the connector object that you are testing. * @return Returns a reference to this object so that method calls can be chained together. */ public TestConnectionResult withConnectorId(String connectorId) { setConnectorId(connectorId); return this; } /** *

* Returns OK for successful test, or ERROR if the test fails. *

* * @param status * Returns OK for successful test, or ERROR if the test fails. */ public void setStatus(String status) { this.status = status; } /** *

* Returns OK for successful test, or ERROR if the test fails. *

* * @return Returns OK for successful test, or ERROR if the test fails. */ public String getStatus() { return this.status; } /** *

* Returns OK for successful test, or ERROR if the test fails. *

* * @param status * Returns OK for successful test, or ERROR if the test fails. * @return Returns a reference to this object so that method calls can be chained together. */ public TestConnectionResult withStatus(String status) { setStatus(status); return this; } /** *

* Returns Connection succeeded if the test is successful. Or, returns a descriptive error message if * the test fails. The following list provides the details for some error messages and troubleshooting steps for * each. *

* * * @param statusMessage * Returns Connection succeeded if the test is successful. Or, returns a descriptive error * message if the test fails. The following list provides the details for some error messages and * troubleshooting steps for each.

*