@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getRegionName() == null) ? 0 : getRegionName().hashCode()); return hashCode; }
/** * <p> * The region of the replica to be added. * </p> * * @param regionName * The region of the replica to be added. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateReplicaAction withRegionName(String regionName) { setRegionName(regionName); return this; }
public CreateReplicaAction unmarshall(JsonUnmarshallerContext context) throws Exception { CreateReplicaAction createReplicaAction = new CreateReplicaAction(); int originalDepth = context.getCurrentDepth(); String currentParentElement = context.getCurrentParentElement(); int targetDepth = originalDepth + 1; JsonToken token = context.getCurrentToken(); if (token == null) token = context.nextToken(); if (token == VALUE_NULL) { return null; } while (true) { if (token == null) break; if (token == FIELD_NAME || token == START_OBJECT) { if (context.testExpression("RegionName", targetDepth)) { context.nextToken(); createReplicaAction.setRegionName(context.getUnmarshaller(String.class).unmarshall(context)); } } else if (token == END_ARRAY || token == END_OBJECT) { if (context.getLastParsedParentElement() == null || context.getLastParsedParentElement().equals(currentParentElement)) { if (context.getCurrentDepth() <= originalDepth) break; } } token = context.nextToken(); } return createReplicaAction; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCreate() == null) ? 0 : getCreate().hashCode()); hashCode = prime * hashCode + ((getDelete() == null) ? 0 : getDelete().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ReplicaUpdate == false) return false; ReplicaUpdate other = (ReplicaUpdate) obj; if (other.getCreate() == null ^ this.getCreate() == null) return false; if (other.getCreate() != null && other.getCreate().equals(this.getCreate()) == false) return false; if (other.getDelete() == null ^ this.getDelete() == null) return false; if (other.getDelete() != null && other.getDelete().equals(this.getDelete()) == false) return false; return true; }
public CreateReplicaAction unmarshall(JsonUnmarshallerContext context) throws Exception { AwsJsonReader reader = context.getReader(); if (!reader.isContainer()) { reader.skipValue(); return null; } CreateReplicaAction createReplicaAction = new CreateReplicaAction(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("RegionName")) { createReplicaAction.setRegionName(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return createReplicaAction; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCreate() == null) ? 0 : getCreate().hashCode()); hashCode = prime * hashCode + ((getDelete() == null) ? 0 : getDelete().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ReplicaUpdate == false) return false; ReplicaUpdate other = (ReplicaUpdate) obj; if (other.getCreate() == null ^ this.getCreate() == null) return false; if (other.getCreate() != null && other.getCreate().equals(this.getCreate()) == false) return false; if (other.getDelete() == null ^ this.getDelete() == null) return false; if (other.getDelete() != null && other.getDelete().equals(this.getDelete()) == false) return false; return true; } }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateReplicaAction == false) return false; CreateReplicaAction other = (CreateReplicaAction) obj; if (other.getRegionName() == null ^ this.getRegionName() == null) return false; if (other.getRegionName() != null && other.getRegionName().equals(this.getRegionName()) == false) return false; return true; }
public CreateReplicaAction unmarshall(JsonUnmarshallerContext context) throws Exception { CreateReplicaAction createReplicaAction = new CreateReplicaAction(); int originalDepth = context.getCurrentDepth(); String currentParentElement = context.getCurrentParentElement(); int targetDepth = originalDepth + 1; JsonToken token = context.getCurrentToken(); if (token == null) token = context.nextToken(); if (token == VALUE_NULL) { return null; } while (true) { if (token == null) break; if (token == FIELD_NAME || token == START_OBJECT) { if (context.testExpression("RegionName", targetDepth)) { context.nextToken(); createReplicaAction.setRegionName(context.getUnmarshaller(String.class).unmarshall(context)); } } else if (token == END_ARRAY || token == END_OBJECT) { if (context.getLastParsedParentElement() == null || context.getLastParsedParentElement().equals(currentParentElement)) { if (context.getCurrentDepth() <= originalDepth) break; } } token = context.nextToken(); } return createReplicaAction; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCreate() == null) ? 0 : getCreate().hashCode()); hashCode = prime * hashCode + ((getDelete() == null) ? 0 : getDelete().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ReplicaUpdate == false) return false; ReplicaUpdate other = (ReplicaUpdate) obj; if (other.getCreate() == null ^ this.getCreate() == null) return false; if (other.getCreate() != null && other.getCreate().equals(this.getCreate()) == false) return false; if (other.getDelete() == null ^ this.getDelete() == null) return false; if (other.getDelete() != null && other.getDelete().equals(this.getDelete()) == false) return false; return true; }
/** * <p> * The region of the replica to be added. * </p> * * @param regionName * The region of the replica to be added. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateReplicaAction withRegionName(String regionName) { setRegionName(regionName); 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 (getRegionName() != null) sb.append("RegionName: ").append(getRegionName()); sb.append("}"); return sb.toString(); }
/** * Marshall the given parameter object. */ public void marshall(CreateReplicaAction createReplicaAction, ProtocolMarshaller protocolMarshaller) { if (createReplicaAction == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(createReplicaAction.getRegionName(), REGIONNAME_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 + ((getRegionName() == null) ? 0 : getRegionName().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateReplicaAction == false) return false; CreateReplicaAction other = (CreateReplicaAction) obj; if (other.getRegionName() == null ^ this.getRegionName() == null) return false; if (other.getRegionName() != null && other.getRegionName().equals(this.getRegionName()) == false) return false; return true; } }
/** * 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 (getRegionName() != null) sb.append("RegionName: " + getRegionName()); sb.append("}"); return sb.toString(); }
public void marshall(CreateReplicaAction createReplicaAction, AwsJsonWriter jsonWriter) throws Exception { jsonWriter.beginObject(); if (createReplicaAction.getRegionName() != null) { String regionName = createReplicaAction.getRegionName(); jsonWriter.name("RegionName"); jsonWriter.value(regionName); } jsonWriter.endObject(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateReplicaAction == false) return false; CreateReplicaAction other = (CreateReplicaAction) obj; if (other.getRegionName() == null ^ this.getRegionName() == null) return false; if (other.getRegionName() != null && other.getRegionName().equals(this.getRegionName()) == false) return false; return true; }