@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; }
/** * <p> * Information that explicitly denies the authorization. * </p> * * @param explicitDeny * Information that explicitly denies the authorization. * @return Returns a reference to this object so that method calls can be chained together. */ public Denied withExplicitDeny(ExplicitDeny explicitDeny) { setExplicitDeny(explicitDeny); return this; }
/** * <p> * Information that implicitly denies the authorization. When a policy doesn't explicitly deny or allow an action on * a resource it is considered an implicit deny. * </p> * * @param implicitDeny * Information that implicitly denies the authorization. When a policy doesn't explicitly deny or allow an * action on a resource it is considered an implicit deny. * @return Returns a reference to this object so that method calls can be chained together. */ public Denied withImplicitDeny(ImplicitDeny implicitDeny) { setImplicitDeny(implicitDeny); return this; }
public Denied unmarshall(JsonUnmarshallerContext context) throws Exception { Denied denied = new Denied(); if (context.testExpression("implicitDeny", targetDepth)) { context.nextToken(); denied.setImplicitDeny(ImplicitDenyJsonUnmarshaller.getInstance().unmarshall(context)); denied.setExplicitDeny(ExplicitDenyJsonUnmarshaller.getInstance().unmarshall(context));
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAuthInfo() == null) ? 0 : getAuthInfo().hashCode()); hashCode = prime * hashCode + ((getAllowed() == null) ? 0 : getAllowed().hashCode()); hashCode = prime * hashCode + ((getDenied() == null) ? 0 : getDenied().hashCode()); hashCode = prime * hashCode + ((getAuthDecision() == null) ? 0 : getAuthDecision().hashCode()); hashCode = prime * hashCode + ((getMissingContextValues() == null) ? 0 : getMissingContextValues().hashCode()); return hashCode; }
if (other.getDenied() == null ^ this.getDenied() == null) return false; if (other.getDenied() != null && other.getDenied().equals(this.getDenied()) == false) return false; if (other.getAuthDecision() == null ^ this.getAuthDecision() == null)
public Denied unmarshall(JsonUnmarshallerContext context) throws Exception { AwsJsonReader reader = context.getReader(); if (!reader.isContainer()) { reader.skipValue(); return null; } Denied denied = new Denied(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("implicitDeny")) { denied.setImplicitDeny(ImplicitDenyJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("explicitDeny")) { denied.setExplicitDeny(ExplicitDenyJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return denied; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAuthInfo() == null) ? 0 : getAuthInfo().hashCode()); hashCode = prime * hashCode + ((getAllowed() == null) ? 0 : getAllowed().hashCode()); hashCode = prime * hashCode + ((getDenied() == null) ? 0 : getDenied().hashCode()); hashCode = prime * hashCode + ((getAuthDecision() == null) ? 0 : getAuthDecision().hashCode()); hashCode = prime * hashCode + ((getMissingContextValues() == null) ? 0 : getMissingContextValues().hashCode()); return hashCode; }
if (other.getDenied() == null ^ this.getDenied() == null) return false; if (other.getDenied() != null && other.getDenied().equals(this.getDenied()) == false) return false; if (other.getAuthDecision() == null ^ this.getAuthDecision() == null)
@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; }
public Denied unmarshall(JsonUnmarshallerContext context) throws Exception { AwsJsonReader reader = context.getReader(); if (!reader.isContainer()) { reader.skipValue(); return null; } Denied denied = new Denied(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("implicitDeny")) { denied.setImplicitDeny(ImplicitDenyJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("explicitDeny")) { denied.setExplicitDeny(ExplicitDenyJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return denied; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAuthInfo() == null) ? 0 : getAuthInfo().hashCode()); hashCode = prime * hashCode + ((getAllowed() == null) ? 0 : getAllowed().hashCode()); hashCode = prime * hashCode + ((getDenied() == null) ? 0 : getDenied().hashCode()); hashCode = prime * hashCode + ((getAuthDecision() == null) ? 0 : getAuthDecision().hashCode()); hashCode = prime * hashCode + ((getMissingContextValues() == null) ? 0 : getMissingContextValues().hashCode()); return hashCode; }
if (other.getDenied() == null ^ this.getDenied() == null) return false; if (other.getDenied() != null && other.getDenied().equals(this.getDenied()) == false) return false; if (other.getAuthDecision() == null ^ this.getAuthDecision() == null)
/** * <p> * Information that explicitly denies the authorization. * </p> * * @param explicitDeny * Information that explicitly denies the authorization. * @return Returns a reference to this object so that method calls can be chained together. */ public Denied withExplicitDeny(ExplicitDeny explicitDeny) { setExplicitDeny(explicitDeny); return this; }
/** * <p> * Information that implicitly denies the authorization. When a policy doesn't explicitly deny or allow an action on * a resource it is considered an implicit deny. * </p> * * @param implicitDeny * Information that implicitly denies the authorization. When a policy doesn't explicitly deny or allow an * action on a resource it is considered an implicit deny. * @return Returns a reference to this object so that method calls can be chained together. */ public Denied withImplicitDeny(ImplicitDeny implicitDeny) { setImplicitDeny(implicitDeny); 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 (getImplicitDeny() != null) sb.append("ImplicitDeny: ").append(getImplicitDeny()).append(","); if (getExplicitDeny() != null) sb.append("ExplicitDeny: ").append(getExplicitDeny()); sb.append("}"); return sb.toString(); }
public Denied unmarshall(JsonUnmarshallerContext context) throws Exception { Denied denied = new Denied(); if (context.testExpression("implicitDeny", targetDepth)) { context.nextToken(); denied.setImplicitDeny(ImplicitDenyJsonUnmarshaller.getInstance().unmarshall(context)); denied.setExplicitDeny(ExplicitDenyJsonUnmarshaller.getInstance().unmarshall(context));
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAuthInfo() == null) ? 0 : getAuthInfo().hashCode()); hashCode = prime * hashCode + ((getAllowed() == null) ? 0 : getAllowed().hashCode()); hashCode = prime * hashCode + ((getDenied() == null) ? 0 : getDenied().hashCode()); hashCode = prime * hashCode + ((getAuthDecision() == null) ? 0 : getAuthDecision().hashCode()); hashCode = prime * hashCode + ((getMissingContextValues() == null) ? 0 : getMissingContextValues().hashCode()); return hashCode; }
if (other.getDenied() == null ^ this.getDenied() == null) return false; if (other.getDenied() != null && other.getDenied().equals(this.getDenied()) == false) return false; if (other.getAuthDecision() == null ^ this.getAuthDecision() == null)
/** * 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); } }