@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.getGlobalTableStatus() != null && other.getGlobalTableStatus().equals(this.getGlobalTableStatus()) == false) return false; if (other.getGlobalTableName() == null ^ this.getGlobalTableName() == null) return false; if (other.getGlobalTableName() != null && other.getGlobalTableName().equals(this.getGlobalTableName()) == false) return false; return true;
/** * 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.getGlobalTableStatus().equals(this.getGlobalTableStatus()) == false) return false; if (other.getGlobalTableName() == null ^ this.getGlobalTableName() == null) return false; if (other.getGlobalTableName() != null && other.getGlobalTableName().equals(this.getGlobalTableName()) == false) return false; return true;
jsonWriter.value(globalTableStatus); if (globalTableDescription.getGlobalTableName() != null) { String globalTableName = globalTableDescription.getGlobalTableName(); jsonWriter.name("GlobalTableName"); jsonWriter.value(globalTableName);
@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.getGlobalTableStatus() != null && other.getGlobalTableStatus().equals(this.getGlobalTableStatus()) == false) return false; if (other.getGlobalTableName() == null ^ this.getGlobalTableName() == null) return false; if (other.getGlobalTableName() != null && other.getGlobalTableName().equals(this.getGlobalTableName()) == false) return false; return true;
/** * 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); } }