@Override @SafeVarargs public final Builder certificates(Consumer<Certificate.Builder>... certificates) { certificates(Stream.of(certificates).map(c -> Certificate.builder().applyMutation(c).build()) .collect(Collectors.toList())); return this; }
@Override @SafeVarargs public final Builder certificates(Consumer<Certificate.Builder>... certificates) { certificates(Stream.of(certificates).map(c -> Certificate.builder().applyMutation(c).build()) .collect(Collectors.toList())); return this; }
@Override @SafeVarargs public final Builder certificates(Consumer<Certificate.Builder>... certificates) { certificates(Stream.of(certificates).map(c -> Certificate.builder().applyMutation(c).build()) .collect(Collectors.toList())); return this; }
return certificateBuilder.build();
/** * <p> * The certificate to be uploaded. * </p> * This is a convenience that creates an instance of the {@link Certificate.Builder} avoiding the need to create * one manually via {@link Certificate#builder()}. * * When the {@link Consumer} completes, {@link Certificate.Builder#build()} is called immediately and its result * is passed to {@link #certificate(Certificate)}. * * @param certificate * a consumer that will call methods on {@link Certificate.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #certificate(Certificate) */ default Builder certificate(Consumer<Certificate.Builder> certificate) { return certificate(Certificate.builder().applyMutation(certificate).build()); } }
/** * <p> * The Secure Sockets Layer (SSL) certificate. * </p> * This is a convenience that creates an instance of the {@link Certificate.Builder} avoiding the need to create * one manually via {@link Certificate#builder()}. * * When the {@link Consumer} completes, {@link Certificate.Builder#build()} is called immediately and its result * is passed to {@link #certificate(Certificate)}. * * @param certificate * a consumer that will call methods on {@link Certificate.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #certificate(Certificate) */ default Builder certificate(Consumer<Certificate.Builder> certificate) { return certificate(Certificate.builder().applyMutation(certificate).build()); } }
/** * <p> * The Secure Sockets Layer (SSL) certificate. * </p> * This is a convenience that creates an instance of the {@link Certificate.Builder} avoiding the need to create * one manually via {@link Certificate#builder()}. * * When the {@link Consumer} completes, {@link Certificate.Builder#build()} is called immediately and its result * is passed to {@link #certificate(Certificate)}. * * @param certificate * a consumer that will call methods on {@link Certificate.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #certificate(Certificate) */ default Builder certificate(Consumer<Certificate.Builder> certificate) { return certificate(Certificate.builder().applyMutation(certificate).build()); } }
/** * <p> * The Secure Sockets Layer (SSL) certificate. * </p> * This is a convenience that creates an instance of the {@link Certificate.Builder} avoiding the need to create * one manually via {@link Certificate#builder()}. * * When the {@link Consumer} completes, {@link Certificate.Builder#build()} is called immediately and its result * is passed to {@link #certificate(Certificate)}. * * @param certificate * a consumer that will call methods on {@link Certificate.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #certificate(Certificate) */ default Builder certificate(Consumer<Certificate.Builder> certificate) { return certificate(Certificate.builder().applyMutation(certificate).build()); } }
/** * <p> * The certificate to be uploaded. * </p> * This is a convenience that creates an instance of the {@link Certificate.Builder} avoiding the need to create * one manually via {@link Certificate#builder()}. * * When the {@link Consumer} completes, {@link Certificate.Builder#build()} is called immediately and its result * is passed to {@link #certificate(Certificate)}. * * @param certificate * a consumer that will call methods on {@link Certificate.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #certificate(Certificate) */ default Builder certificate(Consumer<Certificate.Builder> certificate) { return certificate(Certificate.builder().applyMutation(certificate).build()); } }
/** * <p> * The certificate to be uploaded. * </p> * This is a convenience that creates an instance of the {@link Certificate.Builder} avoiding the need to create * one manually via {@link Certificate#builder()}. * * When the {@link Consumer} completes, {@link Certificate.Builder#build()} is called immediately and its result * is passed to {@link #certificate(Certificate)}. * * @param certificate * a consumer that will call methods on {@link Certificate.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #certificate(Certificate) */ default Builder certificate(Consumer<Certificate.Builder> certificate) { return certificate(Certificate.builder().applyMutation(certificate).build()); } }