@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getContinuousBackupsStatus() == null) ? 0 : getContinuousBackupsStatus().hashCode()); hashCode = prime * hashCode + ((getPointInTimeRecoveryDescription() == null) ? 0 : getPointInTimeRecoveryDescription().hashCode()); return hashCode; }
/** * 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. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getContinuousBackupsStatus() != null) sb.append("ContinuousBackupsStatus: ").append(getContinuousBackupsStatus()).append(","); if (getPointInTimeRecoveryDescription() != null) sb.append("PointInTimeRecoveryDescription: ").append(getPointInTimeRecoveryDescription()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ContinuousBackupsDescription == false) return false; ContinuousBackupsDescription other = (ContinuousBackupsDescription) obj; if (other.getContinuousBackupsStatus() == null ^ this.getContinuousBackupsStatus() == null) return false; if (other.getContinuousBackupsStatus() != null && other.getContinuousBackupsStatus().equals(this.getContinuousBackupsStatus()) == false) return false; if (other.getPointInTimeRecoveryDescription() == null ^ this.getPointInTimeRecoveryDescription() == null) return false; if (other.getPointInTimeRecoveryDescription() != null && other.getPointInTimeRecoveryDescription().equals(this.getPointInTimeRecoveryDescription()) == false) return false; return true; }
/** * Marshall the given parameter object. */ public void marshall(ContinuousBackupsDescription continuousBackupsDescription, ProtocolMarshaller protocolMarshaller) { if (continuousBackupsDescription == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(continuousBackupsDescription.getContinuousBackupsStatus(), CONTINUOUSBACKUPSSTATUS_BINDING); protocolMarshaller.marshall(continuousBackupsDescription.getPointInTimeRecoveryDescription(), POINTINTIMERECOVERYDESCRIPTION_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
/** * Returns a string representation of this object; useful for testing and * debugging. * * @return A string representation of this object. * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getContinuousBackupsStatus() != null) sb.append("ContinuousBackupsStatus: " + getContinuousBackupsStatus() + ","); if (getPointInTimeRecoveryDescription() != null) sb.append("PointInTimeRecoveryDescription: " + getPointInTimeRecoveryDescription()); sb.append("}"); return sb.toString(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getContinuousBackupsStatus() == null) ? 0 : getContinuousBackupsStatus() .hashCode()); hashCode = prime * hashCode + ((getPointInTimeRecoveryDescription() == null) ? 0 : getPointInTimeRecoveryDescription().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ContinuousBackupsDescription == false) return false; ContinuousBackupsDescription other = (ContinuousBackupsDescription) obj; if (other.getContinuousBackupsStatus() == null ^ this.getContinuousBackupsStatus() == null) return false; if (other.getContinuousBackupsStatus() != null && other.getContinuousBackupsStatus().equals(this.getContinuousBackupsStatus()) == false) return false; if (other.getPointInTimeRecoveryDescription() == null ^ this.getPointInTimeRecoveryDescription() == null) return false; if (other.getPointInTimeRecoveryDescription() != null && other.getPointInTimeRecoveryDescription().equals( this.getPointInTimeRecoveryDescription()) == false) return false; return true; } }
public void marshall(ContinuousBackupsDescription continuousBackupsDescription, AwsJsonWriter jsonWriter) throws Exception { jsonWriter.beginObject(); if (continuousBackupsDescription.getContinuousBackupsStatus() != null) { String continuousBackupsStatus = continuousBackupsDescription .getContinuousBackupsStatus(); jsonWriter.name("ContinuousBackupsStatus"); jsonWriter.value(continuousBackupsStatus); } if (continuousBackupsDescription.getPointInTimeRecoveryDescription() != null) { PointInTimeRecoveryDescription pointInTimeRecoveryDescription = continuousBackupsDescription .getPointInTimeRecoveryDescription(); jsonWriter.name("PointInTimeRecoveryDescription"); PointInTimeRecoveryDescriptionJsonMarshaller.getInstance().marshall( pointInTimeRecoveryDescription, jsonWriter); } jsonWriter.endObject(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getContinuousBackupsStatus() == null) ? 0 : getContinuousBackupsStatus().hashCode()); hashCode = prime * hashCode + ((getPointInTimeRecoveryDescription() == null) ? 0 : getPointInTimeRecoveryDescription().hashCode()); return hashCode; }
/** * 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. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getContinuousBackupsStatus() != null) sb.append("ContinuousBackupsStatus: ").append(getContinuousBackupsStatus()).append(","); if (getPointInTimeRecoveryDescription() != null) sb.append("PointInTimeRecoveryDescription: ").append(getPointInTimeRecoveryDescription()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ContinuousBackupsDescription == false) return false; ContinuousBackupsDescription other = (ContinuousBackupsDescription) obj; if (other.getContinuousBackupsStatus() == null ^ this.getContinuousBackupsStatus() == null) return false; if (other.getContinuousBackupsStatus() != null && other.getContinuousBackupsStatus().equals(this.getContinuousBackupsStatus()) == false) return false; if (other.getPointInTimeRecoveryDescription() == null ^ this.getPointInTimeRecoveryDescription() == null) return false; if (other.getPointInTimeRecoveryDescription() != null && other.getPointInTimeRecoveryDescription().equals(this.getPointInTimeRecoveryDescription()) == false) return false; return true; }
/** * Marshall the given parameter object. */ public void marshall(ContinuousBackupsDescription continuousBackupsDescription, ProtocolMarshaller protocolMarshaller) { if (continuousBackupsDescription == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(continuousBackupsDescription.getContinuousBackupsStatus(), CONTINUOUSBACKUPSSTATUS_BINDING); protocolMarshaller.marshall(continuousBackupsDescription.getPointInTimeRecoveryDescription(), POINTINTIMERECOVERYDESCRIPTION_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
Loggers.MAIN_LOG.info("[DS0143] DynamoDB store: Continuous backup status: {}", result.getContinuousBackupsDescription().getContinuousBackupsStatus()); Loggers.MAIN_LOG.info("[DS0144] DynamoDB store: Point in time recovery status: {}", result.getContinuousBackupsDescription().getPointInTimeRecoveryDescription().getPointInTimeRecoveryStatus()); } catch (Exception e) {