if (!helpOption) { builder.withVipAddress(cli.getOptionValue("n")); builder.withDataCenterType(DataCenterType.valueOf(cli.getOptionValue("d", "Basic")));
if (!helpOption) { builder.withVipAddress(cli.getOptionValue("n")); builder.withDataCenterType(DataCenterType.valueOf(cli.getOptionValue("d", "Basic")));
public LocalDataCenterInfo.DataCenterType getMyDataCenterType() { LocalDataCenterInfo.DataCenterType result; try { result = LocalDataCenterInfo.DataCenterType.valueOf(dataCenterType); } catch (Exception e) { result = LocalDataCenterInfo.DataCenterType.Basic; } return result; }
public LocalDataCenterInfo.DataCenterType getMyDataCenterType() { LocalDataCenterInfo.DataCenterType result; try { result = LocalDataCenterInfo.DataCenterType.valueOf(dataCenterType); } catch (Exception e) { result = LocalDataCenterInfo.DataCenterType.Basic; } return result; }