this.username = username;
return this;
}
public StorageDevice build() {
StorageDeviceDto dto = new StorageDeviceDto();
dto.setIscsiIp(iscsiIp);
dto.setIscsiPort(iscsiPort);
dto.setManagementIp(managementIp);
dto.setManagementPort(managementPort);
dto.setName(name);
dto.setPassword(password);
dto.setStorageTechnology(type);
dto.setUsername(username);
StorageDevice storageDevice = new StorageDevice(context, dto);
storageDevice.datacenter = datacenter;
return storageDevice;
}