com.aliyun.sdk.service.polardb20170801.models.DescribeDBLinksResponseBody Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alibabacloud-polardb20170801 Show documentation
Show all versions of alibabacloud-polardb20170801 Show documentation
Alibaba Cloud polardb (20170801) Async SDK for Java
The newest version!
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.polardb20170801.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeDBLinksResponseBody} extends {@link TeaModel}
*
* DescribeDBLinksResponseBody
*/
public class DescribeDBLinksResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DBInstanceName")
private String DBInstanceName;
@com.aliyun.core.annotation.NameInMap("DBLinkInfos")
private java.util.List DBLinkInfos;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DescribeDBLinksResponseBody(Builder builder) {
this.DBInstanceName = builder.DBInstanceName;
this.DBLinkInfos = builder.DBLinkInfos;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeDBLinksResponseBody create() {
return builder().build();
}
/**
* @return DBInstanceName
*/
public String getDBInstanceName() {
return this.DBInstanceName;
}
/**
* @return DBLinkInfos
*/
public java.util.List getDBLinkInfos() {
return this.DBLinkInfos;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private String DBInstanceName;
private java.util.List DBLinkInfos;
private String requestId;
/**
* The ID of the cluster.
*
* example:
* pc-a*************
*/
public Builder DBInstanceName(String DBInstanceName) {
this.DBInstanceName = DBInstanceName;
return this;
}
/**
* Details about the database links.
*/
public Builder DBLinkInfos(java.util.List DBLinkInfos) {
this.DBLinkInfos = DBLinkInfos;
return this;
}
/**
* The ID of the request.
*
* example:
* 45D24263-7E3A-4140-9472-************
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DescribeDBLinksResponseBody build() {
return new DescribeDBLinksResponseBody(this);
}
}
/**
*
* {@link DescribeDBLinksResponseBody} extends {@link TeaModel}
*
* DescribeDBLinksResponseBody
*/
public static class DBLinkInfos extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DBInstanceName")
private String DBInstanceName;
@com.aliyun.core.annotation.NameInMap("DBLinkName")
private String DBLinkName;
@com.aliyun.core.annotation.NameInMap("SourceDBName")
private String sourceDBName;
@com.aliyun.core.annotation.NameInMap("TargetAccount")
private String targetAccount;
@com.aliyun.core.annotation.NameInMap("TargetDBInstanceName")
private String targetDBInstanceName;
@com.aliyun.core.annotation.NameInMap("TargetDBName")
private String targetDBName;
private DBLinkInfos(Builder builder) {
this.DBInstanceName = builder.DBInstanceName;
this.DBLinkName = builder.DBLinkName;
this.sourceDBName = builder.sourceDBName;
this.targetAccount = builder.targetAccount;
this.targetDBInstanceName = builder.targetDBInstanceName;
this.targetDBName = builder.targetDBName;
}
public static Builder builder() {
return new Builder();
}
public static DBLinkInfos create() {
return builder().build();
}
/**
* @return DBInstanceName
*/
public String getDBInstanceName() {
return this.DBInstanceName;
}
/**
* @return DBLinkName
*/
public String getDBLinkName() {
return this.DBLinkName;
}
/**
* @return sourceDBName
*/
public String getSourceDBName() {
return this.sourceDBName;
}
/**
* @return targetAccount
*/
public String getTargetAccount() {
return this.targetAccount;
}
/**
* @return targetDBInstanceName
*/
public String getTargetDBInstanceName() {
return this.targetDBInstanceName;
}
/**
* @return targetDBName
*/
public String getTargetDBName() {
return this.targetDBName;
}
public static final class Builder {
private String DBInstanceName;
private String DBLinkName;
private String sourceDBName;
private String targetAccount;
private String targetDBInstanceName;
private String targetDBName;
/**
* The ID of the source cluster that the database link connects.
*
* example:
* pc-a*************
*/
public Builder DBInstanceName(String DBInstanceName) {
this.DBInstanceName = DBInstanceName;
return this;
}
/**
* The name of the database link.
*
* example:
* dblink_test
*/
public Builder DBLinkName(String DBLinkName) {
this.DBLinkName = DBLinkName;
return this;
}
/**
* The name of the source database of the database link.
*
* example:
* testdb1
*/
public Builder sourceDBName(String sourceDBName) {
this.sourceDBName = sourceDBName;
return this;
}
/**
* The account of the destination database of the database link.
*
* example:
* testacc
*/
public Builder targetAccount(String targetAccount) {
this.targetAccount = targetAccount;
return this;
}
/**
* The ID of the destination cluster that the database link connects.
*
* If the destination cluster is not a PolarDB for Oracle cluster, the returned value is empty.
*
*
* example:
* pc-b************
*/
public Builder targetDBInstanceName(String targetDBInstanceName) {
this.targetDBInstanceName = targetDBInstanceName;
return this;
}
/**
* The name of the destination database of the database link.
*
* example:
* testdb2
*/
public Builder targetDBName(String targetDBName) {
this.targetDBName = targetDBName;
return this;
}
public DBLinkInfos build() {
return new DBLinkInfos(this);
}
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy