com.aliyun.sdk.service.dts20200101.models.DescribeSubscriptionInstanceStatusResponseBody 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 DescribeSubscriptionInstanceStatusResponseBody} extends {@link TeaModel}
*
* DescribeSubscriptionInstanceStatusResponseBody
*/
public class DescribeSubscriptionInstanceStatusResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("BeginTimestamp")
private String beginTimestamp;
@com.aliyun.core.annotation.NameInMap("ConsumptionCheckpoint")
private String consumptionCheckpoint;
@com.aliyun.core.annotation.NameInMap("ConsumptionClient")
private String consumptionClient;
@com.aliyun.core.annotation.NameInMap("EndTimestamp")
private String endTimestamp;
@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("PayType")
private String payType;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("SourceEndpoint")
private SourceEndpoint sourceEndpoint;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
@com.aliyun.core.annotation.NameInMap("SubscribeTopic")
private String subscribeTopic;
@com.aliyun.core.annotation.NameInMap("SubscriptionDataType")
private SubscriptionDataType subscriptionDataType;
@com.aliyun.core.annotation.NameInMap("SubscriptionHost")
private SubscriptionHost subscriptionHost;
@com.aliyun.core.annotation.NameInMap("SubscriptionInstanceID")
private String subscriptionInstanceID;
@com.aliyun.core.annotation.NameInMap("SubscriptionInstanceName")
private String subscriptionInstanceName;
@com.aliyun.core.annotation.NameInMap("SubscriptionObject")
private SubscriptionObject subscriptionObject;
@com.aliyun.core.annotation.NameInMap("Success")
private String success;
@com.aliyun.core.annotation.NameInMap("TaskId")
private String taskId;
private DescribeSubscriptionInstanceStatusResponseBody(Builder builder) {
this.beginTimestamp = builder.beginTimestamp;
this.consumptionCheckpoint = builder.consumptionCheckpoint;
this.consumptionClient = builder.consumptionClient;
this.endTimestamp = builder.endTimestamp;
this.errCode = builder.errCode;
this.errMessage = builder.errMessage;
this.errorMessage = builder.errorMessage;
this.payType = builder.payType;
this.requestId = builder.requestId;
this.sourceEndpoint = builder.sourceEndpoint;
this.status = builder.status;
this.subscribeTopic = builder.subscribeTopic;
this.subscriptionDataType = builder.subscriptionDataType;
this.subscriptionHost = builder.subscriptionHost;
this.subscriptionInstanceID = builder.subscriptionInstanceID;
this.subscriptionInstanceName = builder.subscriptionInstanceName;
this.subscriptionObject = builder.subscriptionObject;
this.success = builder.success;
this.taskId = builder.taskId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeSubscriptionInstanceStatusResponseBody create() {
return builder().build();
}
/**
* @return beginTimestamp
*/
public String getBeginTimestamp() {
return this.beginTimestamp;
}
/**
* @return consumptionCheckpoint
*/
public String getConsumptionCheckpoint() {
return this.consumptionCheckpoint;
}
/**
* @return consumptionClient
*/
public String getConsumptionClient() {
return this.consumptionClient;
}
/**
* @return endTimestamp
*/
public String getEndTimestamp() {
return this.endTimestamp;
}
/**
* @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 payType
*/
public String getPayType() {
return this.payType;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return sourceEndpoint
*/
public SourceEndpoint getSourceEndpoint() {
return this.sourceEndpoint;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
/**
* @return subscribeTopic
*/
public String getSubscribeTopic() {
return this.subscribeTopic;
}
/**
* @return subscriptionDataType
*/
public SubscriptionDataType getSubscriptionDataType() {
return this.subscriptionDataType;
}
/**
* @return subscriptionHost
*/
public SubscriptionHost getSubscriptionHost() {
return this.subscriptionHost;
}
/**
* @return subscriptionInstanceID
*/
public String getSubscriptionInstanceID() {
return this.subscriptionInstanceID;
}
/**
* @return subscriptionInstanceName
*/
public String getSubscriptionInstanceName() {
return this.subscriptionInstanceName;
}
/**
* @return subscriptionObject
*/
public SubscriptionObject getSubscriptionObject() {
return this.subscriptionObject;
}
/**
* @return success
*/
public String getSuccess() {
return this.success;
}
/**
* @return taskId
*/
public String getTaskId() {
return this.taskId;
}
public static final class Builder {
private String beginTimestamp;
private String consumptionCheckpoint;
private String consumptionClient;
private String endTimestamp;
private String errCode;
private String errMessage;
private String errorMessage;
private String payType;
private String requestId;
private SourceEndpoint sourceEndpoint;
private String status;
private String subscribeTopic;
private SubscriptionDataType subscriptionDataType;
private SubscriptionHost subscriptionHost;
private String subscriptionInstanceID;
private String subscriptionInstanceName;
private SubscriptionObject subscriptionObject;
private String success;
private String taskId;
/**
* The start of the time range for change tracking. The time is displayed in the *yyyy-MM-dd*T*HH:mm:ss*Z format in UTC.
*/
public Builder beginTimestamp(String beginTimestamp) {
this.beginTimestamp = beginTimestamp;
return this;
}
/**
* The consumption checkpoint of the change tracking instance. The time is displayed in the *yyyy-MM-dd*T*HH:mm:ss*Z format in UTC.
*/
public Builder consumptionCheckpoint(String consumptionCheckpoint) {
this.consumptionCheckpoint = consumptionCheckpoint;
return this;
}
/**
* The downstream client information, in the following format: \:\.
*/
public Builder consumptionClient(String consumptionClient) {
this.consumptionClient = consumptionClient;
return this;
}
/**
* The end of the time range for change tracking. The time is displayed in the *yyyy-MM-dd*T*HH:mm:ss*Z format in UTC.
*/
public Builder endTimestamp(String endTimestamp) {
this.endTimestamp = endTimestamp;
return this;
}
/**
* 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;
}
/**
* The error message returned if change tracking failed.
*/
public Builder errorMessage(String errorMessage) {
this.errorMessage = errorMessage;
return this;
}
/**
* The billing method of the change tracking instance. Valid values:
*
*
* * **PrePaid**: subscription
* * **PostPaid**: pay-as-you-go
*/
public Builder payType(String payType) {
this.payType = payType;
return this;
}
/**
* The ID of the request.
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* The connection settings of the source instance.
*/
public Builder sourceEndpoint(SourceEndpoint sourceEndpoint) {
this.sourceEndpoint = sourceEndpoint;
return this;
}
/**
* The status of the change tracking task. Valid values:
*
*
* * **NotStarted**: The task is not started.
* * **Prechecking**: The task is being prechecked.
* * **PrecheckFailed**: The task failed to pass the precheck.
* * **Starting**: The task is being started.
* * **Normal**: The task is running as expected.
* * **Abnormal**: The task is not running as expected.
*/
public Builder status(String status) {
this.status = status;
return this;
}
/**
* The topic of the change tracking instance.
*
*
* > This parameter is returned only if your change tracking instance is of the new version and you have called the [CreateConsumerGroup](~~122863~~) operation to create a consumer group.
*/
public Builder subscribeTopic(String subscribeTopic) {
this.subscribeTopic = subscribeTopic;
return this;
}
/**
* The types of operations that are tracked by the task.
*/
public Builder subscriptionDataType(SubscriptionDataType subscriptionDataType) {
this.subscriptionDataType = subscriptionDataType;
return this;
}
/**
* The endpoint of the change tracking instance.
*/
public Builder subscriptionHost(SubscriptionHost subscriptionHost) {
this.subscriptionHost = subscriptionHost;
return this;
}
/**
* The ID of the change tracking instance.
*/
public Builder subscriptionInstanceID(String subscriptionInstanceID) {
this.subscriptionInstanceID = subscriptionInstanceID;
return this;
}
/**
* The name of the change tracking instance.
*/
public Builder subscriptionInstanceName(String subscriptionInstanceName) {
this.subscriptionInstanceName = subscriptionInstanceName;
return this;
}
/**
* The objects for change tracking.
*/
public Builder subscriptionObject(SubscriptionObject subscriptionObject) {
this.subscriptionObject = subscriptionObject;
return this;
}
/**
* Indicates whether the call was successful.
*/
public Builder success(String success) {
this.success = success;
return this;
}
/**
* The ID of the change tracking task.
*/
public Builder taskId(String taskId) {
this.taskId = taskId;
return this;
}
public DescribeSubscriptionInstanceStatusResponseBody build() {
return new DescribeSubscriptionInstanceStatusResponseBody(this);
}
}
public static class SourceEndpoint extends TeaModel {
@com.aliyun.core.annotation.NameInMap("InstanceID")
private String instanceID;
@com.aliyun.core.annotation.NameInMap("InstanceType")
private String instanceType;
private SourceEndpoint(Builder builder) {
this.instanceID = builder.instanceID;
this.instanceType = builder.instanceType;
}
public static Builder builder() {
return new Builder();
}
public static SourceEndpoint create() {
return builder().build();
}
/**
* @return instanceID
*/
public String getInstanceID() {
return this.instanceID;
}
/**
* @return instanceType
*/
public String getInstanceType() {
return this.instanceType;
}
public static final class Builder {
private String instanceID;
private String instanceType;
/**
* The ID of the instance that hosts the source database.
*/
public Builder instanceID(String instanceID) {
this.instanceID = instanceID;
return this;
}
/**
* The instance type of the source database.
*
*
* > This parameter is returned only for change tracking instances of the new version.
*/
public Builder instanceType(String instanceType) {
this.instanceType = instanceType;
return this;
}
public SourceEndpoint build() {
return new SourceEndpoint(this);
}
}
}
public static class SubscriptionDataType extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DDL")
private Boolean DDL;
@com.aliyun.core.annotation.NameInMap("DML")
private Boolean DML;
private SubscriptionDataType(Builder builder) {
this.DDL = builder.DDL;
this.DML = builder.DML;
}
public static Builder builder() {
return new Builder();
}
public static SubscriptionDataType create() {
return builder().build();
}
/**
* @return DDL
*/
public Boolean getDDL() {
return this.DDL;
}
/**
* @return DML
*/
public Boolean getDML() {
return this.DML;
}
public static final class Builder {
private Boolean DDL;
private Boolean DML;
/**
* Indicates whether data definition language (DDL) operations are tracked. Valid values:
*
*
* * **true**: yes
* * **false**: no
*/
public Builder DDL(Boolean DDL) {
this.DDL = DDL;
return this;
}
/**
* Indicates whether data manipulation language (DML) operations are tracked. Valid values:
*
*
* * **true**: yes
* * **false**: no
*/
public Builder DML(Boolean DML) {
this.DML = DML;
return this;
}
public SubscriptionDataType build() {
return new SubscriptionDataType(this);
}
}
}
public static class SubscriptionHost extends TeaModel {
@com.aliyun.core.annotation.NameInMap("PrivateHost")
private String privateHost;
@com.aliyun.core.annotation.NameInMap("PublicHost")
private String publicHost;
@com.aliyun.core.annotation.NameInMap("VPCHost")
private String VPCHost;
private SubscriptionHost(Builder builder) {
this.privateHost = builder.privateHost;
this.publicHost = builder.publicHost;
this.VPCHost = builder.VPCHost;
}
public static Builder builder() {
return new Builder();
}
public static SubscriptionHost create() {
return builder().build();
}
/**
* @return privateHost
*/
public String getPrivateHost() {
return this.privateHost;
}
/**
* @return publicHost
*/
public String getPublicHost() {
return this.publicHost;
}
/**
* @return VPCHost
*/
public String getVPCHost() {
return this.VPCHost;
}
public static final class Builder {
private String privateHost;
private String publicHost;
private String VPCHost;
/**
* The private endpoint of the change tracking instance. The format is `
:`.
*/
public Builder privateHost(String privateHost) {
this.privateHost = privateHost;
return this;
}
/**
* The public endpoint of the change tracking instance. The format is `:`.
*/
public Builder publicHost(String publicHost) {
this.publicHost = publicHost;
return this;
}
/**
* The virtual private cloud (VPC) endpoint of the change tracking instance. The format is `:`.
*/
public Builder VPCHost(String VPCHost) {
this.VPCHost = VPCHost;
return this;
}
public SubscriptionHost build() {
return new SubscriptionHost(this);
}
}
}
public static class TableList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Table")
private java.util.List < String > table;
private TableList(Builder builder) {
this.table = builder.table;
}
public static Builder builder() {
return new Builder();
}
public static TableList create() {
return builder().build();
}
/**
* @return table
*/
public java.util.List < String > getTable() {
return this.table;
}
public static final class Builder {
private java.util.List < String > table;
/**
* Table.
*/
public Builder table(java.util.List < String > table) {
this.table = table;
return this;
}
public TableList build() {
return new TableList(this);
}
}
}
public static class SynchronousObject extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DatabaseName")
private String databaseName;
@com.aliyun.core.annotation.NameInMap("TableList")
private TableList tableList;
@com.aliyun.core.annotation.NameInMap("WholeDatabase")
private String wholeDatabase;
private SynchronousObject(Builder builder) {
this.databaseName = builder.databaseName;
this.tableList = builder.tableList;
this.wholeDatabase = builder.wholeDatabase;
}
public static Builder builder() {
return new Builder();
}
public static SynchronousObject create() {
return builder().build();
}
/**
* @return databaseName
*/
public String getDatabaseName() {
return this.databaseName;
}
/**
* @return tableList
*/
public TableList getTableList() {
return this.tableList;
}
/**
* @return wholeDatabase
*/
public String getWholeDatabase() {
return this.wholeDatabase;
}
public static final class Builder {
private String databaseName;
private TableList tableList;
private String wholeDatabase;
/**
* The name of the database to which the object belongs.
*/
public Builder databaseName(String databaseName) {
this.databaseName = databaseName;
return this;
}
/**
* The table name.
*/
public Builder tableList(TableList tableList) {
this.tableList = tableList;
return this;
}
/**
* Indicates whether the data of an entire database is tracked. Valid values:
*
*
* * **true**: yes
* * **false**: no
*/
public Builder wholeDatabase(String wholeDatabase) {
this.wholeDatabase = wholeDatabase;
return this;
}
public SynchronousObject build() {
return new SynchronousObject(this);
}
}
}
public static class SubscriptionObject extends TeaModel {
@com.aliyun.core.annotation.NameInMap("SynchronousObject")
private java.util.List < SynchronousObject> synchronousObject;
private SubscriptionObject(Builder builder) {
this.synchronousObject = builder.synchronousObject;
}
public static Builder builder() {
return new Builder();
}
public static SubscriptionObject create() {
return builder().build();
}
/**
* @return synchronousObject
*/
public java.util.List < SynchronousObject> getSynchronousObject() {
return this.synchronousObject;
}
public static final class Builder {
private java.util.List < SynchronousObject> synchronousObject;
/**
* SynchronousObject.
*/
public Builder synchronousObject(java.util.List < SynchronousObject> synchronousObject) {
this.synchronousObject = synchronousObject;
return this;
}
public SubscriptionObject build() {
return new SubscriptionObject(this);
}
}
}
}