@Test void urlRequired() { InfluxDBClientOptions.Builder builder = InfluxDBClientOptions.builder() .authenticateToken("xyz".toCharArray()); Assertions.assertThatThrownBy(builder::build) .isInstanceOf(IllegalStateException.class) .hasMessage("The url to connect to InfluxDB has to be defined."); }
@Nonnull public static InfluxDBClientOptions.Builder builder() { return new InfluxDBClientOptions.Builder(); }
InfluxDBClientOptions { @Nonnull public static InfluxDBClientOptions.Builder builder() { return new InfluxDBClientOptions.Builder(); } }
InfluxDBClientOptions { @Nonnull public static InfluxDBClientOptions.Builder builder() { return new InfluxDBClientOptions.Builder(); } private  InfluxDBClientOptions(@Nonnull final InfluxDBClientOptions.Builder builder); }
InfluxDBClientOptions { @Nonnull public static InfluxDBClientOptions.Builder builder() { return new InfluxDBClientOptions.Builder(); } private  InfluxDBClientOptions(@Nonnull final InfluxDBClientOptions.Builder builder); @Nonnull String getUrl(); @Nonnull OkHttpClient.Builder getOkHttpClient(); @Nonnull LogLevel getLogLevel(); @Nullable AuthScheme getAuthScheme(); @Nullable char[] getToken(); @Nullable String getUsername(); @Nullable char[] getPassword(); @Nullable String getOrg(); @Nullable String getBucket(); @Nonnull PointSettings getPointSettings(); @Nonnull static InfluxDBClientOptions.Builder builder(); }
InfluxDBClientOptions { @Nonnull public static InfluxDBClientOptions.Builder builder() { return new InfluxDBClientOptions.Builder(); } private  InfluxDBClientOptions(@Nonnull final InfluxDBClientOptions.Builder builder); @Nonnull String getUrl(); @Nonnull OkHttpClient.Builder getOkHttpClient(); @Nonnull LogLevel getLogLevel(); @Nullable AuthScheme getAuthScheme(); @Nullable char[] getToken(); @Nullable String getUsername(); @Nullable char[] getPassword(); @Nullable String getOrg(); @Nullable String getBucket(); @Nonnull PointSettings getPointSettings(); @Nonnull static InfluxDBClientOptions.Builder builder();  }