/** * 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 (getImplicitDeny() != null) sb.append("ImplicitDeny: ").append(getImplicitDeny()).append(","); if (getExplicitDeny() != null) sb.append("ExplicitDeny: ").append(getExplicitDeny()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof Denied == false) return false; Denied other = (Denied) obj; if (other.getImplicitDeny() == null ^ this.getImplicitDeny() == null) return false; if (other.getImplicitDeny() != null && other.getImplicitDeny().equals(this.getImplicitDeny()) == false) return false; if (other.getExplicitDeny() == null ^ this.getExplicitDeny() == null) return false; if (other.getExplicitDeny() != null && other.getExplicitDeny().equals(this.getExplicitDeny()) == false) return false; return true; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getImplicitDeny() == null) ? 0 : getImplicitDeny().hashCode()); hashCode = prime * hashCode + ((getExplicitDeny() == null) ? 0 : getExplicitDeny().hashCode()); return hashCode; }
/** * Marshall the given parameter object. */ public void marshall(Denied denied, ProtocolMarshaller protocolMarshaller) { if (denied == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(denied.getImplicitDeny(), IMPLICITDENY_BINDING); protocolMarshaller.marshall(denied.getExplicitDeny(), EXPLICITDENY_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
/** * 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 (getImplicitDeny() != null) sb.append("implicitDeny: " + getImplicitDeny() + ","); if (getExplicitDeny() != null) sb.append("explicitDeny: " + getExplicitDeny()); sb.append("}"); return sb.toString(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getImplicitDeny() == null) ? 0 : getImplicitDeny().hashCode()); hashCode = prime * hashCode + ((getExplicitDeny() == null) ? 0 : getExplicitDeny().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof Denied == false) return false; Denied other = (Denied) obj; if (other.getImplicitDeny() == null ^ this.getImplicitDeny() == null) return false; if (other.getImplicitDeny() != null && other.getImplicitDeny().equals(this.getImplicitDeny()) == false) return false; if (other.getExplicitDeny() == null ^ this.getExplicitDeny() == null) return false; if (other.getExplicitDeny() != null && other.getExplicitDeny().equals(this.getExplicitDeny()) == false) return false; return true; } }
public void marshall(Denied denied, AwsJsonWriter jsonWriter) throws Exception { jsonWriter.beginObject(); if (denied.getImplicitDeny() != null) { ImplicitDeny implicitDeny = denied.getImplicitDeny(); jsonWriter.name("implicitDeny"); ImplicitDenyJsonMarshaller.getInstance().marshall(implicitDeny, jsonWriter); } if (denied.getExplicitDeny() != null) { ExplicitDeny explicitDeny = denied.getExplicitDeny(); jsonWriter.name("explicitDeny"); ExplicitDenyJsonMarshaller.getInstance().marshall(explicitDeny, jsonWriter); } jsonWriter.endObject(); }
/** * 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 (getImplicitDeny() != null) sb.append("implicitDeny: " + getImplicitDeny() + ","); if (getExplicitDeny() != null) sb.append("explicitDeny: " + getExplicitDeny()); sb.append("}"); return sb.toString(); }
/** * 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 (getImplicitDeny() != null) sb.append("ImplicitDeny: ").append(getImplicitDeny()).append(","); if (getExplicitDeny() != null) sb.append("ExplicitDeny: ").append(getExplicitDeny()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof Denied == false) return false; Denied other = (Denied) obj; if (other.getImplicitDeny() == null ^ this.getImplicitDeny() == null) return false; if (other.getImplicitDeny() != null && other.getImplicitDeny().equals(this.getImplicitDeny()) == false) return false; if (other.getExplicitDeny() == null ^ this.getExplicitDeny() == null) return false; if (other.getExplicitDeny() != null && other.getExplicitDeny().equals(this.getExplicitDeny()) == false) return false; return true; }
/** * Marshall the given parameter object. */ public void marshall(Denied denied, ProtocolMarshaller protocolMarshaller) { if (denied == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(denied.getImplicitDeny(), IMPLICITDENY_BINDING); protocolMarshaller.marshall(denied.getExplicitDeny(), EXPLICITDENY_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 + ((getImplicitDeny() == null) ? 0 : getImplicitDeny().hashCode()); hashCode = prime * hashCode + ((getExplicitDeny() == null) ? 0 : getExplicitDeny().hashCode()); return hashCode; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getImplicitDeny() == null) ? 0 : getImplicitDeny().hashCode()); hashCode = prime * hashCode + ((getExplicitDeny() == null) ? 0 : getExplicitDeny().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof Denied == false) return false; Denied other = (Denied) obj; if (other.getImplicitDeny() == null ^ this.getImplicitDeny() == null) return false; if (other.getImplicitDeny() != null && other.getImplicitDeny().equals(this.getImplicitDeny()) == false) return false; if (other.getExplicitDeny() == null ^ this.getExplicitDeny() == null) return false; if (other.getExplicitDeny() != null && other.getExplicitDeny().equals(this.getExplicitDeny()) == false) return false; return true; } }
public void marshall(Denied denied, AwsJsonWriter jsonWriter) throws Exception { jsonWriter.beginObject(); if (denied.getImplicitDeny() != null) { ImplicitDeny implicitDeny = denied.getImplicitDeny(); jsonWriter.name("implicitDeny"); ImplicitDenyJsonMarshaller.getInstance().marshall(implicitDeny, jsonWriter); } if (denied.getExplicitDeny() != null) { ExplicitDeny explicitDeny = denied.getExplicitDeny(); jsonWriter.name("explicitDeny"); ExplicitDenyJsonMarshaller.getInstance().marshall(explicitDeny, jsonWriter); } jsonWriter.endObject(); }