@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getReplicationGroup() == null) ? 0 : getReplicationGroup().hashCode()); hashCode = prime * hashCode + ((getGlobalTableArn() == null) ? 0 : getGlobalTableArn().hashCode()); hashCode = prime * hashCode + ((getCreationDateTime() == null) ? 0 : getCreationDateTime().hashCode()); hashCode = prime * hashCode + ((getGlobalTableStatus() == null) ? 0 : getGlobalTableStatus().hashCode()); hashCode = prime * hashCode + ((getGlobalTableName() == null) ? 0 : getGlobalTableName().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 (getReplicationGroup() != null) sb.append("ReplicationGroup: ").append(getReplicationGroup()).append(","); if (getGlobalTableArn() != null) sb.append("GlobalTableArn: ").append(getGlobalTableArn()).append(","); if (getCreationDateTime() != null) sb.append("CreationDateTime: ").append(getCreationDateTime()).append(","); if (getGlobalTableStatus() != null) sb.append("GlobalTableStatus: ").append(getGlobalTableStatus()).append(","); if (getGlobalTableName() != null) sb.append("GlobalTableName: ").append(getGlobalTableName()); sb.append("}"); return sb.toString(); }
if (other.getGlobalTableArn() != null && other.getGlobalTableArn().equals(this.getGlobalTableArn()) == false) return false; if (other.getCreationDateTime() == null ^ this.getCreationDateTime() == null) return false; if (other.getCreationDateTime() != null && other.getCreationDateTime().equals(this.getCreationDateTime()) == false) return false; if (other.getGlobalTableStatus() == null ^ this.getGlobalTableStatus() == null)
/** * Marshall the given parameter object. */ public void marshall(GlobalTableDescription globalTableDescription, ProtocolMarshaller protocolMarshaller) { if (globalTableDescription == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(globalTableDescription.getReplicationGroup(), REPLICATIONGROUP_BINDING); protocolMarshaller.marshall(globalTableDescription.getGlobalTableArn(), GLOBALTABLEARN_BINDING); protocolMarshaller.marshall(globalTableDescription.getCreationDateTime(), CREATIONDATETIME_BINDING); protocolMarshaller.marshall(globalTableDescription.getGlobalTableStatus(), GLOBALTABLESTATUS_BINDING); protocolMarshaller.marshall(globalTableDescription.getGlobalTableName(), GLOBALTABLENAME_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 + ((getReplicationGroup() == null) ? 0 : getReplicationGroup().hashCode()); hashCode = prime * hashCode + ((getGlobalTableArn() == null) ? 0 : getGlobalTableArn().hashCode()); hashCode = prime * hashCode + ((getCreationDateTime() == null) ? 0 : getCreationDateTime().hashCode()); hashCode = prime * hashCode + ((getGlobalTableStatus() == null) ? 0 : getGlobalTableStatus().hashCode()); hashCode = prime * hashCode + ((getGlobalTableName() == null) ? 0 : getGlobalTableName().hashCode()); return hashCode; }
/** * 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 (getReplicationGroup() != null) sb.append("ReplicationGroup: " + getReplicationGroup() + ","); if (getGlobalTableArn() != null) sb.append("GlobalTableArn: " + getGlobalTableArn() + ","); if (getCreationDateTime() != null) sb.append("CreationDateTime: " + getCreationDateTime() + ","); if (getGlobalTableStatus() != null) sb.append("GlobalTableStatus: " + getGlobalTableStatus() + ","); if (getGlobalTableName() != null) sb.append("GlobalTableName: " + getGlobalTableName()); sb.append("}"); return sb.toString(); }
&& other.getGlobalTableArn().equals(this.getGlobalTableArn()) == false) return false; if (other.getCreationDateTime() == null ^ this.getCreationDateTime() == null) return false; if (other.getCreationDateTime() != null && other.getCreationDateTime().equals(this.getCreationDateTime()) == false) return false; if (other.getGlobalTableStatus() == null ^ this.getGlobalTableStatus() == null)
jsonWriter.value(globalTableArn); if (globalTableDescription.getCreationDateTime() != null) { java.util.Date creationDateTime = globalTableDescription.getCreationDateTime(); jsonWriter.name("CreationDateTime"); jsonWriter.value(creationDateTime);
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getReplicationGroup() == null) ? 0 : getReplicationGroup().hashCode()); hashCode = prime * hashCode + ((getGlobalTableArn() == null) ? 0 : getGlobalTableArn().hashCode()); hashCode = prime * hashCode + ((getCreationDateTime() == null) ? 0 : getCreationDateTime().hashCode()); hashCode = prime * hashCode + ((getGlobalTableStatus() == null) ? 0 : getGlobalTableStatus().hashCode()); hashCode = prime * hashCode + ((getGlobalTableName() == null) ? 0 : getGlobalTableName().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 (getReplicationGroup() != null) sb.append("ReplicationGroup: ").append(getReplicationGroup()).append(","); if (getGlobalTableArn() != null) sb.append("GlobalTableArn: ").append(getGlobalTableArn()).append(","); if (getCreationDateTime() != null) sb.append("CreationDateTime: ").append(getCreationDateTime()).append(","); if (getGlobalTableStatus() != null) sb.append("GlobalTableStatus: ").append(getGlobalTableStatus()).append(","); if (getGlobalTableName() != null) sb.append("GlobalTableName: ").append(getGlobalTableName()); sb.append("}"); return sb.toString(); }
if (other.getGlobalTableArn() != null && other.getGlobalTableArn().equals(this.getGlobalTableArn()) == false) return false; if (other.getCreationDateTime() == null ^ this.getCreationDateTime() == null) return false; if (other.getCreationDateTime() != null && other.getCreationDateTime().equals(this.getCreationDateTime()) == false) return false; if (other.getGlobalTableStatus() == null ^ this.getGlobalTableStatus() == null)
/** * Marshall the given parameter object. */ public void marshall(GlobalTableDescription globalTableDescription, ProtocolMarshaller protocolMarshaller) { if (globalTableDescription == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(globalTableDescription.getReplicationGroup(), REPLICATIONGROUP_BINDING); protocolMarshaller.marshall(globalTableDescription.getGlobalTableArn(), GLOBALTABLEARN_BINDING); protocolMarshaller.marshall(globalTableDescription.getCreationDateTime(), CREATIONDATETIME_BINDING); protocolMarshaller.marshall(globalTableDescription.getGlobalTableStatus(), GLOBALTABLESTATUS_BINDING); protocolMarshaller.marshall(globalTableDescription.getGlobalTableName(), GLOBALTABLENAME_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }