@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCriteriaList() == null) ? 0 : getCriteriaList().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof AbortConfig == false) return false; AbortConfig other = (AbortConfig) obj; if (other.getCriteriaList() == null ^ this.getCriteriaList() == null) return false; if (other.getCriteriaList() != null && other.getCriteriaList().equals(this.getCriteriaList()) == false) return false; return true; }
/** * 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 (getCriteriaList() != null) sb.append("CriteriaList: ").append(getCriteriaList()); sb.append("}"); return sb.toString(); }
/** * Marshall the given parameter object. */ public void marshall(AbortConfig abortConfig, ProtocolMarshaller protocolMarshaller) { if (abortConfig == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(abortConfig.getCriteriaList(), CRITERIALIST_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 + ((getCriteriaList() == null) ? 0 : getCriteriaList().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof AbortConfig == false) return false; AbortConfig other = (AbortConfig) obj; if (other.getCriteriaList() == null ^ this.getCriteriaList() == null) return false; if (other.getCriteriaList() != null && other.getCriteriaList().equals(this.getCriteriaList()) == 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 (getCriteriaList() != null) sb.append("criteriaList: " + getCriteriaList()); sb.append("}"); return sb.toString(); }
/** * <p> * The list of abort criteria to define rules to abort the job. * </p> * <p> * Returns a reference to this object so that method calls can be chained * together. * * @param criteriaList <p> * The list of abort criteria to define rules to abort the job. * </p> * @return A reference to this updated object so that method calls can be * chained together. */ public AbortConfig withCriteriaList(AbortCriteria... criteriaList) { if (getCriteriaList() == null) { this.criteriaList = new java.util.ArrayList<AbortCriteria>(criteriaList.length); } for (AbortCriteria value : criteriaList) { this.criteriaList.add(value); } return this; }
public void marshall(AbortConfig abortConfig, AwsJsonWriter jsonWriter) throws Exception { jsonWriter.beginObject(); if (abortConfig.getCriteriaList() != null) { java.util.List<AbortCriteria> criteriaList = abortConfig.getCriteriaList(); jsonWriter.name("criteriaList"); jsonWriter.beginArray(); for (AbortCriteria criteriaListItem : criteriaList) { if (criteriaListItem != null) { AbortCriteriaJsonMarshaller.getInstance() .marshall(criteriaListItem, jsonWriter); } } jsonWriter.endArray(); } jsonWriter.endObject(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCriteriaList() == null) ? 0 : getCriteriaList().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof AbortConfig == false) return false; AbortConfig other = (AbortConfig) obj; if (other.getCriteriaList() == null ^ this.getCriteriaList() == null) return false; if (other.getCriteriaList() != null && other.getCriteriaList().equals(this.getCriteriaList()) == false) return false; return true; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCriteriaList() == null) ? 0 : getCriteriaList().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof AbortConfig == false) return false; AbortConfig other = (AbortConfig) obj; if (other.getCriteriaList() == null ^ this.getCriteriaList() == null) return false; if (other.getCriteriaList() != null && other.getCriteriaList().equals(this.getCriteriaList()) == 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 (getCriteriaList() != null) sb.append("criteriaList: " + getCriteriaList()); 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 (getCriteriaList() != null) sb.append("CriteriaList: ").append(getCriteriaList()); sb.append("}"); return sb.toString(); }
/** * <p> * The list of abort criteria to define rules to abort the job. * </p> * <p> * Returns a reference to this object so that method calls can be chained * together. * * @param criteriaList <p> * The list of abort criteria to define rules to abort the job. * </p> * @return A reference to this updated object so that method calls can be * chained together. */ public AbortConfig withCriteriaList(AbortCriteria... criteriaList) { if (getCriteriaList() == null) { this.criteriaList = new java.util.ArrayList<AbortCriteria>(criteriaList.length); } for (AbortCriteria value : criteriaList) { this.criteriaList.add(value); } return this; }
/** * Marshall the given parameter object. */ public void marshall(AbortConfig abortConfig, ProtocolMarshaller protocolMarshaller) { if (abortConfig == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(abortConfig.getCriteriaList(), CRITERIALIST_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
public void marshall(AbortConfig abortConfig, AwsJsonWriter jsonWriter) throws Exception { jsonWriter.beginObject(); if (abortConfig.getCriteriaList() != null) { java.util.List<AbortCriteria> criteriaList = abortConfig.getCriteriaList(); jsonWriter.name("criteriaList"); jsonWriter.beginArray(); for (AbortCriteria criteriaListItem : criteriaList) { if (criteriaListItem != null) { AbortCriteriaJsonMarshaller.getInstance() .marshall(criteriaListItem, jsonWriter); } } jsonWriter.endArray(); } jsonWriter.endObject(); }