com.aliyun.sdk.service.dts20200101.models.DescribeEndpointSwitchStatusResponseBody Maven / Gradle / Ivy
Show all versions of alibabacloud-dts20200101 Show documentation
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.dts20200101.models;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
* {@link DescribeEndpointSwitchStatusResponseBody} extends {@link TeaModel}
*
* DescribeEndpointSwitchStatusResponseBody
*/
public class DescribeEndpointSwitchStatusResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ErrCode")
private String errCode;
@com.aliyun.core.annotation.NameInMap("ErrMessage")
private String errMessage;
@com.aliyun.core.annotation.NameInMap("ErrorMessage")
private String errorMessage;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
@com.aliyun.core.annotation.NameInMap("Success")
private String success;
private DescribeEndpointSwitchStatusResponseBody(Builder builder) {
this.errCode = builder.errCode;
this.errMessage = builder.errMessage;
this.errorMessage = builder.errorMessage;
this.requestId = builder.requestId;
this.status = builder.status;
this.success = builder.success;
}
public static Builder builder() {
return new Builder();
}
public static DescribeEndpointSwitchStatusResponseBody create() {
return builder().build();
}
/**
* @return errCode
*/
public String getErrCode() {
return this.errCode;
}
/**
* @return errMessage
*/
public String getErrMessage() {
return this.errMessage;
}
/**
* @return errorMessage
*/
public String getErrorMessage() {
return this.errorMessage;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
/**
* @return success
*/
public String getSuccess() {
return this.success;
}
public static final class Builder {
private String errCode;
private String errMessage;
private String errorMessage;
private String requestId;
private String status;
private String success;
/**
* The error code returned if the call failed.
*/
public Builder errCode(String errCode) {
this.errCode = errCode;
return this;
}
/**
* The error message returned if the call failed.
*/
public Builder errMessage(String errMessage) {
this.errMessage = errMessage;
return this;
}
/**
* This parameter is no longer available.
*/
public Builder errorMessage(String errorMessage) {
this.errorMessage = errorMessage;
return this;
}
/**
* The ID of the request.
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* The status of the task. Valid values:
*
*
* * **NotStarted**: The task is not started.
* * **Initializing**: The task is being initialized.
* * **Switching**: The task is running.
* * **Failed**: The task failed.
* * **Finished**: The task is completed.
*/
public Builder status(String status) {
this.status = status;
return this;
}
/**
* Indicates whether the call was successful.
*/
public Builder success(String success) {
this.success = success;
return this;
}
public DescribeEndpointSwitchStatusResponseBody build() {
return new DescribeEndpointSwitchStatusResponseBody(this);
}
}
}