@Test void setDefaultTimeout() { cameraDefaultConstructor.setDefaultTimeout(Duration.ofSeconds(30)); cameraWithSerialNumber.setDefaultTimeout(Duration.ofSeconds(30)); Assertions.assertTrue(cameraDefaultConstructor.getDefaultTimeout().isPresent()); Assertions.assertTrue(cameraWithSerialNumber.getDefaultTimeout().isPresent()); }
public CanonCamera setDefaultTimeout(final Duration defaultTimeout) { this.defaultTimeout = defaultTimeout; return this; }
CanonCamera { public CanonCamera setDefaultTimeout(final Duration defaultTimeout) { this.defaultTimeout = defaultTimeout; return this; } }
CanonCamera { public CanonCamera setDefaultTimeout(final Duration defaultTimeout) { this.defaultTimeout = defaultTimeout; return this; } CanonCamera();  CanonCamera(final String serialNumber); }
CanonCamera { public CanonCamera setDefaultTimeout(final Duration defaultTimeout) { this.defaultTimeout = defaultTimeout; return this; } CanonCamera();  CanonCamera(final String serialNumber); T dispatchCommand(T command); Optional<EdsCameraRef> getCameraRef(); CanonCamera setCameraRef(final EdsCameraRef cameraRef); Optional<String> getSerialNumber(); void setSerialNumber(final String serialNumber); Optional<CommandBuilderReusable> getCommandBuilderReusable(); void setCommandBuilderReusable(final CommandBuilderReusable commandBuilderReusable); Optional<Duration> getDefaultTimeout(); CanonCamera setDefaultTimeout(final Duration defaultTimeout); Event getEvent(); Shoot getShoot(); LiveView getLiveView(); Property getProperty(); GenericCommand<R> sendGenericCommandAsync(final GenericCommand<R> command); GenericCommand<R> sendGenericCommandAsync(final CallableCommand<R> callableCommand); CameraCommand sendCameraCommandAsync(final EdsCameraCommand cameraCommand); CameraCommand sendCameraCommandAsync(final EdsCameraCommand cameraCommand, final NativeEnum<? extends Number> param); CameraCommand sendCameraCommandAsync(final EdsCameraCommand cameraCommand, final long inParam); StatusCommand sendStatusCommandAsync(final EdsCameraStatusCommand statusCommand); IsConnectedCommand isConnectedAsync(); OpenSessionCommand openSession(); OpenSessionCommand openSession(final OpenSessionOption option); CloseSessionCommand closeSession(); CloseSessionCommand closeSession(final CloseSessionOption option); @Override String toString(); }
CanonCamera { public CanonCamera setDefaultTimeout(final Duration defaultTimeout) { this.defaultTimeout = defaultTimeout; return this; } CanonCamera();  CanonCamera(final String serialNumber); T dispatchCommand(T command); Optional<EdsCameraRef> getCameraRef(); CanonCamera setCameraRef(final EdsCameraRef cameraRef); Optional<String> getSerialNumber(); void setSerialNumber(final String serialNumber); Optional<CommandBuilderReusable> getCommandBuilderReusable(); void setCommandBuilderReusable(final CommandBuilderReusable commandBuilderReusable); Optional<Duration> getDefaultTimeout(); CanonCamera setDefaultTimeout(final Duration defaultTimeout); Event getEvent(); Shoot getShoot(); LiveView getLiveView(); Property getProperty(); GenericCommand<R> sendGenericCommandAsync(final GenericCommand<R> command); GenericCommand<R> sendGenericCommandAsync(final CallableCommand<R> callableCommand); CameraCommand sendCameraCommandAsync(final EdsCameraCommand cameraCommand); CameraCommand sendCameraCommandAsync(final EdsCameraCommand cameraCommand, final NativeEnum<? extends Number> param); CameraCommand sendCameraCommandAsync(final EdsCameraCommand cameraCommand, final long inParam); StatusCommand sendStatusCommandAsync(final EdsCameraStatusCommand statusCommand); IsConnectedCommand isConnectedAsync(); OpenSessionCommand openSession(); OpenSessionCommand openSession(final OpenSessionOption option); CloseSessionCommand closeSession(); CloseSessionCommand closeSession(final CloseSessionOption option); @Override String toString();  }