1616// under the License.
1717package org .apache .cloudstack .api .response ;
1818
19- import com . cloud . host . Host ;
20- import com . cloud . host . Status ;
21- import com . cloud . hypervisor . Hypervisor . HypervisorType ;
22- import com . cloud . serializer . Param ;
23- import com . google . gson . annotations . SerializedName ;
19+ import java . util . Date ;
20+ import java . util . HashMap ;
21+ import java . util . List ;
22+ import java . util . Map ;
23+
2424import org .apache .cloudstack .api .ApiConstants ;
2525import org .apache .cloudstack .api .BaseResponse ;
2626import org .apache .cloudstack .api .EntityReference ;
2727import org .apache .cloudstack .ha .HAConfig ;
2828import org .apache .cloudstack .outofbandmanagement .OutOfBandManagement ;
2929
30- import java .util .Date ;
31- import java .util .HashMap ;
32- import java .util .List ;
33- import java .util .Map ;
30+ import com .cloud .host .Host ;
31+ import com .cloud .host .Status ;
32+ import com .cloud .hypervisor .Hypervisor .HypervisorType ;
33+ import com .cloud .serializer .Param ;
34+ import com .google .gson .annotations .SerializedName ;
3435
3536@ EntityReference (value = Host .class )
3637public class HostResponse extends BaseResponse {
@@ -243,11 +244,6 @@ public class HostResponse extends BaseResponse {
243244 @ Param (description = "the admin that annotated this host" , since = "4.11" )
244245 private String username ;
245246
246- // Default visibility to support accessing the details from unit tests
247- Map getDetails () {
248- return details ;
249- }
250-
251247 @ Override
252248 public String getObjectId () {
253249 return this .getId ();
@@ -361,7 +357,7 @@ public void setMemoryUsed(Long memoryUsed) {
361357 this .memoryUsed = memoryUsed ;
362358 }
363359
364- public void setGpuGroups (List <GpuResponse > gpuGroup ) {
360+ public void setGpuGroup (List <GpuResponse > gpuGroup ) {
365361 this .gpuGroup = gpuGroup ;
366362 }
367363
@@ -437,6 +433,10 @@ public void setHostHAResponse(final HAConfig config) {
437433 this .hostHAResponse = new HostHAResponse (config );
438434 }
439435
436+ public void setHostHAResponse (HostHAResponse hostHAResponse ) {
437+ this .hostHAResponse = hostHAResponse ;
438+ }
439+
440440 public OutOfBandManagementResponse getOutOfBandManagementResponse () {
441441 return outOfBandManagementResponse ;
442442 }
@@ -445,6 +445,10 @@ public void setOutOfBandManagementResponse(final OutOfBandManagement outOfBandMa
445445 this .outOfBandManagementResponse = new OutOfBandManagementResponse (outOfBandManagementConfig );
446446 }
447447
448+ public void setOutOfBandManagementResponse (OutOfBandManagementResponse outOfBandManagementResponse ) {
449+ this .outOfBandManagementResponse = outOfBandManagementResponse ;
450+ }
451+
448452 public String getResourceState () {
449453 return resourceState ;
450454 }
@@ -496,7 +500,10 @@ public void setDetails(Map details) {
496500 detailsCopy .remove ("password" );
497501
498502 this .details = detailsCopy ;
503+ }
499504
505+ public Map getDetails () {
506+ return details ;
500507 }
501508
502509 public void setMemoryTotal (Long memoryTotal ) {
0 commit comments