use of com.sequenceiq.sdx.api.model.SdxDatabaseAvailabilityType in project cloudbreak by hortonworks.
the class SdxExternalDatabaseConfigurer method configure.
public void configure(CloudPlatform cloudPlatform, SdxDatabaseRequest databaseRequest, SdxCluster sdxCluster) {
SdxDatabaseAvailabilityType databaseAvailabilityType = getDatabaseAvailabilityType(databaseRequest, cloudPlatform, sdxCluster);
sdxCluster.setDatabaseAvailabilityType(databaseAvailabilityType);
Optional.ofNullable(databaseRequest).map(SdxDatabaseRequest::getDatabaseEngineVersion).ifPresent(sdxCluster::setDatabaseEngineVersion);
validate(cloudPlatform, sdxCluster);
}
Aggregations