/** * 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 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(); }
/** * 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(); }
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) { switch (fieldName) { case "ReplicationInstanceArn": return Optional.ofNullable(clazz.cast(replicationInstanceArn())); case "EndpointArn": return Optional.ofNullable(clazz.cast(endpointArn())); case "Status": return Optional.ofNullable(clazz.cast(status())); case "LastFailureMessage": return Optional.ofNullable(clazz.cast(lastFailureMessage())); case "EndpointIdentifier": return Optional.ofNullable(clazz.cast(endpointIdentifier())); case "ReplicationInstanceIdentifier": return Optional.ofNullable(clazz.cast(replicationInstanceIdentifier())); default: return Optional.empty(); } }
@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; }
@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; }
@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 <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) { switch (fieldName) { case "ReplicationInstanceArn": return Optional.ofNullable(clazz.cast(replicationInstanceArn())); case "EndpointArn": return Optional.ofNullable(clazz.cast(endpointArn())); case "Status": return Optional.ofNullable(clazz.cast(status())); case "LastFailureMessage": return Optional.ofNullable(clazz.cast(lastFailureMessage())); case "EndpointIdentifier": return Optional.ofNullable(clazz.cast(endpointIdentifier())); case "ReplicationInstanceIdentifier": return Optional.ofNullable(clazz.cast(replicationInstanceIdentifier())); default: return Optional.empty(); } }
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) { switch (fieldName) { case "ReplicationInstanceArn": return Optional.ofNullable(clazz.cast(replicationInstanceArn())); case "EndpointArn": return Optional.ofNullable(clazz.cast(endpointArn())); case "Status": return Optional.ofNullable(clazz.cast(status())); case "LastFailureMessage": return Optional.ofNullable(clazz.cast(lastFailureMessage())); case "EndpointIdentifier": return Optional.ofNullable(clazz.cast(endpointIdentifier())); case "ReplicationInstanceIdentifier": return Optional.ofNullable(clazz.cast(replicationInstanceIdentifier())); default: return Optional.empty(); } }
@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()); }
@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()); }
@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()); }
/** * Marshall the given parameter object */ public void marshall(Connection connection, ProtocolMarshaller protocolMarshaller) { Validate.paramNotNull(connection, "connection"); Validate.paramNotNull(protocolMarshaller, "protocolMarshaller"); try { protocolMarshaller.marshall(connection.replicationInstanceArn(), REPLICATIONINSTANCEARN_BINDING); protocolMarshaller.marshall(connection.endpointArn(), ENDPOINTARN_BINDING); protocolMarshaller.marshall(connection.status(), STATUS_BINDING); protocolMarshaller.marshall(connection.lastFailureMessage(), LASTFAILUREMESSAGE_BINDING); protocolMarshaller.marshall(connection.endpointIdentifier(), ENDPOINTIDENTIFIER_BINDING); protocolMarshaller.marshall(connection.replicationInstanceIdentifier(), REPLICATIONINSTANCEIDENTIFIER_BINDING); } catch (Exception e) { throw SdkClientException.builder().message("Unable to marshall request to JSON: " + e.getMessage()).cause(e).build(); } } }