@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(); }
return false; GlobalTableDescription other = (GlobalTableDescription) obj; if (other.getReplicationGroup() == null ^ this.getReplicationGroup() == null) return false; if (other.getReplicationGroup() != null && other.getReplicationGroup().equals(this.getReplicationGroup()) == false) return false; if (other.getGlobalTableArn() == null ^ this.getGlobalTableArn() == 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); } }
/** * <p> * The regions where the global table has replicas. * </p> * <p> * Returns a reference to this object so that method calls can be chained * together. * * @param replicationGroup <p> * The regions where the global table has replicas. * </p> * @return A reference to this updated object so that method calls can be * chained together. */ public GlobalTableDescription withReplicationGroup(ReplicaDescription... replicationGroup) { if (getReplicationGroup() == null) { this.replicationGroup = new java.util.ArrayList<ReplicaDescription>( replicationGroup.length); } for (ReplicaDescription value : replicationGroup) { this.replicationGroup.add(value); } return this; }
@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(); }
GlobalTableDescription other = (GlobalTableDescription) obj; if (other.getReplicationGroup() == null ^ this.getReplicationGroup() == null) return false; if (other.getReplicationGroup() != null && other.getReplicationGroup().equals(this.getReplicationGroup()) == false) return false; if (other.getGlobalTableArn() == null ^ this.getGlobalTableArn() == null)
public void marshall(GlobalTableDescription globalTableDescription, AwsJsonWriter jsonWriter) throws Exception { jsonWriter.beginObject(); if (globalTableDescription.getReplicationGroup() != null) { java.util.List<ReplicaDescription> replicationGroup = globalTableDescription .getReplicationGroup(); jsonWriter.name("ReplicationGroup"); jsonWriter.beginArray();
@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(); }
return false; GlobalTableDescription other = (GlobalTableDescription) obj; if (other.getReplicationGroup() == null ^ this.getReplicationGroup() == null) return false; if (other.getReplicationGroup() != null && other.getReplicationGroup().equals(this.getReplicationGroup()) == false) return false; if (other.getGlobalTableArn() == null ^ this.getGlobalTableArn() == 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); } }