@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 int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getContinuousBackupsDescription() == null) ? 0 : getContinuousBackupsDescription().hashCode()); return hashCode; }
/** * <p> * <code>ContinuousBackupsStatus</code> can be one of the following states: ENABLED, DISABLED * </p> * * @param continuousBackupsStatus * <code>ContinuousBackupsStatus</code> can be one of the following states: ENABLED, DISABLED * @return Returns a reference to this object so that method calls can be chained together. * @see ContinuousBackupsStatus */ public ContinuousBackupsDescription withContinuousBackupsStatus(String continuousBackupsStatus) { setContinuousBackupsStatus(continuousBackupsStatus); return this; }
public ContinuousBackupsDescription unmarshall(JsonUnmarshallerContext context) throws Exception { ContinuousBackupsDescription continuousBackupsDescription = new ContinuousBackupsDescription(); if (context.testExpression("ContinuousBackupsStatus", targetDepth)) { context.nextToken(); continuousBackupsDescription.setContinuousBackupsStatus(context.getUnmarshaller(String.class).unmarshall(context)); continuousBackupsDescription.setPointInTimeRecoveryDescription(PointInTimeRecoveryDescriptionJsonUnmarshaller.getInstance().unmarshall( context));
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UpdateContinuousBackupsResult == false) return false; UpdateContinuousBackupsResult other = (UpdateContinuousBackupsResult) obj; if (other.getContinuousBackupsDescription() == null ^ this.getContinuousBackupsDescription() == null) return false; if (other.getContinuousBackupsDescription() != null && other.getContinuousBackupsDescription().equals(this.getContinuousBackupsDescription()) == false) return false; return true; }
/** * <p> * The description of the point in time recovery settings applied to the table. * </p> * * @param pointInTimeRecoveryDescription * The description of the point in time recovery settings applied to the table. * @return Returns a reference to this object so that method calls can be chained together. */ public ContinuousBackupsDescription withPointInTimeRecoveryDescription(PointInTimeRecoveryDescription pointInTimeRecoveryDescription) { setPointInTimeRecoveryDescription(pointInTimeRecoveryDescription); return this; }
public ContinuousBackupsDescription unmarshall(JsonUnmarshallerContext context) throws Exception { AwsJsonReader reader = context.getReader(); if (!reader.isContainer()) { reader.skipValue(); return null; } ContinuousBackupsDescription continuousBackupsDescription = new ContinuousBackupsDescription(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("ContinuousBackupsStatus")) { continuousBackupsDescription.setContinuousBackupsStatus(StringJsonUnmarshaller .getInstance() .unmarshall(context)); } else if (name.equals("PointInTimeRecoveryDescription")) { continuousBackupsDescription .setPointInTimeRecoveryDescription(PointInTimeRecoveryDescriptionJsonUnmarshaller .getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return continuousBackupsDescription; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeContinuousBackupsResult == false) return false; DescribeContinuousBackupsResult other = (DescribeContinuousBackupsResult) obj; if (other.getContinuousBackupsDescription() == null ^ this.getContinuousBackupsDescription() == null) return false; if (other.getContinuousBackupsDescription() != null && other.getContinuousBackupsDescription().equals(this.getContinuousBackupsDescription()) == false) return false; return true; }
/** * <p> * The description of the point in time recovery settings applied to the table. * </p> * * @param pointInTimeRecoveryDescription * The description of the point in time recovery settings applied to the table. * @return Returns a reference to this object so that method calls can be chained together. */ public ContinuousBackupsDescription withPointInTimeRecoveryDescription(PointInTimeRecoveryDescription pointInTimeRecoveryDescription) { setPointInTimeRecoveryDescription(pointInTimeRecoveryDescription); return this; }
@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 ContinuousBackupsDescription unmarshall(JsonUnmarshallerContext context) throws Exception { ContinuousBackupsDescription continuousBackupsDescription = new ContinuousBackupsDescription(); if (context.testExpression("ContinuousBackupsStatus", targetDepth)) { context.nextToken(); continuousBackupsDescription.setContinuousBackupsStatus(context.getUnmarshaller(String.class).unmarshall(context)); continuousBackupsDescription.setPointInTimeRecoveryDescription(PointInTimeRecoveryDescriptionJsonUnmarshaller.getInstance().unmarshall( context));
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getContinuousBackupsDescription() == null) ? 0 : getContinuousBackupsDescription().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeContinuousBackupsResult == false) return false; DescribeContinuousBackupsResult other = (DescribeContinuousBackupsResult) obj; if (other.getContinuousBackupsDescription() == null ^ this.getContinuousBackupsDescription() == null) return false; if (other.getContinuousBackupsDescription() != null && other.getContinuousBackupsDescription().equals( this.getContinuousBackupsDescription()) == false) return false; return true; } }
/** * <p> * <code>ContinuousBackupsStatus</code> can be one of the following states: ENABLED, DISABLED * </p> * * @param continuousBackupsStatus * <code>ContinuousBackupsStatus</code> can be one of the following states: ENABLED, DISABLED * @return Returns a reference to this object so that method calls can be chained together. * @see ContinuousBackupsStatus */ public ContinuousBackupsDescription withContinuousBackupsStatus(String continuousBackupsStatus) { setContinuousBackupsStatus(continuousBackupsStatus); 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. * * @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 int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getContinuousBackupsDescription() == null) ? 0 : getContinuousBackupsDescription().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UpdateContinuousBackupsResult == false) return false; UpdateContinuousBackupsResult other = (UpdateContinuousBackupsResult) obj; if (other.getContinuousBackupsDescription() == null ^ this.getContinuousBackupsDescription() == null) return false; if (other.getContinuousBackupsDescription() != null && other.getContinuousBackupsDescription().equals( this.getContinuousBackupsDescription()) == 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); } }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getContinuousBackupsDescription() == null) ? 0 : getContinuousBackupsDescription().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeContinuousBackupsResult == false) return false; DescribeContinuousBackupsResult other = (DescribeContinuousBackupsResult) obj; if (other.getContinuousBackupsDescription() == null ^ this.getContinuousBackupsDescription() == null) return false; if (other.getContinuousBackupsDescription() != null && other.getContinuousBackupsDescription().equals(this.getContinuousBackupsDescription()) == false) return false; return true; }