@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; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getGlobalTableDescription() == null) ? 0 : getGlobalTableDescription().hashCode()); return hashCode; }
/** * <p> * The creation time of the global table. * </p> * * @param creationDateTime * The creation time of the global table. * @return Returns a reference to this object so that method calls can be chained together. */ public GlobalTableDescription withCreationDateTime(java.util.Date creationDateTime) { setCreationDateTime(creationDateTime); return this; }
public GlobalTableDescription unmarshall(JsonUnmarshallerContext context) throws Exception { GlobalTableDescription globalTableDescription = new GlobalTableDescription(); if (context.testExpression("ReplicationGroup", targetDepth)) { context.nextToken(); globalTableDescription.setReplicationGroup(new ListUnmarshaller<ReplicaDescription>(ReplicaDescriptionJsonUnmarshaller.getInstance()) .unmarshall(context)); globalTableDescription.setGlobalTableArn(context.getUnmarshaller(String.class).unmarshall(context)); globalTableDescription.setCreationDateTime(DateJsonUnmarshallerFactory.getInstance("unixTimestamp").unmarshall(context)); globalTableDescription.setGlobalTableStatus(context.getUnmarshaller(String.class).unmarshall(context)); globalTableDescription.setGlobalTableName(context.getUnmarshaller(String.class).unmarshall(context));
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeGlobalTableResult == false) return false; DescribeGlobalTableResult other = (DescribeGlobalTableResult) obj; if (other.getGlobalTableDescription() == null ^ this.getGlobalTableDescription() == null) return false; if (other.getGlobalTableDescription() != null && other.getGlobalTableDescription().equals(this.getGlobalTableDescription()) == false) return false; return true; }
/** * <p> * The unique identifier of the global table. * </p> * * @param globalTableArn * The unique identifier of the global table. * @return Returns a reference to this object so that method calls can be chained together. */ public GlobalTableDescription withGlobalTableArn(String globalTableArn) { setGlobalTableArn(globalTableArn); return this; }
/** * <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; }
return null; GlobalTableDescription globalTableDescription = new GlobalTableDescription(); reader.beginObject(); while (reader.hasNext()) { if (name.equals("ReplicationGroup")) { globalTableDescription .setReplicationGroup(new ListUnmarshaller<ReplicaDescription>( ReplicaDescriptionJsonUnmarshaller.getInstance() globalTableDescription.setGlobalTableArn(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("CreationDateTime")) { globalTableDescription.setCreationDateTime(DateJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("GlobalTableStatus")) { globalTableDescription.setGlobalTableStatus(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("GlobalTableName")) { globalTableDescription.setGlobalTableName(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else {
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateGlobalTableResult == false) return false; CreateGlobalTableResult other = (CreateGlobalTableResult) obj; if (other.getGlobalTableDescription() == null ^ this.getGlobalTableDescription() == null) return false; if (other.getGlobalTableDescription() != null && other.getGlobalTableDescription().equals(this.getGlobalTableDescription()) == false) return false; return true; }
/** * <p> * The unique identifier of the global table. * </p> * * @param globalTableArn * The unique identifier of the global table. * @return Returns a reference to this object so that method calls can be chained together. */ public GlobalTableDescription withGlobalTableArn(String globalTableArn) { setGlobalTableArn(globalTableArn); return this; }
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) return false; 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) return false; 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;
public GlobalTableDescription unmarshall(JsonUnmarshallerContext context) throws Exception { GlobalTableDescription globalTableDescription = new GlobalTableDescription(); if (context.testExpression("ReplicationGroup", targetDepth)) { context.nextToken(); globalTableDescription.setReplicationGroup(new ListUnmarshaller<ReplicaDescription>(ReplicaDescriptionJsonUnmarshaller.getInstance()) .unmarshall(context)); globalTableDescription.setGlobalTableArn(context.getUnmarshaller(String.class).unmarshall(context)); globalTableDescription.setCreationDateTime(DateJsonUnmarshallerFactory.getInstance("unixTimestamp").unmarshall(context)); globalTableDescription.setGlobalTableStatus(context.getUnmarshaller(String.class).unmarshall(context)); globalTableDescription.setGlobalTableName(context.getUnmarshaller(String.class).unmarshall(context));
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getGlobalTableDescription() == null) ? 0 : getGlobalTableDescription().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UpdateGlobalTableResult == false) return false; UpdateGlobalTableResult other = (UpdateGlobalTableResult) obj; if (other.getGlobalTableDescription() == null ^ this.getGlobalTableDescription() == null) return false; if (other.getGlobalTableDescription() != null && other.getGlobalTableDescription().equals(this.getGlobalTableDescription()) == false) return false; return true; }
/** * <p> * The creation time of the global table. * </p> * * @param creationDateTime * The creation time of the global table. * @return Returns a reference to this object so that method calls can be chained together. */ public GlobalTableDescription withCreationDateTime(java.util.Date creationDateTime) { setCreationDateTime(creationDateTime); return this; }
/** * 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(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getGlobalTableDescription() == null) ? 0 : getGlobalTableDescription().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UpdateGlobalTableResult == false) return false; UpdateGlobalTableResult other = (UpdateGlobalTableResult) obj; if (other.getGlobalTableDescription() == null ^ this.getGlobalTableDescription() == null) return false; if (other.getGlobalTableDescription() != null && other.getGlobalTableDescription().equals(this.getGlobalTableDescription()) == 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 + ((getGlobalTableDescription() == null) ? 0 : getGlobalTableDescription() .hashCode()); return hashCode; }