@Override public Connection build() { return new Connection(this); }
@Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(replicationInstanceArn()); hashCode = 31 * hashCode + Objects.hashCode(endpointArn()); hashCode = 31 * hashCode + Objects.hashCode(status()); hashCode = 31 * hashCode + Objects.hashCode(lastFailureMessage()); hashCode = 31 * hashCode + Objects.hashCode(endpointIdentifier()); hashCode = 31 * hashCode + Objects.hashCode(replicationInstanceIdentifier()); return hashCode; }
public final Connection.Builder getConnection() { return connection != null ? connection.toBuilder() : null; }
@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; }
/** * 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("Connection").add("ReplicationInstanceArn", replicationInstanceArn()) .add("EndpointArn", endpointArn()).add("Status", status()).add("LastFailureMessage", lastFailureMessage()) .add("EndpointIdentifier", endpointIdentifier()) .add("ReplicationInstanceIdentifier", replicationInstanceIdentifier()).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 public Connection build() { return new Connection(this); } }
public final Connection.Builder getConnection() { return connection != null ? connection.toBuilder() : null; }
@Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(replicationInstanceArn()); hashCode = 31 * hashCode + Objects.hashCode(endpointArn()); hashCode = 31 * hashCode + Objects.hashCode(status()); hashCode = 31 * hashCode + Objects.hashCode(lastFailureMessage()); hashCode = 31 * hashCode + Objects.hashCode(endpointIdentifier()); hashCode = 31 * hashCode + Objects.hashCode(replicationInstanceIdentifier()); return hashCode; }
/** * <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 public Connection build() { return new Connection(this); }
public final Connection.Builder getConnection() { return connection != null ? connection.toBuilder() : null; }
@Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(replicationInstanceArn()); hashCode = 31 * hashCode + Objects.hashCode(endpointArn()); hashCode = 31 * hashCode + Objects.hashCode(status()); hashCode = 31 * hashCode + Objects.hashCode(lastFailureMessage()); hashCode = 31 * hashCode + Objects.hashCode(endpointIdentifier()); hashCode = 31 * hashCode + Objects.hashCode(replicationInstanceIdentifier()); return hashCode; }
/** * <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 public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof Connection)) { return false; } Connection other = (Connection) obj; return Objects.equals(replicationInstanceArn(), other.replicationInstanceArn()) && Objects.equals(endpointArn(), other.endpointArn()) && Objects.equals(status(), other.status()) && Objects.equals(lastFailureMessage(), other.lastFailureMessage()) && Objects.equals(endpointIdentifier(), other.endpointIdentifier()) && Objects.equals(replicationInstanceIdentifier(), other.replicationInstanceIdentifier()); }
/** * <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 public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof Connection)) { return false; } Connection other = (Connection) obj; return Objects.equals(replicationInstanceArn(), other.replicationInstanceArn()) && Objects.equals(endpointArn(), other.endpointArn()) && Objects.equals(status(), other.status()) && Objects.equals(lastFailureMessage(), other.lastFailureMessage()) && Objects.equals(endpointIdentifier(), other.endpointIdentifier()) && Objects.equals(replicationInstanceIdentifier(), other.replicationInstanceIdentifier()); }
public Connection unmarshall(JsonUnmarshallerContext context) throws Exception { Connection.Builder connectionBuilder = Connection.builder();
@Override public String toString() { return ToString.builder("Connection").add("ReplicationInstanceArn", replicationInstanceArn()) .add("EndpointArn", endpointArn()).add("Status", status()).add("LastFailureMessage", lastFailureMessage()) .add("EndpointIdentifier", endpointIdentifier()) .add("ReplicationInstanceIdentifier", replicationInstanceIdentifier()).build(); }