@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ImplicitDeny == false) return false; ImplicitDeny other = (ImplicitDeny) obj; if (other.getPolicies() == null ^ this.getPolicies() == null) return false; if (other.getPolicies() != null && other.getPolicies().equals(this.getPolicies()) == false) return false; return true; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getPolicies() == null) ? 0 : getPolicies().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 (getPolicies() != null) sb.append("Policies: ").append(getPolicies()); sb.append("}"); return sb.toString(); }
/** * Marshall the given parameter object. */ public void marshall(ImplicitDeny implicitDeny, ProtocolMarshaller protocolMarshaller) { if (implicitDeny == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(implicitDeny.getPolicies(), POLICIES_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 + ((getPolicies() == null) ? 0 : getPolicies().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ImplicitDeny == false) return false; ImplicitDeny other = (ImplicitDeny) obj; if (other.getPolicies() == null ^ this.getPolicies() == null) return false; if (other.getPolicies() != null && other.getPolicies().equals(this.getPolicies()) == 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 (getPolicies() != null) sb.append("policies: " + getPolicies()); sb.append("}"); return sb.toString(); }
/** * <p> * Policies that don't contain a matching allow or deny statement for the * specified action on the specified resource. * </p> * <p> * Returns a reference to this object so that method calls can be chained * together. * * @param policies <p> * Policies that don't contain a matching allow or deny statement * for the specified action on the specified resource. * </p> * @return A reference to this updated object so that method calls can be * chained together. */ public ImplicitDeny withPolicies(Policy... policies) { if (getPolicies() == null) { this.policies = new java.util.ArrayList<Policy>(policies.length); } for (Policy value : policies) { this.policies.add(value); } return this; }
public void marshall(ImplicitDeny implicitDeny, AwsJsonWriter jsonWriter) throws Exception { jsonWriter.beginObject(); if (implicitDeny.getPolicies() != null) { java.util.List<Policy> policies = implicitDeny.getPolicies(); jsonWriter.name("policies"); jsonWriter.beginArray(); for (Policy policiesItem : policies) { if (policiesItem != null) { PolicyJsonMarshaller.getInstance().marshall(policiesItem, jsonWriter); } } jsonWriter.endArray(); } jsonWriter.endObject(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getPolicies() == null) ? 0 : getPolicies().hashCode()); return hashCode; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getPolicies() == null) ? 0 : getPolicies().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ImplicitDeny == false) return false; ImplicitDeny other = (ImplicitDeny) obj; if (other.getPolicies() == null ^ this.getPolicies() == null) return false; if (other.getPolicies() != null && other.getPolicies().equals(this.getPolicies()) == false) return false; return true; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ImplicitDeny == false) return false; ImplicitDeny other = (ImplicitDeny) obj; if (other.getPolicies() == null ^ this.getPolicies() == null) return false; if (other.getPolicies() != null && other.getPolicies().equals(this.getPolicies()) == 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 (getPolicies() != null) sb.append("policies: " + getPolicies()); 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 (getPolicies() != null) sb.append("Policies: ").append(getPolicies()); sb.append("}"); return sb.toString(); }
/** * <p> * Policies that don't contain a matching allow or deny statement for the * specified action on the specified resource. * </p> * <p> * Returns a reference to this object so that method calls can be chained * together. * * @param policies <p> * Policies that don't contain a matching allow or deny statement * for the specified action on the specified resource. * </p> * @return A reference to this updated object so that method calls can be * chained together. */ public ImplicitDeny withPolicies(Policy... policies) { if (getPolicies() == null) { this.policies = new java.util.ArrayList<Policy>(policies.length); } for (Policy value : policies) { this.policies.add(value); } return this; }
/** * Marshall the given parameter object. */ public void marshall(ImplicitDeny implicitDeny, ProtocolMarshaller protocolMarshaller) { if (implicitDeny == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(implicitDeny.getPolicies(), POLICIES_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
public void marshall(ImplicitDeny implicitDeny, AwsJsonWriter jsonWriter) throws Exception { jsonWriter.beginObject(); if (implicitDeny.getPolicies() != null) { java.util.List<Policy> policies = implicitDeny.getPolicies(); jsonWriter.name("policies"); jsonWriter.beginArray(); for (Policy policiesItem : policies) { if (policiesItem != null) { PolicyJsonMarshaller.getInstance().marshall(policiesItem, jsonWriter); } } jsonWriter.endArray(); } jsonWriter.endObject(); }