com.pulumi.alicloud.dms.outputs.GetEnterpriseLogicDatabasesDatabase Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alicloud Show documentation
Show all versions of alicloud Show documentation
A Pulumi package for creating and managing AliCloud resources.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.alicloud.dms.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Objects;
@CustomType
public final class GetEnterpriseLogicDatabasesDatabase {
/**
* @return Logical Library alias.
*
*/
private String alias;
/**
* @return Sub-Database ID.
*
*/
private List databaseIds;
/**
* @return Database type.
*
*/
private String dbType;
/**
* @return Environment type, return value is as follows:-product: production environment-dev: development environment-pre: Advance Environment-test: test environment-sit:SIT environment-uat:UAT environment-pet: Pressure measurement environment-stag:STAG environment
*
*/
private String envType;
/**
* @return Logic Database ID.
*
*/
private String id;
/**
* @return Whether it is a logical Library, the return value is true.
*
*/
private Boolean logic;
/**
* @return The ID of the logical Library.
*
*/
private String logicDatabaseId;
/**
* @return The user ID list of the logical library Owner.
*
*/
private List ownerIdLists;
/**
* @return The nickname list of the logical library Owner.
*
*/
private List ownerNameLists;
/**
* @return Logical Library name.
*
*/
private String schemaName;
/**
* @return Logical library search name.
*
*/
private String searchName;
private GetEnterpriseLogicDatabasesDatabase() {}
/**
* @return Logical Library alias.
*
*/
public String alias() {
return this.alias;
}
/**
* @return Sub-Database ID.
*
*/
public List databaseIds() {
return this.databaseIds;
}
/**
* @return Database type.
*
*/
public String dbType() {
return this.dbType;
}
/**
* @return Environment type, return value is as follows:-product: production environment-dev: development environment-pre: Advance Environment-test: test environment-sit:SIT environment-uat:UAT environment-pet: Pressure measurement environment-stag:STAG environment
*
*/
public String envType() {
return this.envType;
}
/**
* @return Logic Database ID.
*
*/
public String id() {
return this.id;
}
/**
* @return Whether it is a logical Library, the return value is true.
*
*/
public Boolean logic() {
return this.logic;
}
/**
* @return The ID of the logical Library.
*
*/
public String logicDatabaseId() {
return this.logicDatabaseId;
}
/**
* @return The user ID list of the logical library Owner.
*
*/
public List ownerIdLists() {
return this.ownerIdLists;
}
/**
* @return The nickname list of the logical library Owner.
*
*/
public List ownerNameLists() {
return this.ownerNameLists;
}
/**
* @return Logical Library name.
*
*/
public String schemaName() {
return this.schemaName;
}
/**
* @return Logical library search name.
*
*/
public String searchName() {
return this.searchName;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetEnterpriseLogicDatabasesDatabase defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String alias;
private List databaseIds;
private String dbType;
private String envType;
private String id;
private Boolean logic;
private String logicDatabaseId;
private List ownerIdLists;
private List ownerNameLists;
private String schemaName;
private String searchName;
public Builder() {}
public Builder(GetEnterpriseLogicDatabasesDatabase defaults) {
Objects.requireNonNull(defaults);
this.alias = defaults.alias;
this.databaseIds = defaults.databaseIds;
this.dbType = defaults.dbType;
this.envType = defaults.envType;
this.id = defaults.id;
this.logic = defaults.logic;
this.logicDatabaseId = defaults.logicDatabaseId;
this.ownerIdLists = defaults.ownerIdLists;
this.ownerNameLists = defaults.ownerNameLists;
this.schemaName = defaults.schemaName;
this.searchName = defaults.searchName;
}
@CustomType.Setter
public Builder alias(String alias) {
if (alias == null) {
throw new MissingRequiredPropertyException("GetEnterpriseLogicDatabasesDatabase", "alias");
}
this.alias = alias;
return this;
}
@CustomType.Setter
public Builder databaseIds(List databaseIds) {
if (databaseIds == null) {
throw new MissingRequiredPropertyException("GetEnterpriseLogicDatabasesDatabase", "databaseIds");
}
this.databaseIds = databaseIds;
return this;
}
public Builder databaseIds(String... databaseIds) {
return databaseIds(List.of(databaseIds));
}
@CustomType.Setter
public Builder dbType(String dbType) {
if (dbType == null) {
throw new MissingRequiredPropertyException("GetEnterpriseLogicDatabasesDatabase", "dbType");
}
this.dbType = dbType;
return this;
}
@CustomType.Setter
public Builder envType(String envType) {
if (envType == null) {
throw new MissingRequiredPropertyException("GetEnterpriseLogicDatabasesDatabase", "envType");
}
this.envType = envType;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetEnterpriseLogicDatabasesDatabase", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder logic(Boolean logic) {
if (logic == null) {
throw new MissingRequiredPropertyException("GetEnterpriseLogicDatabasesDatabase", "logic");
}
this.logic = logic;
return this;
}
@CustomType.Setter
public Builder logicDatabaseId(String logicDatabaseId) {
if (logicDatabaseId == null) {
throw new MissingRequiredPropertyException("GetEnterpriseLogicDatabasesDatabase", "logicDatabaseId");
}
this.logicDatabaseId = logicDatabaseId;
return this;
}
@CustomType.Setter
public Builder ownerIdLists(List ownerIdLists) {
if (ownerIdLists == null) {
throw new MissingRequiredPropertyException("GetEnterpriseLogicDatabasesDatabase", "ownerIdLists");
}
this.ownerIdLists = ownerIdLists;
return this;
}
public Builder ownerIdLists(String... ownerIdLists) {
return ownerIdLists(List.of(ownerIdLists));
}
@CustomType.Setter
public Builder ownerNameLists(List ownerNameLists) {
if (ownerNameLists == null) {
throw new MissingRequiredPropertyException("GetEnterpriseLogicDatabasesDatabase", "ownerNameLists");
}
this.ownerNameLists = ownerNameLists;
return this;
}
public Builder ownerNameLists(String... ownerNameLists) {
return ownerNameLists(List.of(ownerNameLists));
}
@CustomType.Setter
public Builder schemaName(String schemaName) {
if (schemaName == null) {
throw new MissingRequiredPropertyException("GetEnterpriseLogicDatabasesDatabase", "schemaName");
}
this.schemaName = schemaName;
return this;
}
@CustomType.Setter
public Builder searchName(String searchName) {
if (searchName == null) {
throw new MissingRequiredPropertyException("GetEnterpriseLogicDatabasesDatabase", "searchName");
}
this.searchName = searchName;
return this;
}
public GetEnterpriseLogicDatabasesDatabase build() {
final var _resultValue = new GetEnterpriseLogicDatabasesDatabase();
_resultValue.alias = alias;
_resultValue.databaseIds = databaseIds;
_resultValue.dbType = dbType;
_resultValue.envType = envType;
_resultValue.id = id;
_resultValue.logic = logic;
_resultValue.logicDatabaseId = logicDatabaseId;
_resultValue.ownerIdLists = ownerIdLists;
_resultValue.ownerNameLists = ownerNameLists;
_resultValue.schemaName = schemaName;
_resultValue.searchName = searchName;
return _resultValue;
}
}
}