@Override @SafeVarargs public final Builder connections(Consumer<Connection.Builder>... connections) { connections(Stream.of(connections).map(c -> Connection.builder().applyMutation(c).build()) .collect(Collectors.toList())); return this; }
if (context.testExpression("ReplicationInstanceArn", targetDepth)) { context.nextToken(); connectionBuilder.replicationInstanceArn(context.getUnmarshaller(String.class).unmarshall(context)); connectionBuilder.endpointArn(context.getUnmarshaller(String.class).unmarshall(context)); connectionBuilder.status(context.getUnmarshaller(String.class).unmarshall(context)); connectionBuilder.lastFailureMessage(context.getUnmarshaller(String.class).unmarshall(context)); connectionBuilder.endpointIdentifier(context.getUnmarshaller(String.class).unmarshall(context)); connectionBuilder.replicationInstanceIdentifier(context.getUnmarshaller(String.class).unmarshall(context)); return connectionBuilder.build();
/** * <p> * The connection tested. * </p> * This is a convenience that creates an instance of the {@link Connection.Builder} avoiding the need to create * one manually via {@link Connection#builder()}. * * When the {@link Consumer} completes, {@link Connection.Builder#build()} is called immediately and its result * is passed to {@link #connection(Connection)}. * * @param connection * a consumer that will call methods on {@link Connection.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #connection(Connection) */ default Builder connection(Consumer<Connection.Builder> connection) { return connection(Connection.builder().applyMutation(connection).build()); } }
/** * <p> * The connection tested. * </p> * This is a convenience that creates an instance of the {@link Connection.Builder} avoiding the need to create * one manually via {@link Connection#builder()}. * * When the {@link Consumer} completes, {@link Connection.Builder#build()} is called immediately and its result * is passed to {@link #connection(Connection)}. * * @param connection * a consumer that will call methods on {@link Connection.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #connection(Connection) */ default Builder connection(Consumer<Connection.Builder> connection) { return connection(Connection.builder().applyMutation(connection).build()); } }
/** * <p> * The connection tested. * </p> * This is a convenience that creates an instance of the {@link Connection.Builder} avoiding the need to create * one manually via {@link Connection#builder()}. * * When the {@link Consumer} completes, {@link Connection.Builder#build()} is called immediately and its result * is passed to {@link #connection(Connection)}. * * @param connection * a consumer that will call methods on {@link Connection.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #connection(Connection) */ default Builder connection(Consumer<Connection.Builder> connection) { return connection(Connection.builder().applyMutation(connection).build()); } }
@Override @SafeVarargs public final Builder connections(Consumer<Connection.Builder>... connections) { connections(Stream.of(connections).map(c -> Connection.builder().applyMutation(c).build()) .collect(Collectors.toList())); return this; }
@Override @SafeVarargs public final Builder connections(Consumer<Connection.Builder>... connections) { connections(Stream.of(connections).map(c -> Connection.builder().applyMutation(c).build()) .collect(Collectors.toList())); return this; }