@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getServiceErrorId() == null) ? 0 : getServiceErrorId().hashCode()); hashCode = prime * hashCode + ((getStackId() == null) ? 0 : getStackId().hashCode()); hashCode = prime * hashCode + ((getInstanceId() == null) ? 0 : getInstanceId().hashCode()); hashCode = prime * hashCode + ((getType() == null) ? 0 : getType().hashCode()); hashCode = prime * hashCode + ((getMessage() == null) ? 0 : getMessage().hashCode()); hashCode = prime * hashCode + ((getCreatedAt() == null) ? 0 : getCreatedAt().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 (getServiceErrorId() != null) sb.append("ServiceErrorId: ").append(getServiceErrorId()).append(","); if (getStackId() != null) sb.append("StackId: ").append(getStackId()).append(","); if (getInstanceId() != null) sb.append("InstanceId: ").append(getInstanceId()).append(","); if (getType() != null) sb.append("Type: ").append(getType()).append(","); if (getMessage() != null) sb.append("Message: ").append(getMessage()).append(","); if (getCreatedAt() != null) sb.append("CreatedAt: ").append(getCreatedAt()); sb.append("}"); return sb.toString(); }
return false; ServiceError other = (ServiceError) obj; if (other.getServiceErrorId() == null ^ this.getServiceErrorId() == null) return false; if (other.getServiceErrorId() != null && other.getServiceErrorId().equals(this.getServiceErrorId()) == false) return false; if (other.getStackId() == null ^ this.getStackId() == null)
/** * Marshall the given parameter object. */ public void marshall(ServiceError serviceError, ProtocolMarshaller protocolMarshaller) { if (serviceError == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(serviceError.getServiceErrorId(), SERVICEERRORID_BINDING); protocolMarshaller.marshall(serviceError.getStackId(), STACKID_BINDING); protocolMarshaller.marshall(serviceError.getInstanceId(), INSTANCEID_BINDING); protocolMarshaller.marshall(serviceError.getType(), TYPE_BINDING); protocolMarshaller.marshall(serviceError.getMessage(), MESSAGE_BINDING); protocolMarshaller.marshall(serviceError.getCreatedAt(), CREATEDAT_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
/** * 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 (getServiceErrorId() != null) sb.append("ServiceErrorId: ").append(getServiceErrorId()).append(","); if (getStackId() != null) sb.append("StackId: ").append(getStackId()).append(","); if (getInstanceId() != null) sb.append("InstanceId: ").append(getInstanceId()).append(","); if (getType() != null) sb.append("Type: ").append(getType()).append(","); if (getMessage() != null) sb.append("Message: ").append(getMessage()).append(","); if (getCreatedAt() != null) sb.append("CreatedAt: ").append(getCreatedAt()); sb.append("}"); return sb.toString(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getServiceErrorId() == null) ? 0 : getServiceErrorId().hashCode()); hashCode = prime * hashCode + ((getStackId() == null) ? 0 : getStackId().hashCode()); hashCode = prime * hashCode + ((getInstanceId() == null) ? 0 : getInstanceId().hashCode()); hashCode = prime * hashCode + ((getType() == null) ? 0 : getType().hashCode()); hashCode = prime * hashCode + ((getMessage() == null) ? 0 : getMessage().hashCode()); hashCode = prime * hashCode + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode()); return hashCode; }
return false; ServiceError other = (ServiceError) obj; if (other.getServiceErrorId() == null ^ this.getServiceErrorId() == null) return false; if (other.getServiceErrorId() != null && other.getServiceErrorId().equals(this.getServiceErrorId()) == false) return false; if (other.getStackId() == null ^ this.getStackId() == null)
/** * Marshall the given parameter object. */ public void marshall(ServiceError serviceError, ProtocolMarshaller protocolMarshaller) { if (serviceError == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(serviceError.getServiceErrorId(), SERVICEERRORID_BINDING); protocolMarshaller.marshall(serviceError.getStackId(), STACKID_BINDING); protocolMarshaller.marshall(serviceError.getInstanceId(), INSTANCEID_BINDING); protocolMarshaller.marshall(serviceError.getType(), TYPE_BINDING); protocolMarshaller.marshall(serviceError.getMessage(), MESSAGE_BINDING); protocolMarshaller.marshall(serviceError.getCreatedAt(), CREATEDAT_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }