public final EndpointConfiguration.Builder getEndpointConfiguration() { return endpointConfiguration != null ? endpointConfiguration.toBuilder() : null; }
@Override public EndpointConfiguration build() { return new EndpointConfiguration(this); }
@Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(typesAsStrings()); return hashCode; }
/** * <p> * The endpoint configuration of this <a>RestApi</a> showing the endpoint types of the API. * </p> * This is a convenience that creates an instance of the {@link EndpointConfiguration.Builder} avoiding the need * to create one manually via {@link EndpointConfiguration#builder()}. * * When the {@link Consumer} completes, {@link EndpointConfiguration.Builder#build()} is called immediately and * its result is passed to {@link #endpointConfiguration(EndpointConfiguration)}. * * @param endpointConfiguration * a consumer that will call methods on {@link EndpointConfiguration.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #endpointConfiguration(EndpointConfiguration) */ default Builder endpointConfiguration(Consumer<EndpointConfiguration.Builder> endpointConfiguration) { return endpointConfiguration(EndpointConfiguration.builder().applyMutation(endpointConfiguration).build()); }
/** * <p> * The endpoint configuration of this <a>RestApi</a> showing the endpoint types of the API. * </p> * This is a convenience that creates an instance of the {@link EndpointConfiguration.Builder} avoiding the need * to create one manually via {@link EndpointConfiguration#builder()}. * * When the {@link Consumer} completes, {@link EndpointConfiguration.Builder#build()} is called immediately and * its result is passed to {@link #endpointConfiguration(EndpointConfiguration)}. * * @param endpointConfiguration * a consumer that will call methods on {@link EndpointConfiguration.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #endpointConfiguration(EndpointConfiguration) */ default Builder endpointConfiguration(Consumer<EndpointConfiguration.Builder> endpointConfiguration) { return endpointConfiguration(EndpointConfiguration.builder().applyMutation(endpointConfiguration).build()); }
public final EndpointConfiguration.Builder getEndpointConfiguration() { return endpointConfiguration != null ? endpointConfiguration.toBuilder() : null; }
/** * <p> * The endpoint configuration of this <a>RestApi</a> showing the endpoint types of the API. * </p> * This is a convenience that creates an instance of the {@link EndpointConfiguration.Builder} avoiding the need * to create one manually via {@link EndpointConfiguration#builder()}. * * When the {@link Consumer} completes, {@link EndpointConfiguration.Builder#build()} is called immediately and * its result is passed to {@link #endpointConfiguration(EndpointConfiguration)}. * * @param endpointConfiguration * a consumer that will call methods on {@link EndpointConfiguration.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #endpointConfiguration(EndpointConfiguration) */ default Builder endpointConfiguration(Consumer<EndpointConfiguration.Builder> endpointConfiguration) { return endpointConfiguration(EndpointConfiguration.builder().applyMutation(endpointConfiguration).build()); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof EndpointConfiguration)) { return false; } EndpointConfiguration other = (EndpointConfiguration) obj; return Objects.equals(typesAsStrings(), other.typesAsStrings()); }
public final EndpointConfiguration.Builder getEndpointConfiguration() { return endpointConfiguration != null ? endpointConfiguration.toBuilder() : null; }
/** * <p> * The endpoint configuration of this <a>RestApi</a> showing the endpoint types of the API. * </p> * This is a convenience that creates an instance of the {@link EndpointConfiguration.Builder} avoiding the need * to create one manually via {@link EndpointConfiguration#builder()}. * * When the {@link Consumer} completes, {@link EndpointConfiguration.Builder#build()} is called immediately and * its result is passed to {@link #endpointConfiguration(EndpointConfiguration)}. * * @param endpointConfiguration * a consumer that will call methods on {@link EndpointConfiguration.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #endpointConfiguration(EndpointConfiguration) */ default Builder endpointConfiguration(Consumer<EndpointConfiguration.Builder> endpointConfiguration) { return endpointConfiguration(EndpointConfiguration.builder().applyMutation(endpointConfiguration).build()); }
/** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. */ @Override public String toString() { return ToString.builder("EndpointConfiguration").add("Types", typesAsStrings()).build(); }
public final EndpointConfiguration.Builder getEndpointConfiguration() { return endpointConfiguration != null ? endpointConfiguration.toBuilder() : null; }
/** * <p> * The endpoint configuration of this <a>DomainName</a> showing the endpoint types of the domain name. * </p> * This is a convenience that creates an instance of the {@link EndpointConfiguration.Builder} avoiding the need * to create one manually via {@link EndpointConfiguration#builder()}. * * When the {@link Consumer} completes, {@link EndpointConfiguration.Builder#build()} is called immediately and * its result is passed to {@link #endpointConfiguration(EndpointConfiguration)}. * * @param endpointConfiguration * a consumer that will call methods on {@link EndpointConfiguration.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #endpointConfiguration(EndpointConfiguration) */ default Builder endpointConfiguration(Consumer<EndpointConfiguration.Builder> endpointConfiguration) { return endpointConfiguration(EndpointConfiguration.builder().applyMutation(endpointConfiguration).build()); }
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) { switch (fieldName) { case "types": return Optional.ofNullable(clazz.cast(typesAsStrings())); default: return Optional.empty(); } }
public final EndpointConfiguration.Builder getEndpointConfiguration() { return endpointConfiguration != null ? endpointConfiguration.toBuilder() : null; }
/** * <p> * The endpoint configuration of this <a>RestApi</a> showing the endpoint types of the API. * </p> * This is a convenience that creates an instance of the {@link EndpointConfiguration.Builder} avoiding the need * to create one manually via {@link EndpointConfiguration#builder()}. * * When the {@link Consumer} completes, {@link EndpointConfiguration.Builder#build()} is called immediately and * its result is passed to {@link #endpointConfiguration(EndpointConfiguration)}. * * @param endpointConfiguration * a consumer that will call methods on {@link EndpointConfiguration.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #endpointConfiguration(EndpointConfiguration) */ default Builder endpointConfiguration(Consumer<EndpointConfiguration.Builder> endpointConfiguration) { return endpointConfiguration(EndpointConfiguration.builder().applyMutation(endpointConfiguration).build()); }
public final EndpointConfiguration.Builder getEndpointConfiguration() { return endpointConfiguration != null ? endpointConfiguration.toBuilder() : null; }
/** * <p> * The endpoint configuration of this <a>DomainName</a> showing the endpoint types of the domain name. * </p> * This is a convenience that creates an instance of the {@link EndpointConfiguration.Builder} avoiding the need * to create one manually via {@link EndpointConfiguration#builder()}. * * When the {@link Consumer} completes, {@link EndpointConfiguration.Builder#build()} is called immediately and * its result is passed to {@link #endpointConfiguration(EndpointConfiguration)}. * * @param endpointConfiguration * a consumer that will call methods on {@link EndpointConfiguration.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #endpointConfiguration(EndpointConfiguration) */ default Builder endpointConfiguration(Consumer<EndpointConfiguration.Builder> endpointConfiguration) { return endpointConfiguration(EndpointConfiguration.builder().applyMutation(endpointConfiguration).build()); } }
public final EndpointConfiguration.Builder getEndpointConfiguration() { return endpointConfiguration != null ? endpointConfiguration.toBuilder() : null; }
/** * <p> * The endpoint configuration of this <a>DomainName</a> showing the endpoint types of the domain name. * </p> * This is a convenience that creates an instance of the {@link EndpointConfiguration.Builder} avoiding the need * to create one manually via {@link EndpointConfiguration#builder()}. * * When the {@link Consumer} completes, {@link EndpointConfiguration.Builder#build()} is called immediately and * its result is passed to {@link #endpointConfiguration(EndpointConfiguration)}. * * @param endpointConfiguration * a consumer that will call methods on {@link EndpointConfiguration.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #endpointConfiguration(EndpointConfiguration) */ default Builder endpointConfiguration(Consumer<EndpointConfiguration.Builder> endpointConfiguration) { return endpointConfiguration(EndpointConfiguration.builder().applyMutation(endpointConfiguration).build()); } }