@Test void setCameraBySerialNumber() { final OpenSessionOption option = builder .setCameraByIndex(5) .setCameraBySerialNumber("adawda") .build(); Assertions.assertTrue(option.getCameraBySerialNumber().isPresent()); Assertions.assertFalse(option.getCameraByIndex().isPresent()); }
public OpenSessionOptionBuilder setCameraBySerialNumber(final String cameraBySerialNumber) { this.cameraBySerialNumber = cameraBySerialNumber; this.cameraByIndex = null; return this; }
OpenSessionOptionBuilder { public OpenSessionOptionBuilder setCameraBySerialNumber(final String cameraBySerialNumber) { this.cameraBySerialNumber = cameraBySerialNumber; this.cameraByIndex = null; return this; } }
OpenSessionOptionBuilder { public OpenSessionOptionBuilder setCameraBySerialNumber(final String cameraBySerialNumber) { this.cameraBySerialNumber = cameraBySerialNumber; this.cameraByIndex = null; return this; }  }
OpenSessionOptionBuilder { public OpenSessionOptionBuilder setCameraBySerialNumber(final String cameraBySerialNumber) { this.cameraBySerialNumber = cameraBySerialNumber; this.cameraByIndex = null; return this; }  OpenSessionOptionBuilder setOpenSessionOnly(final boolean openSessionOnly); OpenSessionOptionBuilder setCameraRef(final EdsCameraRef cameraRef); OpenSessionOptionBuilder setCamera(final CanonCamera camera); OpenSessionOptionBuilder setCameraByIndex(final Integer cameraByIndex); OpenSessionOptionBuilder setCameraBySerialNumber(final String cameraBySerialNumber); OpenSessionOptionBuilder setRegisterObjectEvent(final boolean registerObjectEvent); OpenSessionOptionBuilder setRegisterPropertyEvent(final boolean registerPropertyEvent); OpenSessionOptionBuilder setRegisterStateEvent(final boolean registerStateEvent); OpenSessionOption build(); }
OpenSessionOptionBuilder { public OpenSessionOptionBuilder setCameraBySerialNumber(final String cameraBySerialNumber) { this.cameraBySerialNumber = cameraBySerialNumber; this.cameraByIndex = null; return this; }  OpenSessionOptionBuilder setOpenSessionOnly(final boolean openSessionOnly); OpenSessionOptionBuilder setCameraRef(final EdsCameraRef cameraRef); OpenSessionOptionBuilder setCamera(final CanonCamera camera); OpenSessionOptionBuilder setCameraByIndex(final Integer cameraByIndex); OpenSessionOptionBuilder setCameraBySerialNumber(final String cameraBySerialNumber); OpenSessionOptionBuilder setRegisterObjectEvent(final boolean registerObjectEvent); OpenSessionOptionBuilder setRegisterPropertyEvent(final boolean registerPropertyEvent); OpenSessionOptionBuilder setRegisterStateEvent(final boolean registerStateEvent); OpenSessionOption build();  }