@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getFailureCode() == null) ? 0 : getFailureCode().hashCode()); hashCode = prime * hashCode + ((getRetryable() == null) ? 0 : getRetryable().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 (getFailureCode() != null) sb.append("FailureCode: ").append(getFailureCode()).append(","); if (getRetryable() != null) sb.append("Retryable: ").append(getRetryable()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof FailedItemDetails == false) return false; FailedItemDetails other = (FailedItemDetails) obj; if (other.getFailureCode() == null ^ this.getFailureCode() == null) return false; if (other.getFailureCode() != null && other.getFailureCode().equals(this.getFailureCode()) == false) return false; if (other.getRetryable() == null ^ this.getRetryable() == null) return false; if (other.getRetryable() != null && other.getRetryable().equals(this.getRetryable()) == false) return false; return true; }
/** * Marshall the given parameter object. */ public void marshall(FailedItemDetails failedItemDetails, ProtocolMarshaller protocolMarshaller) { if (failedItemDetails == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(failedItemDetails.getFailureCode(), FAILURECODE_BINDING); protocolMarshaller.marshall(failedItemDetails.getRetryable(), RETRYABLE_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 + ((getFailureCode() == null) ? 0 : getFailureCode().hashCode()); hashCode = prime * hashCode + ((getRetryable() == null) ? 0 : getRetryable().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof FailedItemDetails == false) return false; FailedItemDetails other = (FailedItemDetails) obj; if (other.getFailureCode() == null ^ this.getFailureCode() == null) return false; if (other.getFailureCode() != null && other.getFailureCode().equals(this.getFailureCode()) == false) return false; if (other.getRetryable() == null ^ this.getRetryable() == null) return false; if (other.getRetryable() != null && other.getRetryable().equals(this.getRetryable()) == false) return false; return true; }
/** * 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 (getFailureCode() != null) sb.append("FailureCode: ").append(getFailureCode()).append(","); if (getRetryable() != null) sb.append("Retryable: ").append(getRetryable()); sb.append("}"); return sb.toString(); }
/** * Marshall the given parameter object. */ public void marshall(FailedItemDetails failedItemDetails, ProtocolMarshaller protocolMarshaller) { if (failedItemDetails == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(failedItemDetails.getFailureCode(), FAILURECODE_BINDING); protocolMarshaller.marshall(failedItemDetails.getRetryable(), RETRYABLE_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }